mirror of
https://github.com/storytold/lightcraft.git
synced 2026-11-28 09:19:25 +01:00
Linux nightly packaging by @dylanmtaylor, with the per-app Nightly flavor commits stacked on his branch. SonarCloud coverage shard fails on pre-existing teardown crashes that also fail on main (tests::scan_probes::a_browse_through_a_link_and_dot_dot_reads_the_folder_the_system_names and tests::lifecycle_037::a_widget_gesture_cancels_if_its_target_moves_between_resolution_and_the_press, the GPU warm-up thread at process exit), fixed by #4697; reported to the LightCraft owner. Co-authored-by: Dylan M. Taylor <dylan@dylanmtaylor.com>
18 lines
892 B
Bash
Executable File
18 lines
892 B
Bash
Executable File
#!/bin/sh
|
|
# The headless Nightly CLI (`usr/bin/lightcraft-nightly-cli`). It is not the GUI's Launcher
|
|
# protocol: the same profile reaches it through its two documented host variables, and an explicit
|
|
# value still wins.
|
|
set -eu
|
|
self="$(readlink -f "$0")"
|
|
here="$(dirname "$self")"
|
|
# Never fall back to a relative path: an unresolvable $0 is a broken install, not a guess.
|
|
[ -n "$self" ] && [ "${here#/}" != "$here" ] || { echo "error: cannot resolve $0" >&2; exit 2; }
|
|
real="$here/../lib/lightcraft-nightly/lightcraft-cli"
|
|
case "${1:-}" in
|
|
--version | -V | --help | -h) exec "$real" "$@" ;;
|
|
esac
|
|
profile="${XDG_DATA_HOME:-${HOME:?HOME is required}/.local/share}/lightcraft-nightly"
|
|
if [ -z "${LIGHTCRAFT_CONFIG_DIR+x}" ]; then export LIGHTCRAFT_CONFIG_DIR="$profile/Settings"; fi
|
|
if [ -z "${LIGHTCRAFT_LIBRARY+x}" ]; then export LIGHTCRAFT_LIBRARY="$profile/Library"; fi
|
|
exec "$real" "$@"
|