Files
deckcraft/packaging/linux/nightly-launch.sh
T
skylartaylor 9d41c9df7a Re-render the launcher from #363's pass-through template
Re-rendered from craft-common-actions #363's new head (5ee7780), which passes the
Launcher's own profile line through:

  --launch-profile) exec "$target" "$@" ;;

The ArtCraft Launcher starts the entry point with its own profile pair and per-install
root, so that line now reaches the GUI unchanged; a version query still answers with one
plain --version and every other argument still gets the template's fixed profile root.

The tar tests pin the pass-through and keep the wrapped cases (a --profile-root that does
not open the arguments, the `=` spelling, --help), and every suite is rerun.
2026-11-25 17:14:36 +01:00

17 lines
776 B
Bash
Executable File

#!/bin/sh
# Nightly launcher generated by craft-common-actions scripts/nightly-launcher.sh.in. Do not edit:
# the shared nightly producer accepts this file only byte for byte as rendered for the app.
set -eu
dir=$(CDPATH='' cd -- "$(dirname -- "$0")" && pwd -P)
readonly dir
target="$dir/deckcraft-bin"
readonly target
profile_root="${XDG_DATA_HOME:-$HOME/.local/share}/ai.storyteller.deckcraft.nightly"
readonly profile_root
case "${1-}" in
# The ArtCraft Launcher passes its own profile and per-install root; the app validates the pair.
--launch-profile) exec "$target" "$@" ;;
--version | -V) exec "$target" --launch-profile nightly-v1 --profile-root "$profile_root" --version ;;
esac
exec "$target" --launch-profile nightly-v1 --profile-root "$profile_root" -- "$@"