добавил workflow - сборка бинарника
This commit is contained in:
parent
2b4323c71a
commit
85f3cb9453
|
|
@ -40,6 +40,41 @@ jobs:
|
||||||
path: |
|
path: |
|
||||||
dist/TgWsProxy.exe
|
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:
|
build-win7:
|
||||||
runs-on: windows-latest
|
runs-on: windows-latest
|
||||||
steps:
|
steps:
|
||||||
|
|
@ -71,7 +106,7 @@ jobs:
|
||||||
path: dist/TgWsProxy-win7.exe
|
path: dist/TgWsProxy-win7.exe
|
||||||
|
|
||||||
release:
|
release:
|
||||||
needs: [build, build-win7]
|
needs: [build, build-win7, build-linux]
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Download main build
|
- name: Download main build
|
||||||
|
|
@ -86,6 +121,12 @@ jobs:
|
||||||
name: TgWsProxy-win7
|
name: TgWsProxy-win7
|
||||||
path: dist
|
path: dist
|
||||||
|
|
||||||
|
- name: Download Linux build
|
||||||
|
uses: actions/download-artifact@v4
|
||||||
|
with:
|
||||||
|
name: tg-ws-proxy-linux
|
||||||
|
path: dist
|
||||||
|
|
||||||
- name: Create GitHub Release
|
- name: Create GitHub Release
|
||||||
uses: softprops/action-gh-release@v2
|
uses: softprops/action-gh-release@v2
|
||||||
with:
|
with:
|
||||||
|
|
@ -93,9 +134,15 @@ jobs:
|
||||||
name: "TG WS Proxy ${{ github.event.inputs.version }}"
|
name: "TG WS Proxy ${{ github.event.inputs.version }}"
|
||||||
body: |
|
body: |
|
||||||
## TG WS Proxy ${{ github.event.inputs.version }}
|
## 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: |
|
files: |
|
||||||
dist/TgWsProxy.exe
|
dist/TgWsProxy.exe
|
||||||
dist/TgWsProxy-win7.exe
|
dist/TgWsProxy-win7.exe
|
||||||
|
dist/tg-ws-proxy
|
||||||
draft: false
|
draft: false
|
||||||
prerelease: false
|
prerelease: false
|
||||||
env:
|
env:
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue