mirror of
https://github.com/saphid/frame-control.git
synced 2026-10-06 00:00:21 +02:00
Package the Frame Control web UI as an installable Electron Mac app and bring in the tooling built alongside it. - app/: Electron wrapper that starts ui/server.py on a free loopback port, hardened window (sandbox, no navigation, runAsNode fuse off), login-shell PATH so Homebrew tools work from Finder, first-run offer to run connect.sh, ad-hoc signed DMG/zip via electron-builder. - ui/: headset view (OpenVR screenshots), device status, library, Steam "Get games" (owned games, install, store search), Android apps as persistent Lepton instances with a rated F-Droid catalogue and a private compatibility database, Android display controls over ADB, file and clipboard transfer, Flatpaks, remote and power actions. - apk-catalog/, compat-db/, frame/: catalogue build pipeline, Lakebed capsule for compatibility reports, Frame-side launchers. - tests/ and CI: server guard and validation tests plus Steam helper tests, run on Python 3.9 with script and app syntax checks. - Docs: README leads with the Mac app; new Android, panels, Steam games and field-notes docs; security notes on LAN-exposed ADB ports. Screenshot values for the headset's IP and Wi-Fi name are placeholders. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
20 lines
706 B
Python
20 lines
706 B
Python
"""Choose which F-Droid version of an app to rate and install.
|
|
|
|
F-Droid often publishes one APK per ABI under different version codes, and
|
|
the highest code is frequently the x86_64 build. Prefer the newest version
|
|
Lepton can install (arm64-v8a or no native code, minSdk <= 30), else the newest.
|
|
"""
|
|
LEPTON_SDK = 30
|
|
|
|
|
|
def installable(v):
|
|
m = v['manifest']
|
|
native = m.get('nativecode') or []
|
|
return (not native or 'arm64-v8a' in native) and \
|
|
m.get('usesSdk', {}).get('minSdkVersion', 1) <= LEPTON_SDK
|
|
|
|
|
|
def pick_version(p):
|
|
vs = sorted(p['versions'].values(), key=lambda v: v['manifest'].get('versionCode', 0), reverse=True)
|
|
return next((v for v in vs if installable(v)), vs[0])
|