mirror of
https://github.com/storytold/materialcraft.git
synced 2026-11-30 18:13:53 +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>
17 lines
974 B
Bash
Executable File
17 lines
974 B
Bash
Executable File
#!/bin/sh
|
|
# The launcher inside MaterialCraft Nightly's flat tar, installed as `materialcraft`: an unpacked
|
|
# copy starts the GUI beside it (`materialcraft-bin`) the flavor's way -- with this channel's own
|
|
# launch profile -- so it never reads or writes stable's settings, window state or recovery copies.
|
|
set -eu
|
|
|
|
here="$(dirname "$0")"
|
|
case "${1-}" in
|
|
# The Launcher already named the profile (its version query does too), in either accepted order;
|
|
# never pass it a second pair. A plain version or help query is answered without any profile.
|
|
--launch-profile | --profile-root | --version | -V | --help | -h) exec "$here/materialcraft-bin" "$@" ;;
|
|
esac
|
|
# A caller-written `--` is ours to strip: the app receives exactly one, from here.
|
|
if [ "${1-}" = "--" ]; then shift; fi
|
|
profile_base="${XDG_DATA_HOME:-${HOME:?HOME is required}/.local/share}"
|
|
exec "$here/materialcraft-bin" --launch-profile nightly-v1 --profile-root "$profile_base/materialcraft-nightly" -- "$@"
|