mirror of
https://github.com/storytold/materialcraft.git
synced 2026-11-30 10:04:02 +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>
20 lines
604 B
Bash
Executable File
20 lines
604 B
Bash
Executable File
#!/usr/bin/env bash
|
|
# Stage the MaterialCraft 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"
|
|
mkdir "$stage/bin/.materialcraft-nightly"
|
|
mv "$stage/bin/materialcraft" "$stage/bin/.materialcraft-nightly/materialcraft"
|
|
cp "$here/nightly-arch-launch.sh" "$stage/bin/materialcraft"
|
|
chmod 755 "$stage/bin/materialcraft"
|
|
tar -C "$work" -czf "$destination/$basename.tar.gz" "$basename"
|
|
echo "wrote $destination/$basename.tar.gz"
|