mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-12-04 19:41:36 -05:00
20c9bebb47
Closes every finding in the batch-1 review of our two commits: - main.rs: the version log line passed a call as an inline format argument (a compile error); it is now a positional argument. Same for the joined-flag test in launch_profile.rs. - profile_root.rs: the accepted Windows + FLATPAK_ID case creates the root, so the "a refused launch creates nothing" assertion could not hold; it is now made per refused case, and the accepted case cleans up after itself. - The updater is off in a Nightly: the runtime keeps no Updater unless os_window::stable_services_allowed(), tick/pump/start_pending_update return early without one, and Help > Check for Updates says ArtCraft Launcher manages the Nightly's updates instead of offering a stable release (whose records live in the stable app's folders the profile fence refuses). New test. - AppInfo.id stays "vectorcraft" in both channels (it is the craft-settings id a theme's [apps.<id>] pins key on); only name and version vary. New test. - A caught panic no longer clears the session record: nightly_session::release() drops the lease and keeps the record. New test. - The Nightly window title and drawn title bar carry "VectorCraft Nightly". New test. - .gitignore gains __pycache__/ (the producer checks for a clean tree). - nightly-signing-tests.ps1 names the real HEAD and run date, so Assert-NightlySource passes and the mocked compiler boundary is what stops the run. - eframe's persistence_path is a folder of its own (<profile>/eframe), not craft's window.json file; the docs stop claiming an app.ron is written today. Standard Nightly layout: `<app>` is the launcher and `<app>-bin` the GUI it starts, in every Linux format, through one launcher (packaging/linux/nightly-launch.sh, replacing the per-format heredocs and nightly-arch-launch.sh): tar vectorcraft/vectorcraft-bin, deb+rpm /usr/bin/vectorcraft-nightly + /usr/lib/vectorcraft-nightly/vectorcraft-bin, AppImage AppRun + usr/bin/vectorcraft-bin, Arch bin/vectorcraft + bin/.vectorcraft-nightly/vectorcraft-bin, Flatpak /app/bin/vectorcraft + /app/libexec/vectorcraft-bin. It finds the GUI from its own directory, adds --launch-profile nightly-v1 --profile-root ... --, and passes a version/help query, the Launcher's own invocation or a caller-written -- through untouched. New suite packaging/linux/nightly-launch-tests.py drives all five placements; the archive policy, its tests, the arch test and the docs follow the layout. The nightly deb/rpm tree also stops shipping stable's /usr/bin/vectorcraft-cli beside the nightly CLI. The Nightly tar ships the Nightly art instead of stable's icon. Deviation recorded in RESULT.md: the refusal message still goes to standard error rather than a native dialog (workspace denies unsafe_code, winsafe is wgpu-only, a dialog crate would change Cargo.lock; a modal box also risks hanging a headless run).
33 lines
1.7 KiB
Bash
Executable File
33 lines
1.7 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/vectorcraft-$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 standard Nightly layout: `<app>` is the launcher and `<app>-bin` the GUI it starts, so an
|
|
# unpacked tar is isolated like the packages and the shared smoke can query the entrypoint.
|
|
cp "$NIGHTLY_GUI" "$STAGE/vectorcraft-bin"
|
|
chmod 755 "$STAGE/vectorcraft-bin"
|
|
cp "$ROOT/packaging/linux/nightly-launch.sh" "$STAGE/vectorcraft"
|
|
chmod 755 "$STAGE/vectorcraft"
|
|
# The Nightly art, not stable's: with both channels open the two tars must not share an icon.
|
|
cp "$ROOT/assets/app-icon/vectorcraft-nightly.png" "$STAGE/vectorcraft.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"
|