From e0bc67b1462de6c6847db2205b6acb6f810716d0 Mon Sep 17 00:00:00 2001 From: nineap Date: Thu, 9 Jul 2026 16:36:39 +0700 Subject: [PATCH] =?UTF-8?q?=D0=94=D0=BE=D0=B1=D0=B0=D0=B2=D0=BB=D1=8F?= =?UTF-8?q?=D0=B5=D1=82=20.github/workflows/release.yml=20(GitHub-=D0=B2?= =?UTF-8?q?=D0=B5=D1=80=D1=81=D0=B8=D1=8F=20=D1=87=D0=B5=D1=80=D0=B5=D0=B7?= =?UTF-8?q?=20tauri-action)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Существовала на диске, но ни разу не была закоммичена. Работает как и раньше через tauri-apps/tauri-action — Gitea-версия (.gitea/workflows/release.yml) отдельная, т.к. tauri-action жёстко ходит в api.github.com. Co-Authored-By: Claude Sonnet 5 --- .github/workflows/release.yml | 66 +++++++++++++++++++++++++++++++++++ 1 file changed, 66 insertions(+) create mode 100644 .github/workflows/release.yml diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 0000000..efac3b9 --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,66 @@ +name: Release Desktop + +# Только десктоп (Windows/macOS/Linux) — Android/iOS обновляются через сторы, +# самообновление там запрещено политиками платформ (см. src-tauri/src/lib.rs). +# Триггер — тег вида v1.2.3 (совпадает с полем "version" в tauri.conf.json). +on: + push: + tags: + - "v*" + workflow_dispatch: + +jobs: + release: + strategy: + fail-fast: false + matrix: + include: + - platform: "macos-latest" + args: "--target aarch64-apple-darwin" + - platform: "macos-latest" + args: "--target x86_64-apple-darwin" + - platform: "ubuntu-24.04" + args: "" + - platform: "windows-latest" + args: "" + + runs-on: ${{ matrix.platform }} + steps: + - uses: actions/checkout@v4 + + - uses: pnpm/action-setup@v4 + with: + version: 9 + + - uses: actions/setup-node@v4 + with: + node-version: 20 + cache: pnpm + + - name: Install Rust + uses: dtolnay/rust-toolchain@stable + with: + targets: ${{ matrix.platform == 'macos-latest' && 'aarch64-apple-darwin,x86_64-apple-darwin' || '' }} + + - name: Install Linux system deps (webkit2gtk, etc.) + if: matrix.platform == 'ubuntu-24.04' + run: | + sudo apt-get update + sudo apt-get install -y libwebkit2gtk-4.1-dev libappindicator3-dev librsvg2-dev patchelf + + - run: pnpm install --frozen-lockfile + + - uses: tauri-apps/tauri-action@v0 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + # Приватный ключ для подписи апдейтов — БЕЗ него downloadAndInstall() + # на клиентах будет отклонять пакет (сигнатура не совпадёт). + TAURI_SIGNING_PRIVATE_KEY: ${{ secrets.TAURI_SIGNING_PRIVATE_KEY }} + TAURI_SIGNING_PRIVATE_KEY_PASSWORD: ${{ secrets.TAURI_SIGNING_PRIVATE_KEY_PASSWORD }} + with: + tagName: ${{ github.ref_name }} + releaseName: "Netrunner VPN ${{ github.ref_name }}" + releaseDraft: true + prerelease: false + includeUpdaterJson: true + args: ${{ matrix.args }}