mirror of
https://github.com/storytold/gridcraft.git
synced 2026-12-01 18:26:05 -06:00
- Put his nightly.yml, nightly-sign.yml and installed signing policy back byte for byte (no `false &&`, his five manual actors, his 605d5876 pin), and drop our dormant duplicates: nightly-dispatch.yml, the policy template and the actionlint waiver that only hid the `queue:` key he removed. - Adapt nightly-release-tests.py to the enabled pair: no schedule, his exact context guards, the release managers in caller and policy, one pin, the installed policy's fields and platforms, plus this branch's guards for the committed Linux key and the Sonar fixture scope. - cargo fmt --all (17 hunks in 7 files); clean under rustfmt 1.10 and 1.100. - Flat nightly tar uses the kit layout: `gridcraft` is the launcher and `gridcraft-bin` the GUI it starts, and the launcher never starts itself. - docs: his go-live doc, one stale sentence corrected, plus a flavor section. - Drop the unused GRIDCRAFT_CONFIG_DIR stable knob; an empty XDG_CONFIG_HOME now falls back to ~/.config.
34 lines
1.8 KiB
Bash
Executable File
34 lines
1.8 KiB
Bash
Executable File
#!/usr/bin/env bash
|
|
# App-owned GUI-only nightly tar: no FUSE/AppImage, CLI, association or install hooks.
|
|
set -euo pipefail
|
|
ARCH=
|
|
while [[ $# -gt 0 ]]; do
|
|
case "$1" in
|
|
--arch) [[ $# -ge 2 ]] || { echo 'missing --arch value' >&2; exit 2; }; ARCH="$2"; shift 2 ;;
|
|
-h|--help) echo 'Usage: nightly.sh --arch x86_64'; exit 0 ;;
|
|
*) echo "unsupported nightly argument: $1" >&2; exit 2 ;;
|
|
esac
|
|
done
|
|
[[ "$ARCH" == x86_64 && "$(uname -s)" == Linux ]] || { echo 'only native Linux x86_64 nightly packaging is supported' >&2; exit 2; }
|
|
# shellcheck source=../nightly-common.sh
|
|
. "$(dirname "${BASH_SOURCE[0]}")/../nightly-common.sh"
|
|
nightly_init linux "$ARCH" x86_64-unknown-linux-gnu
|
|
OUTPUT="$DIST/gridcraft-$VERSION-linux-x86_64-nightly.tar.gz"
|
|
[[ ! -e "$OUTPUT" && ! -L "$OUTPUT" ]] || nightly_die 'refusing to replace an existing nightly archive'
|
|
nightly_build_gui
|
|
STAGE="$NIGHTLY_WORK/stage"
|
|
mkdir -p "$STAGE"
|
|
# The kit's tar layout: `gridcraft` is the launcher people run and `gridcraft-bin` is the GUI it
|
|
# starts. An unpacked archive is isolated too, because the GUI refuses to start without a launch
|
|
# profile and the launcher is the only thing that supplies one.
|
|
cp "$NIGHTLY_GUI" "$STAGE/gridcraft-bin"
|
|
chmod 755 "$STAGE/gridcraft-bin"
|
|
cp "$ROOT/packaging/linux/nightly-launch.sh" "$STAGE/gridcraft"
|
|
chmod 755 "$STAGE/gridcraft"
|
|
# The nightly channel's own icon (deeper field); the archive member name stays as the helper requires.
|
|
cp "$ROOT/assets/app-icon/gridcraft-nightly.png" "$STAGE/gridcraft-nightly.png"
|
|
nightly_copy_notices "$STAGE"
|
|
# The private mktemp cwd is the helper authority root, not a CLI path parent.
|
|
(cd "$NIGHTLY_WORK" && python3 "$ROOT/packaging/nightly-archive.py" linux stage archive.tar.gz)
|
|
nightly_publish_archive "$NIGHTLY_WORK/archive.tar.gz" "$OUTPUT"
|