mirror of
https://github.com/tgeorgiadis/quiver-launcher.git
synced 2026-11-27 15:50:07 -05:00
* Show the copies that look like the game first, and keep Cancel in sight
With a Downloads folder full of ROMs, the setup dialog listed every one
the game's extensions matched. That pushed Choose a file and Cancel off
the bottom, and none of the files were the right game.
The dialog now lists the files named like the game first, best match
first, judged by how much of the game's title is in the file name.
Longer words count for more, so a shared "007" doesn't make a match.
The rest sit behind "Show N other files", and the dialog says when none
look like the game. However long it gets, the list scrolls inside the
dialog.
* Start the game once Play's setup has its copy
When Play opened the setup dialog, the player had to press Play a
second time after their copy was accepted. Now the game starts once
the last copy it needs is in place. Setting up a copy from the app's
page still ends on Ready to play, since the player didn't ask to play.
The game starts after the store has saved the copy, so Play finds
nothing missing and passes a flag or variable copy on to the game.
This also fixes a game that needs several copies skipping every
second one. The dialog counted its place in a list that got shorter
as each copy was set up. Now it always takes the next copy still
needed.
* Remove a shell crash dump committed by mistake
* Make Choose a file the button to press when nothing found is the game
The setup dialog only highlighted Choose a file when it found no files
at all. With 20 files and none that looked like the game, every button
looked the same. Now Choose a file is the primary, focused button
whenever nothing found looks like the game, or a chosen file wasn't
right. Button labels stay on one line, and buttons wrap onto a second
row instead of splitting "Choose a file…" in two.
* Say the game needs the player's copy to run, and what to choose
The setup dialog said "{name} plays your own copy of the game. Choose
its file…". It now reads "{name} needs your own copy of the game to
run. Choose the ROM, and Quiver checks it and puts it where {name}
needs it." It names a ROM, a disc image, a folder or a file, going by
the setup file's label and kind.
* Let players say where they keep each console's game copies
Settings has a new Game copies section. For each console (or every
console), the player picks the folders they keep its ROMs and disc
images in. When a game needs their copy, setup looks in its consoles'
folders and the every-console folders first, then the usual places.
In those folders it goes 6 levels deep instead of 4, with a larger
budget and up to 200 results, and lists what it finds there first. A
folder that is also one of the usual places is searched once, as the
player's.
The section only shows where the launcher can reach game files, so
not on Android or iOS.
* Ask where the player keeps their games, in the setup and once after
The first start's setup has a new step after Where apps install,
"Where are your games?". It shows the Game copies settings, asks for
the folders a few consoles' ROMs and disc images are in, and says they
can be changed and added to in Settings anytime.
A player who finished the setup before this step, or skipped it, sees
a one-time banner once their other banners are answered. Add folders…
opens Settings at Game copies; Not now dismisses it. Adding any
folder, or leaving the setup's step, answers it too. Neither shows on
Android or iOS.
Settings can now open at a given section.
* Give Settings' list test room for the Game copies section
The test sizes the window to just fit the Settings list. Game copies
made it seven sections, so the window is a section taller.
* Install the phone job's Chromium without the fonts that stall on Ubuntu's mirror
185 lines
8.5 KiB
YAML
185 lines
8.5 KiB
YAML
name: CI
|
|
on:
|
|
pull_request:
|
|
# The base branch too, so a break that lands on it shows there.
|
|
push:
|
|
branches: [main]
|
|
workflow_dispatch:
|
|
|
|
# A newer push to a pull request replaces the run for the older one.
|
|
concurrency:
|
|
group: ci-${{ github.event.pull_request.number || github.ref }}
|
|
cancel-in-progress: ${{ github.event_name == 'pull_request' }}
|
|
|
|
# Each job's time limit is two to three times as long as it usually takes (check 3 minutes, phone 1, windows 5,
|
|
# installer 6, appimage 5), with room for a build with nothing cached, so a stuck run stops instead of running on.
|
|
jobs:
|
|
check:
|
|
runs-on: ubuntu-24.04
|
|
timeout-minutes: 30
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- uses: pnpm/action-setup@v4
|
|
- uses: actions/setup-node@v4
|
|
with: { node-version: 22, cache: pnpm }
|
|
- uses: dtolnay/rust-toolchain@stable
|
|
- uses: Swatinem/rust-cache@v2
|
|
with: { workspaces: apps/launcher/src-tauri }
|
|
# Ubuntu's mirror can crawl: apt-install.sh tries a stalled download again, and the step's limit stops one that
|
|
# stays stuck rather than holding the job.
|
|
- name: System libraries
|
|
timeout-minutes: 12
|
|
run: .github/apt-install.sh libdbus-1-dev libwebkit2gtk-4.1-dev librsvg2-dev libayatana-appindicator3-dev libudev-dev
|
|
- run: pnpm install --frozen-lockfile
|
|
- run: pnpm typecheck
|
|
- run: pnpm test
|
|
# The translation catalogs list every string in the code: a string added without running extract fails here.
|
|
- run: pnpm --filter @quiverlauncher/i18n check
|
|
- run: cargo test --manifest-path apps/launcher/src-tauri/Cargo.toml
|
|
|
|
# Every screen at Android phones' sizes (e2e/phone.test.js): the web side alone, so no Rust build.
|
|
phone:
|
|
runs-on: ubuntu-24.04
|
|
timeout-minutes: 12
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- uses: pnpm/action-setup@v4
|
|
- uses: actions/setup-node@v4
|
|
with: { node-version: 22, cache: pnpm }
|
|
- run: pnpm install --frozen-lockfile
|
|
# Chromium alone: the runner's image has the libraries it needs already. --with-deps added only fonts for scripts
|
|
# these English screens don't show, and Ubuntu's mirror stalled on them past the step's 8 minutes three times.
|
|
- run: pnpm --filter @quiver/e2e exec playwright install chromium
|
|
timeout-minutes: 8
|
|
- run: pnpm --filter @quiver/e2e phone
|
|
# To look over, failed or not.
|
|
- uses: actions/upload-artifact@v4
|
|
if: always()
|
|
with:
|
|
name: Phone screenshots
|
|
path: e2e/phone-screenshots/
|
|
|
|
# A controller, the keys and the mouse around every screen (e2e/web/): the web side alone in WebKit, the Rust side
|
|
# stood in for, so no Rust build and no presses waiting on a WebDriver session (about 7 minutes).
|
|
web:
|
|
runs-on: ubuntu-24.04
|
|
timeout-minutes: 20
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- uses: pnpm/action-setup@v4
|
|
- uses: actions/setup-node@v4
|
|
with: { node-version: 22, cache: pnpm }
|
|
- run: pnpm install --frozen-lockfile
|
|
- run: pnpm --filter @quiver/e2e exec playwright install --with-deps webkit
|
|
timeout-minutes: 8
|
|
- run: pnpm --filter @quiver/e2e web
|
|
|
|
windows:
|
|
runs-on: windows-latest
|
|
timeout-minutes: 20
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- uses: pnpm/action-setup@v4
|
|
- uses: actions/setup-node@v4
|
|
with: { node-version: 22, cache: pnpm }
|
|
- uses: dtolnay/rust-toolchain@stable
|
|
- uses: Swatinem/rust-cache@v2
|
|
with: { workspaces: apps/launcher/src-tauri }
|
|
- run: pnpm install --frozen-lockfile
|
|
- run: cargo test --manifest-path apps/launcher/src-tauri/Cargo.toml
|
|
- run: pnpm --filter @quiver/launcher tauri build --debug --no-bundle
|
|
- name: The app starts
|
|
run: |
|
|
$env:QUIVER_DATA = "$env:RUNNER_TEMP\quiver-smoke"
|
|
$app = Start-Process apps\launcher\src-tauri\target\debug\quiver-launcher.exe -PassThru
|
|
Start-Sleep 10
|
|
"still running: $(-not $app.HasExited), exit code: $($app.ExitCode)"
|
|
Get-Content "$env:QUIVER_DATA\quiver.log" -ErrorAction SilentlyContinue
|
|
Stop-Process $app -ErrorAction SilentlyContinue
|
|
|
|
installer:
|
|
runs-on: windows-latest
|
|
timeout-minutes: 20
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- uses: pnpm/action-setup@v4
|
|
- uses: actions/setup-node@v4
|
|
with: { node-version: 22, cache: pnpm }
|
|
- uses: dtolnay/rust-toolchain@stable
|
|
# Shared with the release workflow's Windows build, which starts from it.
|
|
- uses: Swatinem/rust-cache@v2
|
|
with: { workspaces: apps/launcher/src-tauri, shared-key: windows-release }
|
|
- run: pnpm install --frozen-lockfile
|
|
# Unsigned until there are signing keys.
|
|
- run: pnpm --filter @quiver/launcher tauri build --bundles nsis
|
|
# Usage data and error reports (telemetry.ts), as in a release.
|
|
env:
|
|
VITE_USAGE_DATA: "1"
|
|
VITE_SENTRY_DSN: https://84d1ea0079a275f2356a6605b1823ff5@o4512369991942144.ingest.de.sentry.io/4512370215551056
|
|
- uses: actions/upload-artifact@v4
|
|
with:
|
|
name: Quiver Launcher Windows installer
|
|
path: apps/launcher/src-tauri/target/release/bundle/nsis/*.exe
|
|
|
|
# For Linux and Steam Deck: runs without installing anything. Built on the
|
|
# oldest supported Ubuntu so it works on older and newer distros alike, on
|
|
# Chromium (Tauri's CEF runtime) as the release is.
|
|
appimage:
|
|
runs-on: ubuntu-22.04
|
|
timeout-minutes: 45
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- uses: pnpm/action-setup@v4
|
|
- uses: actions/setup-node@v4
|
|
with: { node-version: 22, cache: pnpm }
|
|
- uses: dtolnay/rust-toolchain@stable
|
|
# Kept when a later step fails too: a build from nothing takes about 20 minutes, and a run that fails after it
|
|
# would otherwise leave the next one to start from nothing again.
|
|
- uses: Swatinem/rust-cache@v2
|
|
with: { workspaces: apps/launcher/src-tauri, key: cef, cache-on-failure: true }
|
|
# The CEF build's CLI (built once per revision in cef-tools.sh) and the CEF distribution, saved as soon as each is
|
|
# there, whatever happens after.
|
|
- id: cef
|
|
run: echo "rev=$(sed -n 's/^REV=//p' .github/cef-tools.sh)" >> "$GITHUB_OUTPUT"
|
|
- id: cli
|
|
uses: actions/cache/restore@v4
|
|
with: { path: ~/.cache/tauri-cef-cli, key: "tauri-cef-cli-${{ steps.cef.outputs.rev }}" }
|
|
- id: dist
|
|
uses: actions/cache/restore@v4
|
|
with: { path: ~/.cache/cef, key: "cef-${{ hashFiles('apps/launcher/src-tauri/Cargo.cef.lock') }}" }
|
|
# Ubuntu's mirror can crawl: apt-install.sh tries a stalled download again, and the step's limit stops one that
|
|
# stays stuck rather than holding the job.
|
|
- name: System libraries
|
|
timeout-minutes: 12
|
|
run: .github/apt-install.sh libdbus-1-dev libwebkit2gtk-4.1-dev librsvg2-dev libayatana-appindicator3-dev libudev-dev libfuse2 xvfb
|
|
- name: The CEF build's tools
|
|
timeout-minutes: 25
|
|
run: .github/cef-tools.sh
|
|
- if: steps.cli.outputs.cache-hit != 'true'
|
|
uses: actions/cache/save@v4
|
|
with: { path: ~/.cache/tauri-cef-cli, key: "${{ steps.cli.outputs.cache-primary-key }}" }
|
|
- run: pnpm install --frozen-lockfile
|
|
- run: sh apps/launcher/scripts/tauri-cef.sh build --bundles appimage
|
|
env:
|
|
VITE_USAGE_DATA: "1"
|
|
VITE_SENTRY_DSN: https://84d1ea0079a275f2356a6605b1823ff5@o4512369991942144.ingest.de.sentry.io/4512370215551056
|
|
- if: always() && steps.dist.outputs.cache-hit != 'true'
|
|
uses: actions/cache/save@v4
|
|
with: { path: ~/.cache/cef, key: "${{ steps.dist.outputs.cache-primary-key }}" }
|
|
- name: The AppImage holds what Chromium loads
|
|
run: .github/cef-appimage-check.sh apps/launcher/src-tauri/target/release/bundle/appimage/*.AppImage
|
|
- name: The AppImage starts
|
|
run: |
|
|
export QUIVER_DATA=$RUNNER_TEMP/quiver-smoke
|
|
# A smoke test isn't usage: its events go nowhere.
|
|
export QUIVER_USAGE_HOST=http://127.0.0.1:9
|
|
# Output goes to a file so nothing left running holds the step open.
|
|
status=0; xvfb-run -a timeout 15 apps/launcher/src-tauri/target/release/bundle/appimage/*.AppImage > $RUNNER_TEMP/app.log 2>&1 || status=$?
|
|
cat $RUNNER_TEMP/app.log $QUIVER_DATA/quiver.log 2>/dev/null || true
|
|
# 124: still running when the timeout stopped it.
|
|
test $status -eq 124
|
|
- uses: actions/upload-artifact@v4
|
|
with:
|
|
name: Quiver Launcher for Linux (AppImage)
|
|
path: apps/launcher/src-tauri/target/release/bundle/appimage/*.AppImage
|