26 lines
572 B
Bash
Executable File
26 lines
572 B
Bash
Executable File
#!/usr/bin/env bash
|
|
# Stage release artifacts into ./release/ for upload to Gitea Releases.
|
|
#
|
|
# Produces:
|
|
# release/app.mjs — built bundle
|
|
# release/install.sh — installer script
|
|
#
|
|
# Upload both files as assets on the matching tag in Gitea.
|
|
|
|
set -euo pipefail
|
|
|
|
cd "$(dirname "$0")/.."
|
|
|
|
echo "==> npm run build"
|
|
npm run build
|
|
|
|
mkdir -p release
|
|
cp dist/app.mjs release/app.mjs
|
|
cp scripts/install.sh release/install.sh
|
|
|
|
echo
|
|
echo "Staged:"
|
|
ls -lh release/
|
|
echo
|
|
echo "Next: upload release/app.mjs and release/install.sh as assets on the Gitea release tag."
|