Files
Cogential--frametanium/tools/bundle.sh
T
CogentialandClaude Opus 5.5 1e1564df68 Check for updates when the headset app opens, and let Frametanium update itself
The headset app asks for a check (cached releases under 10 minutes old count) each time it opens; every check
then installs a newer Frametanium release without asking unless something else is installing
("self_update": false turns it off). Its version now comes from a VERSION file in the bundle, so its own row
is right however it was installed (deploy.sh included), and Update all does Frametanium last so the restart
can't cut off another install. After an update the list says to reopen the app.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01C3G4bF9bag9rHEh1Anvngi
2026-10-21 19:39:44 -04:00

15 lines
773 B
Bash
Executable File

#!/bin/sh
# Puts together what install.sh installs: tools/bundle.sh <built headset app folder> <out folder>
# (the app folder is what app/build-arm64.sh makes: frametanium, run.sh, lib/).
set -e
cd "$(dirname "$0")/.."
APPDIR="$1" OUT="$2"
[ -x "$APPDIR/frametanium" ] || { echo "No built headset app in $APPDIR" >&2; exit 1; }
rm -rf "$OUT" && mkdir -p "$OUT/tools"
cp manager.py page.html catalog.json suggestions.json frametanium.service install.sh README.md "$OUT/"
cp tools/find_appid.py "$OUT/tools/"
# The release it is (releases pass VERSION; local builds count as the newest tag), so Frametanium knows when to update.
echo "${VERSION:-$(git describe --tags --abbrev=0 2>/dev/null || echo unknown)}" > "$OUT/VERSION"
cp -r art "$OUT/art"
cp -r "$APPDIR" "$OUT/app"