From 85f3cb9453d0c178bcf848deb1e5f51432ebeb02 Mon Sep 17 00:00:00 2001 From: Dusha01 Date: Tue, 17 Mar 2026 01:20:18 +1000 Subject: [PATCH] =?UTF-8?q?=D0=B4=D0=BE=D0=B1=D0=B0=D0=B2=D0=B8=D0=BB=20wo?= =?UTF-8?q?rkflow=20-=20=D1=81=D0=B1=D0=BE=D1=80=D0=BA=D0=B0=20=D0=B1?= =?UTF-8?q?=D0=B8=D0=BD=D0=B0=D1=80=D0=BD=D0=B8=D0=BA=D0=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/build.yml | 49 ++++++++++++++++++++++++++++++++++++- 1 file changed, 48 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 9887746..24e87b1 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -40,6 +40,41 @@ jobs: path: | dist/TgWsProxy.exe + build-linux: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v4 + + - name: Install system dependencies + run: | + sudo apt-get update + sudo apt-get install -y python3 python3-venv libappindicator3-1 gir1.2-appindicator3-0.1 libgtk-3-0 + + - name: Setup Python + uses: actions/setup-python@v5 + with: + python-version: "3.12" + cache: "pip" + + - name: Install dependencies + run: pip install -r requirements.txt + + - name: Install PyInstaller + run: pip install pyinstaller + + - name: Build with PyInstaller + run: pyinstaller packaging/linux.spec --noconfirm + + - name: Prepare artifact + run: cp dist/tg-ws-proxy tg-ws-proxy + + - name: Upload artifact + uses: actions/upload-artifact@v4 + with: + name: tg-ws-proxy-linux + path: tg-ws-proxy + build-win7: runs-on: windows-latest steps: @@ -71,7 +106,7 @@ jobs: path: dist/TgWsProxy-win7.exe release: - needs: [build, build-win7] + needs: [build, build-win7, build-linux] runs-on: ubuntu-latest steps: - name: Download main build @@ -86,6 +121,12 @@ jobs: name: TgWsProxy-win7 path: dist + - name: Download Linux build + uses: actions/download-artifact@v4 + with: + name: tg-ws-proxy-linux + path: dist + - name: Create GitHub Release uses: softprops/action-gh-release@v2 with: @@ -93,9 +134,15 @@ jobs: name: "TG WS Proxy ${{ github.event.inputs.version }}" body: | ## TG WS Proxy ${{ github.event.inputs.version }} + + ### Скачать + - **Windows:** `TgWsProxy.exe` + - **Windows 7:** `TgWsProxy-win7.exe` + - **Linux (Debian/Ubuntu):** `tg-ws-proxy` — standalone-бинарник, запуск: `./tg-ws-proxy` files: | dist/TgWsProxy.exe dist/TgWsProxy-win7.exe + dist/tg-ws-proxy draft: false prerelease: false env: