Let task agents use client Macs directly: bash, copy and hands

This commit is contained in:
Ian Gulliver
2026-10-17 23:45:31 -07:00
parent 8d9ba10849
commit 9b79ade073
25 changed files with 1382 additions and 952 deletions
+6 -2
View File
@@ -9,10 +9,12 @@ svg=$mac/icon.svg
icns=$build/byre.icns
mkdir -p "$shared" "$build"
lockf -k "$shared.lock" sh -ec '
rsync -rlc --delete --exclude /mac/.build "$1/mac" "$1/api" "$2/"
rsync -rlc --delete --exclude /mac/.build --exclude /hands/.build "$1/mac" "$1/api" "$1/hands" "$2/"
swift build --package-path "$2/mac" --configuration release --no-color-diagnostics
swift build --package-path "$2/hands" --configuration release --no-color-diagnostics
cp "$2/mac/.build/release/Byre" "$3"
' sh "$root" "$shared" "$build/Byre"
cp "$2/hands/.build/release/byre-hands" "$4"
' sh "$root" "$shared" "$build/Byre" "$build/byre-hands"
if [ ! "$icns" -nt "$svg" ]; then
iconset=$build/byre.iconset
rm -rf "$iconset"
@@ -26,6 +28,8 @@ fi
rm -rf "$app"
mkdir -p "$app/Contents/MacOS" "$app/Contents/Resources/fonts"
cp "$build/Byre" "$app/Contents/MacOS/Byre"
cp "$build/byre-hands" "$app/Contents/MacOS/byre-hands"
codesign --force --sign "Apple Development" --identifier run.fc.byre.hands "$app/Contents/MacOS/byre-hands"
cp "$mac/Info.plist" "$app/Contents/Info.plist"
plutil -insert ByreCommit -string "$(git -C "$root" rev-parse HEAD)" "$app/Contents/Info.plist"
cp "$mac"/fonts/*.woff2 "$app/Contents/Resources/fonts/"