SPB Git

spb/zyquo-agent Public MIT

The autonomous agent that actually operates your Mac — plans, runs real commands, verifies its own work.

Swift 94.7% Shell 4.1% Python 0.7% Makefile 0.5%
2.0 KB · 60 lines shellscript
Raw Blame History
1#!/bin/bash2#3#  write-info-plist.sh4#  Zyquo Agent5#6#  Author: Simon-Pierre Boucher7#  Mail: contact@spboucher.ai8#9#  Writes Contents/Info.plist into an assembled app bundle.10#  Usage: write-info-plist.sh <app-dir> <app-name> <exec-name> <bundle-id> <version> <build> <min-macos>11#12set -euo pipefail1314APP_DIR="$1"; APP_NAME="$2"; EXEC_NAME="$3"; BUNDLE_ID="$4"; VERSION="$5"; BUILD_NUM="$6"; MIN_MACOS="$7"1516cat > "$APP_DIR/Contents/Info.plist" << PLIST17<?xml version="1.0" encoding="UTF-8"?>18<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">19<plist version="1.0">20<dict>21    <key>CFBundleName</key>22    <string>${APP_NAME}</string>23    <key>CFBundleDisplayName</key>24    <string>${APP_NAME}</string>25    <key>CFBundleIdentifier</key>26    <string>${BUNDLE_ID}</string>27    <key>CFBundleShortVersionString</key>28    <string>${VERSION}</string>29    <key>CFBundleVersion</key>30    <string>${BUILD_NUM}</string>31    <key>CFBundleExecutable</key>32    <string>${EXEC_NAME}</string>33    <key>CFBundlePackageType</key>34    <string>APPL</string>35    <key>CFBundleIconFile</key>36    <string>AppIcon</string>37    <key>CFBundleInfoDictionaryVersion</key>38    <string>6.0</string>39    <key>LSMinimumSystemVersion</key>40    <string>${MIN_MACOS}</string>41    <key>NSHighResolutionCapable</key>42    <true/>43    <key>NSPrincipalClass</key>44    <string>NSApplication</string>45    <key>LSApplicationCategoryType</key>46    <string>public.app-category.developer-tools</string>47    <key>NSAppleEventsUsageDescription</key>48    <string>Zyquo Agent runs AppleScript on your behalf to automate Mac apps (Finder, Notes, Mail, Calendar…). Every script is shown to you and passes the safety policy before it runs.</string>49    <key>NSHumanReadableCopyright</key>50    <string>© 2026 Simon-Pierre Boucher. All rights reserved.</string>51    <key>NSSupportsAutomaticTermination</key>52    <false/>53    <key>NSSupportsSuddenTermination</key>54    <false/>55</dict>56</plist>57PLIST5859echo "Info.plist written to $APP_DIR/Contents/Info.plist"60