Files
effectcraft/packaging/linux/nightly-arch-launch.sh
T
Dylan M. Taylor 59aed45057 packaging(linux): support co-installable nightly packages (#4154)
Linux nightly packaging by @dylanmtaylor, with the per-app Nightly flavor commits stacked on his branch.

Co-authored-by: Dylan M. Taylor <dylan@dylanmtaylor.com>
2026-11-24 19:38:19 -06:00

14 lines
694 B
Bash

#!/bin/sh
# EffectCraft Nightly handoff for the Arch packager: the hidden binary is the real GUI, and this
# launcher gives it the Nightly profile. The Nightly build refuses EFFECTCRAFT_CONFIG_DIR, so the
# profile is passed as the Launcher's own protocol; a version query (or an already selected
# profile) passes through, because after `--` both would be file names.
set -eu
real_bin="$(dirname "$0")/.effectcraft-nightly/effectcraft"
case "${1:-}" in
--version|-V|--launch-profile) exec "$real_bin" "$@" ;;
esac
profile_base="${XDG_DATA_HOME:-${HOME:?HOME is required}/.local/share}"
exec "$real_bin" --launch-profile nightly-v1 --profile-root "$profile_base/effectcraft-nightly" -- "$@"