Add Store support and unsigned app releases
This commit is contained in:
18
templates/rust-app/package.sh
Normal file
18
templates/rust-app/package.sh
Normal file
@@ -0,0 +1,18 @@
|
||||
#!/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
|
||||
Reference in New Issue
Block a user