mirror of
https://github.com/storytold/deckcraft.git
synced 2026-12-02 02:36:14 -06: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
575 B
Bash
Executable File
20 lines
575 B
Bash
Executable File
#!/usr/bin/env bash
|
|
# Stage the DeckCraft 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/.deckcraft-nightly"
|
|
mv "$stage/bin/deckcraft" "$stage/bin/.deckcraft-nightly/deckcraft-bin"
|
|
cp "$here/nightly-launch.sh" "$stage/bin/deckcraft"
|
|
chmod 755 "$stage/bin/deckcraft"
|
|
tar -C "$work" -czf "$destination/$basename.tar.gz" "$basename"
|
|
echo "wrote $destination/$basename.tar.gz"
|