feat: "工作流"
Some checks failed
release / release (push) Failing after 9m17s

This commit is contained in:
2026-05-23 21:55:11 +08:00
parent 9c6d972139
commit 1129f9f915
5 changed files with 184 additions and 1 deletions

25
scripts/release.sh Executable file
View File

@@ -0,0 +1,25 @@
#!/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."