#!/bin/bash # # write-info-plist.sh # Zyquo Router # # Author: Simon-Pierre Boucher # Mail: contact@spboucher.ai # # Writes Contents/Info.plist into an assembled app bundle. # Usage: write-info-plist.sh # set -euo pipefail APP_DIR="$1"; APP_NAME="$2"; EXEC_NAME="$3"; BUNDLE_ID="$4"; VERSION="$5"; BUILD_NUM="$6"; MIN_MACOS="$7" cat > "$APP_DIR/Contents/Info.plist" << PLIST CFBundleName ${APP_NAME} CFBundleDisplayName ${APP_NAME} CFBundleIdentifier ${BUNDLE_ID} CFBundleShortVersionString ${VERSION} CFBundleVersion ${BUILD_NUM} CFBundleExecutable ${EXEC_NAME} CFBundlePackageType APPL CFBundleIconFile AppIcon CFBundleInfoDictionaryVersion 6.0 LSMinimumSystemVersion ${MIN_MACOS} NSHighResolutionCapable NSPrincipalClass NSApplication LSApplicationCategoryType public.app-category.developer-tools NSHumanReadableCopyright © 2026 Simon-Pierre Boucher. All rights reserved. NSSupportsAutomaticTermination NSSupportsSuddenTermination PLIST echo "Info.plist written to $APP_DIR/Contents/Info.plist"