Files
Adam Shiervani dc2b6d967f feat(release): download per-SKU app binary (#65)
update_app.sh now requires a SKU and downloads from
api.jetkvm.com/releases/app/latest?sku=<sku>, so SDMMC and EMMC builds
get the matching app binary instead of sharing one.

Build script downloads the binary inside each variant build, and CI
passes the SKU from the matrix.
2026-04-27 22:27:13 +02:00

19 lines
468 B
Bash
Executable File

#!/bin/bash
set -eE
SKU="${1:?Error: SKU is required (usage: $0 <sku>)}"
curl -fL "https://api.jetkvm.com/releases/app/latest?sku=${SKU}" -o /tmp/jetkvm_app
if [ ! -s /tmp/jetkvm_app ]; then
echo "Error: Failed to download latest app binary for SKU ${SKU}"
exit 1
fi
chmod +x /tmp/jetkvm_app
mv /tmp/jetkvm_app project/app/jetkvm/jetkvm/bin/jetkvm_app
echo "Successfully updated jetkvm_app to latest version for SKU ${SKU}"
rm -rf project/app/jetkvm/out