mirror of
https://github.com/jetkvm/rv1106-system.git
synced 2026-05-21 05:20:41 +00:00
dc2b6d967f
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.
19 lines
468 B
Bash
Executable File
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
|