Files
MichaelScottsman--LiquidAss…/tools/make_release.sh
T
MichaelScottsman a3e93ff520 Command-line installer: install.sh fetches the latest release and installs or uninstalls LiquidAss on the headset
tools/make_release.sh builds the release archive; README covers install, uninstall and releases.
2026-10-09 16:06:18 -04:00

19 lines
796 B
Bash
Executable File

#!/bin/sh
# Builds the release archive install.sh downloads: dist/LiquidAss-Frame.tar.gz
# holds device/ theme/ lab/ native/ (tracked files at HEAD) and VERSION.
#
# sh tools/make_release.sh v0.1
# gh release create v0.1 dist/LiquidAss-Frame.tar.gz install.sh --title "LiquidAss v0.1"
set -eu
cd "$(dirname "$0")/.."
ver=${1:?usage: make_release.sh VERSION (e.g. v0.1)}
[ -z "$(git status --porcelain)" ] || { echo "commit your changes first" >&2; exit 1; }
mkdir -p dist
stage=$(mktemp -d)
trap 'rm -rf "$stage"' EXIT
git archive --format=tar HEAD device theme lab native | tar -xf - -C "$stage"
printf '%s\n' "$ver" > "$stage/VERSION"
tar -czf dist/LiquidAss-Frame.tar.gz -C "$stage" VERSION device theme lab native
echo "dist/LiquidAss-Frame.tar.gz ($ver, $(git rev-parse --short HEAD))"