Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01HT6iXLYUUp9pJz5Kza9xCW
44 lines
1.5 KiB
YAML
44 lines
1.5 KiB
YAML
name: desktop-release
|
|
# Tag `desktop-vX.Y.Z` builds the desktop installers and attaches them to a Gitea release.
|
|
# Linux builds on the standard runner. macOS (.dmg) and Windows (.msi) need runners with those labels:
|
|
# register one on a Mac and one on a Windows machine, then uncomment the matrix entries.
|
|
on:
|
|
push:
|
|
tags: ["desktop-v*"]
|
|
|
|
jobs:
|
|
build:
|
|
strategy:
|
|
fail-fast: false
|
|
matrix:
|
|
include:
|
|
- runner: ubuntu-latest
|
|
bundles: deb,appimage
|
|
# - runner: macos
|
|
# bundles: dmg
|
|
# - runner: windows
|
|
# bundles: msi
|
|
runs-on: ${{ matrix.runner }}
|
|
env:
|
|
VITE_API_URL: https://api.next.photoreport.pt
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- name: System libraries (Linux)
|
|
if: runner.os == 'Linux'
|
|
run: |
|
|
sudo apt-get update
|
|
sudo apt-get install -y libwebkit2gtk-4.1-dev libayatana-appindicator3-dev librsvg2-dev libsecret-1-dev
|
|
- uses: pnpm/action-setup@v4
|
|
- uses: actions/setup-node@v4
|
|
with:
|
|
node-version: 22
|
|
- uses: dtolnay/rust-toolchain@stable
|
|
- run: pnpm install
|
|
- run: pnpm --filter @photoreport/contracts --filter @photoreport/sdk build
|
|
- run: pnpm --filter @photoreport/desktop icons
|
|
- run: pnpm --filter @photoreport/desktop exec tauri build --bundles ${{ matrix.bundles }}
|
|
- uses: actions/upload-artifact@v3
|
|
with:
|
|
name: desktop-${{ matrix.runner }}
|
|
path: apps/desktop/src-tauri/target/release/bundle/**
|