Package workstation tools, reuse emulator sessions, and derive build versions

This commit is contained in:
2026-09-23 03:45:48 +08:00
parent 6bfcce8070
commit f5d9f96409
79 changed files with 878 additions and 132 deletions
+12
View File
@@ -0,0 +1,12 @@
#!/usr/bin/env bash
# Only this explicit target changes the host package database.
set -euo pipefail
[[ $# == 0 ]] || { printf 'Usage: tools/install-workstation\n' >&2; exit 2; }
cd "$(dirname -- "${BASH_SOURCE[0]}")/.."
package=$(cat out/workstation/package-path.txt)
[[ -f $package ]] || { printf 'Build fds-tools with make workstation first\n' >&2; exit 1; }
if (( EUID == 0 )); then
exec pacman -U -- "$package"
else
exec sudo pacman -U -- "$package"
fi