mirror of
https://github.com/storytold/effectcraft.git
synced 2026-11-28 17:19:14 +01:00
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>
14 lines
694 B
Bash
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" -- "$@"
|