From 34dde320339cee11b7f456e42a3879b8dde58e68 Mon Sep 17 00:00:00 2001 From: Flowseal Date: Wed, 8 Apr 2026 00:25:41 +0300 Subject: [PATCH] and another one --- .github/workflows/build.yml | 38 +++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 613a8c1..4ee1b86 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -41,6 +41,25 @@ jobs: - name: Build EXE with PyInstaller run: pyinstaller packaging/windows.spec --noconfirm + - name: Strip Rich PE header to avoid false AV detections + run: | + python -c " + import struct, pathlib + exe = pathlib.Path('dist/TgWsProxy.exe') + data = bytearray(exe.read_bytes()) + rich = data.find(b'Rich') + if rich == -1: + raise SystemExit('Rich header not found') + ck = struct.unpack_from('