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('