SPB Git

spb/zyquo-router Public MIT

One local endpoint, every AI provider — a private OpenAI-compatible LLM gateway for your Mac (170 models, 12 providers).

Swift 95.7% Python 2.3% Shell 1.2% Makefile 0.9%
1.8 KB · 58 lines shellscript
Raw Blame History
1#!/bin/bash2#3#  write-info-plist.sh4#  Zyquo Router5#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>NSHumanReadableCopyright</key>48    <string>© 2026 Simon-Pierre Boucher. All rights reserved.</string>49    <key>NSSupportsAutomaticTermination</key>50    <false/>51    <key>NSSupportsSuddenTermination</key>52    <false/>53</dict>54</plist>55PLIST5657echo "Info.plist written to $APP_DIR/Contents/Info.plist"58