Skip to content

armgit / cua

Public Imported from GitHub
0

Scale computer-use 2.0 with open-source drivers, cross-OS sandboxes, and benchmarks for training, evaluation, and data generation.

ci: accept empty helper entitlement output (#3195)

Francesco Bonacci0d0ab336d0d3
diff --git a/.github/workflows/cd-rust-cua-driver.yml b/.github/workflows/cd-rust-cua-driver.yml
index 7aaeb3b087..679f1a0759 100644
--- a/.github/workflows/cd-rust-cua-driver.yml
+++ b/.github/workflows/cd-rust-cua-driver.yml
@@ -799,10 +799,15 @@ jobs:
release/CuaDriver.app/Contents/MacOS/cua-cursor-theme \
> release/actual-packaged-cursor-entitlements.plist
python3 - <<'PY'
+ import os
import plistlib
- with open("release/actual-packaged-cursor-entitlements.plist", "rb") as handle:
- actual = plistlib.load(handle)
+ path = "release/actual-packaged-cursor-entitlements.plist"
+ if os.path.getsize(path) == 0:
+ actual = {}
+ else:
+ with open(path, "rb") as handle:
+ actual = plistlib.load(handle)
assert "com.apple.application-identifier" not in actual
assert "keychain-access-groups" not in actual
PY