spike(blocks): Spike C — SwiftUI block editor, live preview mode C (#54)
CI / ci (push) Canceled after 0s
CI / ci (push) Canceled after 0s
This commit is contained in:
1 parent
f31af14ac4
commit
986f435762
14 files changed
+470
No files matched your search
Executable
+28
@@ -0,0 +1,28 @@
|
||||
#!/bin/zsh
|
||||
# ponytail: wrap the SPM binary in a minimal .app — SwiftUI needs a bundle to make windows.
|
||||
set -e
|
||||
ROOT="$PWD"
|
||||
cd "$(dirname "$0")"
|
||||
swift build 2>&1 | tail -1
|
||||
APP=.build/BlocksSpike.app
|
||||
rm -rf "$APP" && mkdir -p "$APP/Contents/MacOS"
|
||||
cp .build/debug/BlocksSpike "$APP/Contents/MacOS/"
|
||||
cat > "$APP/Contents/Info.plist" <<'PLIST'
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
||||
<plist version="1.0">
|
||||
<dict>
|
||||
<key>CFBundleExecutable</key><string>BlocksSpike</string>
|
||||
<key>CFBundleIdentifier</key><string>de.babylondreams.museion.spike-c</string>
|
||||
<key>CFBundleName</key><string>Spike C — Blocks</string>
|
||||
<key>CFBundlePackageType</key><string>APPL</string>
|
||||
<key>LSMinimumSystemVersion</key><string>26.0</string>
|
||||
<key>NSHighResolutionCapable</key><true/>
|
||||
<key>NSSupportsAutomaticWindowRestoration</key><false/>
|
||||
</dict>
|
||||
</plist>
|
||||
PLIST
|
||||
# ponytail: always hand the binary an ABSOLUTE corpus path — its cwd here is spike/blocks
|
||||
ARG="${1:-$ROOT/spike/prose/the-expected-value-of-showing.md}"
|
||||
case "$ARG" in /*) ;; *) ARG="$ROOT/$ARG" ;; esac
|
||||
exec "$APP/Contents/MacOS/BlocksSpike" "$ARG"
|
||||
Reference in new issue
Block a user