SPB Git

spb/zyquo-atlas Public License

The AI-native macOS web browser — every surface, intelligent.

Swift 75.2% JavaScript 22% Shell 2% Makefile 0.9%
2.8 KB · 87 lines shellscript
Raw Blame History
1#!/bin/bash2#3#  write-info-plist.sh4#  Zyquo Atlas5#6#  Author: Simon-Pierre Boucher7#  Mail: contact@spboucher.ai8#9#  Writes Contents/Info.plist into an assembled Zyquo Atlas.app bundle.10#  Usage: write-info-plist.sh <app-dir> <app-name> <exec-name> <bundle-id> <version> <build> <min-macos>11#12#  ATS posture for a browser: WKWebView loads arbitrary sites (incl. HTTP), so13#  NSAllowsArbitraryLoadsInWebContent=true opens ONLY the WKWebView content14#  surface — the app's own provider/API calls stay HTTPS-only (no blanket15#  NSAllowsArbitraryLoads). Registered as a candidate default browser via16#  CFBundleURLTypes (http/https) so macOS can offer Zyquo Atlas as a default.17#18set -euo pipefail1920APP_DIR="$1"; APP_NAME="$2"; EXEC_NAME="$3"; BUNDLE_ID="$4"; VERSION="$5"; BUILD_NUM="$6"; MIN_MACOS="$7"2122cat > "$APP_DIR/Contents/Info.plist" << PLIST23<?xml version="1.0" encoding="UTF-8"?>24<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">25<plist version="1.0">26<dict>27    <key>CFBundleName</key>28    <string>${APP_NAME}</string>29    <key>CFBundleDisplayName</key>30    <string>${APP_NAME}</string>31    <key>CFBundleIdentifier</key>32    <string>${BUNDLE_ID}</string>33    <key>CFBundleShortVersionString</key>34    <string>${VERSION}</string>35    <key>CFBundleVersion</key>36    <string>${BUILD_NUM}</string>37    <key>CFBundleExecutable</key>38    <string>${EXEC_NAME}</string>39    <key>CFBundlePackageType</key>40    <string>APPL</string>41    <key>CFBundleIconFile</key>42    <string>AppIcon</string>43    <key>CFBundleInfoDictionaryVersion</key>44    <string>6.0</string>45    <key>LSMinimumSystemVersion</key>46    <string>${MIN_MACOS}</string>47    <key>NSHighResolutionCapable</key>48    <true/>49    <key>NSPrincipalClass</key>50    <string>NSApplication</string>51    <key>LSApplicationCategoryType</key>52    <string>public.app-category.productivity</string>53    <key>NSHumanReadableCopyright</key>54    <string>© 2026 Simon-Pierre Boucher. All rights reserved.</string>55    <key>NSSupportsAutomaticTermination</key>56    <false/>57    <key>NSSupportsSuddenTermination</key>58    <false/>59    <key>CFBundleURLTypes</key>60    <array>61        <dict>62            <key>CFBundleURLName</key>63            <string>Web site URL</string>64            <key>CFBundleTypeRole</key>65            <string>Viewer</string>66            <key>CFBundleURLSchemes</key>67            <array>68                <string>http</string>69                <string>https</string>70            </array>71        </dict>72    </array>73    <key>NSUserActivityTypes</key>74    <array>75        <string>NSUserActivityTypeBrowsingWeb</string>76    </array>77    <key>NSAppTransportSecurity</key>78    <dict>79        <key>NSAllowsArbitraryLoadsInWebContent</key>80        <true/>81    </dict>82</dict>83</plist>84PLIST8586echo "Info.plist written to $APP_DIR/Contents/Info.plist"87