‹ projects

reverb-m1

Native wired VR on Apple silicon: Reverb G1 display bring-up and stereo demo
git clone https://umhau.org/code/reverb-m1.git
Log | Files | Refs

build.sh (744B)


      1 #!/bin/zsh
      2 # Build the app and its narrow, entitled recovery helper together.
      3 set -euo pipefail
      4 cd "$(dirname "$0")/.."
      5 swift build
      6 # SwiftPM exposes the default configuration through this relative symlink.
      7 vr_bin_dir=".build/debug"
      8 clang -Wall -Wextra -O2 -framework IOKit -framework CoreFoundation tools/hpmctl.c -o "$vr_bin_dir/hpmctl"
      9 codesign --force --sign - --entitlements tools/hpmctl.entitlements "$vr_bin_dir/hpmctl"
     10 swiftc tools/hmdwake.swift -framework IOKit -o "$vr_bin_dir/hmdwake"
     11 swiftc tools/displaywatch.swift -o "$vr_bin_dir/displaywatch"
     12 print "App: $vr_bin_dir/VRWorkstation"
     13 print "Recovery helper: $vr_bin_dir/hpmctl"
     14 print "Native desktop: $vr_bin_dir/hmdwake"
     15 print "Passive display observer: $vr_bin_dir/displaywatch"