mirror of
https://github.com/saphid/frame-control.git
synced 2026-10-06 03:00:18 +02:00
Chromium XR build: skip gclient sync on re-runs; link the public repo
Once the SO_PEERCRED patch is applied, gclient sync refuses the modified checkout, so a re-run failed. Sync once per revision instead. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This commit is contained in:
1 parent
91aafc1371
commit
5592ee1570
2 files changed
+11
-1
No files matched your search
@@ -3,6 +3,10 @@
|
|||||||
Goal: open a web VR180 or 360 player (DeoVR and DL8 embeds, WebXR samples),
|
Goal: open a web VR180 or 360 player (DeoVR and DL8 embeds, WebXR samples),
|
||||||
press its VR button, and watch in 3D in the headset.
|
press its VR button, and watch in 3D in the headset.
|
||||||
|
|
||||||
|
A standalone, public version of this build (build script, the SO_PEERCRED
|
||||||
|
patch, and a Frame-side installer that adds "Chromium XR" to the Steam library)
|
||||||
|
is at [saphid/chromium-webxr-steam-frame](https://github.com/saphid/chromium-webxr-steam-frame).
|
||||||
|
|
||||||
## Why Flathub Chromium can't
|
## Why Flathub Chromium can't
|
||||||
|
|
||||||
**Verified 2026-09-25** (Frame BUILD_ID 20260922.6101926, Flathub
|
**Verified 2026-09-25** (Frame BUILD_ID 20260922.6101926, Flathub
|
||||||
|
|||||||
@@ -36,12 +36,18 @@ if ! git -C src rev-parse -q --verify HEAD >/dev/null 2>&1; then
|
|||||||
fi
|
fi
|
||||||
guard
|
guard
|
||||||
stage "src at $(git -C src log -1 --format='%h %s')"
|
stage "src at $(git -C src log -1 --format='%h %s')"
|
||||||
|
rev=$(git -C src rev-parse HEAD)
|
||||||
|
# Sync once per revision: once the patch below is applied, gclient sync
|
||||||
|
# refuses to run on the modified checkout, so re-runs must skip it.
|
||||||
|
if [ "$(cat "$W/synced" 2>/dev/null)" != "$rev" ]; then
|
||||||
stage "gclient sync"
|
stage "gclient sync"
|
||||||
gclient sync --nohooks --no-history -D --shallow --revision "src@$(git -C src rev-parse HEAD)" -j 8
|
gclient sync --nohooks --no-history -D --shallow --revision "src@$rev" -j 8
|
||||||
guard
|
guard
|
||||||
stage "runhooks"
|
stage "runhooks"
|
||||||
gclient runhooks
|
gclient runhooks
|
||||||
src/build/linux/sysroot_scripts/install-sysroot.py --arch=arm64
|
src/build/linux/sysroot_scripts/install-sysroot.py --arch=arm64
|
||||||
|
echo "$rev" > "$W/synced"
|
||||||
|
fi
|
||||||
guard
|
guard
|
||||||
cd src
|
cd src
|
||||||
# CL 8441736's XR seccomp policy refuses getsockopt, and SteamVR's IPC client
|
# CL 8441736's XR seccomp policy refuses getsockopt, and SteamVR's IPC client
|
||||||
|
|||||||
Reference in new issue
Block a user