Files
texturecraft/packaging/linux/nightly-arch-tar.sh
T
Dylan M. Taylor 56efb48efb packaging(linux): support co-installable nightly packages (#801)
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>
2026-11-24 19:05:51 -06:00

23 lines
792 B
Bash
Executable File

#!/usr/bin/env bash
# Stage the TextureCraft Nightly-only handoff for the Arch packager.
set -euo pipefail
here="$(cd "$(dirname "$0")" && pwd)"
source_tree="$1"
work="$2"
destination="$3"
basename="$4"
stage="$work/$basename"
mkdir -p "$work"
cp -R "$source_tree" "$stage"
# The Nightly package is GUI-only: texturecraft-cli would read and rewrite Stable's
# Documents/TextureCraft brushes, which a private profile cannot redirect.
rm -f "$stage/bin/texturecraft-cli"
mkdir "$stage/bin/.texturecraft-nightly"
mv "$stage/bin/texturecraft" "$stage/bin/.texturecraft-nightly/texturecraft"
cp "$here/nightly-arch-launch.sh" "$stage/bin/texturecraft"
chmod 755 "$stage/bin/texturecraft"
tar -C "$work" -czf "$destination/$basename.tar.gz" "$basename"
echo "wrote $destination/$basename.tar.gz"