mirror of
https://github.com/DeeJanuz/frametop.git
synced 2026-10-06 04:04:09 +02:00
Consent 2026-10-03, after a non-lawyer review: who runs this and how to reach them, the dataset is public (Hugging Face, possibly abroad), the Hugging Face username shows next to the contributor id, purposes (no identification), safety, the maintainer grant passes to whoever maintains Frametop next, withdrawal before and after merge, rights such as the GDPR's, and what a new version means. Residents of Illinois, Texas and Washington can't take part for now (biometric privacy laws): a third checkbox, profile consent.region_ok, checked by validate.py from this consent version on. The DRAFT banners are gone, so uploads no longer need FT_HANDREC_ALLOW_UPLOAD. hands/rec/install.sh installs the recorder on a Frame with Frametop: container packages, hand tracking and panel builds, ft-camd's capabilities, menu entry. test_qml_backend also checks each call's argument count against the slots. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
39 lines
1.9 KiB
Bash
Executable File
39 lines
1.9 KiB
Bash
Executable File
#!/usr/bin/env bash
|
|
# Install the hand recorder on a Frame that has Frametop (get.sh --experimental): bring the dev
|
|
# container's packages up to date, build hand tracking's camera broker and tracker (hands/build.sh:
|
|
# the first build fetches and builds ncnn, a few minutes) and the headset panel (hands/rec/build.sh),
|
|
# give ft-camd its capabilities (hands/run.sh caps: asks for the password, once per build), and add
|
|
# "Frametop Hand Recorder" to the app menu (for Frametop's desktop: it isn't tested from SteamVR's
|
|
# "Launch a program", which runs apps outside it; the standalone recorder is for that).
|
|
# It doesn't turn on Frametop's live hand tracking (that's hands/run.sh install, still deferred).
|
|
# Usage: hands/rec/install.sh install or update
|
|
# hands/rec/install.sh uninstall remove the menu entry (recordings stay where they are)
|
|
set -euo pipefail
|
|
root=$(cd "$(dirname "${BASH_SOURCE[0]}")/../.." && pwd)
|
|
. "$root/scripts/_env.sh"
|
|
entry='~/.local/share/applications/frametop-handrec.desktop'
|
|
|
|
case ${1:-install} in
|
|
install)
|
|
echo "== 1/4 dev container packages"
|
|
"$root/setup/dev-container.sh"
|
|
echo "== 2/4 hand tracking: ft-camd and ft-hands"
|
|
"$root/hands/build.sh"
|
|
echo "== 3/4 the headset panel: ft-handpanel"
|
|
"$root/hands/rec/build.sh"
|
|
echo "== 4/4 ft-camd's capabilities (asks for your password) and the menu entry"
|
|
"$root/hands/run.sh" caps
|
|
fill_template "$root/hands/rec/ft-handrec.desktop" |
|
|
on_frame "mkdir -p ~/.local/share/applications && cat > $entry"
|
|
echo
|
|
echo "Installed. On Frametop's desktop, open \"Frametop Hand Recorder\" from the app menu."
|
|
echo "Recordings go to ~/.local/share/frametop/hands/contrib."
|
|
;;
|
|
uninstall)
|
|
on_frame "rm -f $entry"
|
|
echo "Removed the menu entry. Your recordings are still in ~/.local/share/frametop/hands/contrib:"
|
|
echo "delete that folder to remove them."
|
|
;;
|
|
*) echo "usage: $0 [install|uninstall]" >&2; exit 2 ;;
|
|
esac
|