mirror of
https://github.com/storytold/texturecraft.git
synced 2026-11-28 17:19:24 +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>
23 lines
792 B
Bash
Executable File
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"
|