From 46aec5e3b634077d4a0b6c89673f7ea1623173c3 Mon Sep 17 00:00:00 2001 From: Flowseal Date: Sat, 7 Mar 2026 18:08:42 +0300 Subject: [PATCH] Win7 bundle --- .github/workflows/build.yml | 52 +++++++++++++++++++++++++++++++++++-- requirements-win7.txt | 5 ++++ 2 files changed, 55 insertions(+), 2 deletions(-) create mode 100644 requirements-win7.txt diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index a358691..e02cc8f 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -39,6 +39,52 @@ jobs: name: TgWsProxy path: dist/TgWsProxy.exe + build-win7: + runs-on: windows-latest + steps: + - name: Checkout + uses: actions/checkout@v4 + + - name: Setup Python 3.8 (last version supporting Win7) + uses: actions/setup-python@v5 + with: + python-version: "3.8" + cache: "pip" + + - name: Install dependencies (Win7-compatible) + run: pip install -r requirements-win7.txt + + - name: Install pyinstaller + run: pip install "pyinstaller==5.13.2" + + - name: Build EXE with PyInstaller (Win7) + run: pyinstaller packaging/windows.spec --noconfirm + + - name: Rename artifact + run: mv dist/TgWsProxy.exe dist/TgWsProxy-win7.exe + + - name: Upload artifact + uses: actions/upload-artifact@v4 + with: + name: TgWsProxy-win7 + path: dist/TgWsProxy-win7.exe + + release: + needs: [build, build-win7] + runs-on: ubuntu-latest + steps: + - name: Download main build + uses: actions/download-artifact@v4 + with: + name: TgWsProxy + path: dist + + - name: Download Win7 build + uses: actions/download-artifact@v4 + with: + name: TgWsProxy-win7 + path: dist + - name: Create GitHub Release uses: softprops/action-gh-release@v2 with: @@ -46,8 +92,10 @@ jobs: name: "TG WS Proxy ${{ github.event.inputs.version }}" body: | ## TG WS Proxy ${{ github.event.inputs.version }} - files: dist/TgWsProxy.exe + files: | + dist/TgWsProxy.exe + dist/TgWsProxy-win7.exe draft: false prerelease: false env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} \ No newline at end of file diff --git a/requirements-win7.txt b/requirements-win7.txt new file mode 100644 index 0000000..491d3f5 --- /dev/null +++ b/requirements-win7.txt @@ -0,0 +1,5 @@ +cryptography==41.0.7 +customtkinter==5.2.2 +Pillow==10.4.0 +psutil==5.9.8 +pystray==0.19.5