19 lines
582 B
Bash
19 lines
582 B
Bash
#!/usr/bin/env bash
|
|
# Builds the release assets into dist/: app.toml and <id>-<version>.tar.zst.
|
|
# Upload both files to a release of this repo; that's all the
|
|
# store needs. The CI files here do it on every tag.
|
|
#
|
|
# Build on Debian trixie (what the TV runs) or older, so the binary's glibc
|
|
# isn't newer than the TV's.
|
|
set -euo pipefail
|
|
cd "$(dirname "$0")"
|
|
|
|
cargo build --release --locked
|
|
rm -rf pkg dist
|
|
mkdir -p pkg/bin
|
|
cp app.toml pkg/
|
|
[ -f icon.png ] && cp icon.png pkg/
|
|
install -m755 target/release/hello-fennec pkg/bin/hello-fennec
|
|
sf-pack build pkg dist
|
|
sf-pack verify dist
|