mirror of
https://github.com/storytold/deckcraft.git
synced 2026-12-01 10:13:09 -06:00
Renders the plain nightly tar's launcher from craft-common-actions' shared template. Independent check: dylanmtaylor compared all 14 app launcher PRs byte for byte with the template rendered from the registry (https://github.com/storytold/craft-common-actions/pull/367#issuecomment-7172085284); this head was re-checked against craft-common-actions main 88148a5.
20 lines
583 B
Bash
Executable File
20 lines
583 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-package-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"
|