npm (web/): - undici 7.30.1 through a "miniflare" override (GHSA-xjj6-f33q-929c, GHSA-4qv8-2p9j-2685, GHSA-f72v-6w45-q472). miniflare pins undici exactly and wrangler 4.152.0, the newest, still ships 7.29.1. Local tooling only. - zod 4.6.7 (GHSA-mrhx-c7xc-m3w5, via knip). - Minor/patch: @lucide/svelte 1.61.0, @tanstack/svelte-virtual 3.13.48, bits-ui 2.20.2, vite 8.3.5, wrangler 4.152.0, knip 6.43.0, @tauri-apps/cli 2.12.4. cargo (web/src-tauri/Cargo.lock, targeted updates only): - rustls 0.23.46 (RUSTSEC-2026-0346..0349), rustls-webpki 0.103.16 (RUSTSEC-2026-0382), webpki-root-certs 1.0.11 (RUSTSEC-2026-0383), tokio 1.54.1 (RUSTSEC-2026-0386), anyhow 1.0.104 (RUSTSEC-2026-0190), event-listener 5.4.2 (RUSTSEC-2026-0221), plist 1.10.3 -> quick-xml 0.42.0 (RUSTSEC-2026-0194/0195). Dependabot had none of these. - Left upstream: zip 4 (tauri-plugin-updater 2.14.0 asks for ^4), glib 0.18 (GTK 3), unmaintained proc-macro-error/zbus_names/zvariant. pip: certifi 2026.10.23, coverage 7.17.0 (tests), with every file's hash. CI: actions/checkout v4/v5 -> v6 and actions/setup-python v5 -> v6 everywhere (the Node 20 majors warned on every data job), rust-cache 2.9.3 by SHA. dependabot.yml says why those majors are taken by hand. CLAUDE.md: the undici override and when to drop it; why SvelteKit stays on 2 (GHSA-27mw-82g8-phjj and GHSA-pfhg-q3qv-9q6r need setHeaders or use:enhance, which the app does not have). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
151 lines
6.3 KiB
YAML
151 lines
6.3 KiB
YAML
name: Release Desktop App
|
|
|
|
on:
|
|
push:
|
|
tags:
|
|
- 'desktop-v*'
|
|
workflow_dispatch:
|
|
inputs:
|
|
tag:
|
|
description: 'Tag name (e.g. desktop-v1.0.0). Created if missing.'
|
|
required: true
|
|
default: 'desktop-v1.0.0'
|
|
|
|
# Nothing by default; each job asks for the write it needs (both write to the
|
|
# release: the build its artefacts, updater-json latest.json).
|
|
permissions: {}
|
|
|
|
jobs:
|
|
build:
|
|
permissions:
|
|
contents: write
|
|
strategy:
|
|
fail-fast: false
|
|
matrix:
|
|
include:
|
|
- platform: 'macos-latest'
|
|
args: '--target universal-apple-darwin'
|
|
- platform: 'ubuntu-latest'
|
|
args: ''
|
|
- platform: 'windows-latest'
|
|
args: ''
|
|
runs-on: ${{ matrix.platform }}
|
|
steps:
|
|
- uses: actions/checkout@v6
|
|
|
|
- name: Install Linux build deps
|
|
if: matrix.platform == 'ubuntu-latest'
|
|
run: |
|
|
sudo apt-get update
|
|
sudo apt-get install -y \
|
|
libwebkit2gtk-4.1-dev \
|
|
libappindicator3-dev \
|
|
librsvg2-dev \
|
|
patchelf \
|
|
libssl-dev \
|
|
build-essential \
|
|
curl \
|
|
wget \
|
|
file
|
|
|
|
- uses: actions/setup-node@v7
|
|
with:
|
|
node-version: '26'
|
|
cache: 'npm'
|
|
cache-dependency-path: web/package-lock.json
|
|
|
|
# Third-party actions are pinned to a commit, with the version in a
|
|
# comment for Dependabot: a moved tag must not reach a job holding the
|
|
# updater's signing key. rust-toolchain is pinned to a MASTER commit and
|
|
# given its toolchain explicitly - its `stable` branch is regenerated on
|
|
# top of master, so a commit of that branch can disappear.
|
|
- name: Install Rust toolchain
|
|
uses: dtolnay/rust-toolchain@683b588c487a69d01f6c6ddf40f036ff682cc2c8 # v1 (master)
|
|
with:
|
|
toolchain: stable
|
|
targets: ${{ matrix.platform == 'macos-latest' && 'aarch64-apple-darwin,x86_64-apple-darwin' || '' }}
|
|
|
|
- uses: Swatinem/rust-cache@d1527c8f67ef9af357290475d4af4b0fab8f12e0 # v2.9.3
|
|
with:
|
|
workspaces: 'web/src-tauri -> target'
|
|
|
|
# Plain `npm ci`, as in web-ci.yml. The `|| npm install` fallback is what
|
|
# hid a lockfile conflict for a month: a release must build from exactly
|
|
# the dependencies that were tested, or not at all. No lifecycle scripts
|
|
# (web-ci.yml says why none is needed).
|
|
- name: Install web dependencies
|
|
working-directory: web
|
|
run: npm ci --ignore-scripts
|
|
|
|
- name: Build Tauri app
|
|
uses: tauri-apps/tauri-action@1deb371b0cd8bd54025b384f1cd735e725c4060f # v1.0.0
|
|
env:
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
# Inject the updater minisign private key so artefacts are signed
|
|
# at build time. Public key is baked into tauri.conf.json. Set
|
|
# `TAURI_SIGNING_PRIVATE_KEY` (and password if used) under
|
|
# repo Settings → Secrets and variables → Actions. The secret is
|
|
# required: bundle.createUpdaterArtifacts is on, and the updater in
|
|
# every installed copy rejects an artefact its public key cannot
|
|
# verify.
|
|
TAURI_SIGNING_PRIVATE_KEY: ${{ secrets.TAURI_SIGNING_PRIVATE_KEY }}
|
|
TAURI_SIGNING_PRIVATE_KEY_PASSWORD: ${{ secrets.TAURI_SIGNING_PRIVATE_KEY_PASSWORD }}
|
|
with:
|
|
projectPath: web
|
|
tagName: ${{ github.event.inputs.tag || github.ref_name }}
|
|
releaseName: 'F2P Tracker ${{ github.event.inputs.tag || github.ref_name }}'
|
|
releaseBody: |
|
|
Desktop builds of the F2P Tracker — a resizable window around the same app as https://free-steam-games.win.
|
|
|
|
**Installation**
|
|
- Windows: download the `.msi` or `-setup.exe` and run.
|
|
- macOS: download the `.dmg`, drag to Applications. Universal binary (Intel + Apple Silicon).
|
|
- Linux: `.AppImage` (run directly) or `.deb` (Debian/Ubuntu).
|
|
|
|
**Updates**: from 2.0.0 the app checks free-steam-games.win for a newer desktop release a few seconds after launch and offers to install it. The download comes from this Releases page and is verified against the app's minisign key before it installs. Publishing this draft is what makes it visible to that check.
|
|
|
|
The app reads its data from free-steam-games.win (`/api/data`) and keeps the last verified copy for offline use. See `docs/DISCLAIMER.md` for accuracy caveats.
|
|
|
|
Compiled from commit `${{ github.sha }}`.
|
|
releaseDraft: true
|
|
prerelease: false
|
|
uploadUpdaterJson: true
|
|
args: ${{ matrix.args }}
|
|
|
|
# tauri-action v1 writes each artefact's API URL into latest.json
|
|
# (api.github.com/repos/<repo>/releases/assets/<id>), and has no setting to
|
|
# change that. /api/updates/desktop (worker/routes/updates.ts) accepts only
|
|
# this release's download URLs and answers 204 - "no update" - to anything
|
|
# else, so desktop-v2.2.1, the first release built with v1, was offered to
|
|
# no installed app until its latest.json was fixed by hand. Once every
|
|
# platform has added its entries, scripts/updater_json.py rewrites them; it
|
|
# refuses an entry whose signature is not its file's .sig.
|
|
updater-json:
|
|
needs: build
|
|
permissions:
|
|
contents: write
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v6
|
|
|
|
# updater_json.py is stdlib-only, but it runs on the pipeline's Python
|
|
# like every other script, not on whatever the runner image ships.
|
|
- uses: actions/setup-python@v6
|
|
with:
|
|
python-version: '3.15'
|
|
|
|
- name: Point latest.json at the release downloads
|
|
env:
|
|
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
TAG: ${{ github.event.inputs.tag || github.ref_name }}
|
|
run: |
|
|
set -euo pipefail
|
|
work="$RUNNER_TEMP/updater-json"
|
|
mkdir -p "$work"
|
|
gh release download "$TAG" --repo "$GITHUB_REPOSITORY" --dir "$work" \
|
|
--pattern latest.json --pattern '*.sig'
|
|
gh release view "$TAG" --repo "$GITHUB_REPOSITORY" --json assets \
|
|
--jq '[.assets[] | {id: (.apiUrl | split("/") | last), name}]' > "$work/assets.json"
|
|
(cd "$work" && python3 "$GITHUB_WORKSPACE/scripts/updater_json.py" "$TAG")
|
|
gh release upload "$TAG" "$work/latest.json" --repo "$GITHUB_REPOSITORY" --clobber
|