Open History to see the last commit
1#!/bin/zsh
2set -eu
3task_root="$(cd "$(dirname "$0")/.." && pwd)"
4task_app="$task_root/build/TerrainFixture.app"
5mkdir -p "$task_app/Contents/MacOS"
6/usr/bin/swiftc -swift-version 6 "$task_root/scripts/fixtures/TerrainFixture.swift" -o "$task_app/Contents/MacOS/TerrainFixture"
7cat > "$task_app/Contents/Info.plist" <<'PLIST'
8<?xml version="1.0" encoding="UTF-8"?>
9<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
10<plist version="1.0"><dict>
11<key>CFBundlePackageType</key><string>APPL</string>
12<key>CFBundleVersion</key><string>1</string>
13<key>CFBundleDisplayName</key><string>Terrain Fixture</string>
14<key>CFBundleExecutable</key><string>TerrainFixture</string>
15<key>CFBundleIdentifier</key><string>com.jerry.terrainfixture</string>
16<key>CFBundleName</key><string>Terrain Fixture</string>
17<key>NSHighResolutionCapable</key><true/>
18</dict></plist>
19PLIST
20/System/Library/Frameworks/CoreServices.framework/Frameworks/LaunchServices.framework/Support/lsregister -f "$task_app"
21print "Fixture: $task_app"