Linux binary, github actions (#282)

This commit is contained in:
pitoni
2026-03-19 06:55:55 +03:00
committed by GitHub
parent 26542558c6
commit 692157b0f5
5 changed files with 1010 additions and 3 deletions

View File

@@ -219,8 +219,42 @@ jobs:
name: TgWsProxy-macOS
path: dist/TgWsProxy.dmg
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-venv \
python3-dev \
python3-gi \
gir1.2-ayatanaappindicator3-0.1 \
python3-tk
- name: Create venv with system site-packages
run: python3 -m venv --system-site-packages .venv
- name: Install dependencies
run: |
.venv/bin/pip install --upgrade pip
.venv/bin/pip install ".[linux]"
.venv/bin/pip install "pyinstaller==6.13.0"
- name: Build binary with PyInstaller
run: .venv/bin/pyinstaller packaging/linux.spec --noconfirm
- name: Upload artifact
uses: actions/upload-artifact@v4
with:
name: TgWsProxy-linux
path: dist/TgWsProxy
release:
needs: [build, build-win7, build-macos]
needs: [build, build-win7, build-macos, build-linux]
runs-on: ubuntu-latest
if: ${{ github.event.inputs.make_release == 'true' }}
steps:
@@ -242,6 +276,12 @@ jobs:
name: TgWsProxy-macOS
path: dist
- name: Download Linux build
uses: actions/download-artifact@v4
with:
name: TgWsProxy-linux
path: dist
- name: Create GitHub Release
uses: softprops/action-gh-release@v2
with:
@@ -253,6 +293,7 @@ jobs:
dist/TgWsProxy.exe
dist/TgWsProxy-win7.exe
dist/TgWsProxy.dmg
dist/TgWsProxy
draft: false
prerelease: false
env: