a3008b2a3fc0
fix Koh 3 architecture selection and separate archives (v0.7.1)
- time
- 2026-10-06 14:33 UTC · 1 week ago
- machine
- Junes-MacBook-Pro.local
- agent
- gpt-6
- session
- fix haven release builds
- parent
- 1afee265a6cb
↓ haven-a3008b2a.tar.gzatlas at this save
files changed3 files
Info.plist+2 −2bundle_app.sh+5 −6koh.build+1 −1Info.plist+2 −2
@@ -9,9 +9,9 @@99 <key>CFBundleName</key>1010 <string>Haven</string>1111 <key>CFBundleShortVersionString</key>12- <string>0.7.0</string>12+ <string>0.7.1</string>1313 <key>CFBundleVersion</key>14- <string>10</string>14+ <string>11</string>1515 <key>LSMinimumSystemVersion</key>1616 <string>13.0</string>1717 <key>LSUIElement</key>bundle_app.sh+5 −6
@@ -1,17 +1,16 @@11 #!/bin/bash22 # Bundle Haven into a signed .app and zip it for distribution.33 #4-# Driven by koh offer --builds via kepr.build, which sets KEPR_PLATFORM4+# Driven by koh offer --builds via koh.build, which sets KOH_TARGET55 # per-platform. macos-aarch64 builds natively; macos-x86_64 cross-compiles66 # from Apple Silicon via Swift's --triple flag.77 #8-# Output: Haven.app.zip in the repo root, ready for koh to upload as the9-# release artifact for this platform.8+# Platform archives stay in .build so release artifacts are not saved in history.109 set -euo pipefail1110 1211 APP_NAME="Haven"1312 BUNDLE="${APP_NAME}.app"14-ZIP="${APP_NAME}.app.zip"13+ZIP="${KOH_TARGET:+.build/}${APP_NAME}${KOH_TARGET:+-${KOH_TARGET}}.app.zip"1514 ENTITLEMENTS="${APP_NAME}.entitlements"1615 1716 # Wipe stale outputs so re-runs are idempotent and we never ship a@@ -26,7 +25,7 @@2625 # as `Haven` (capital H); .build/release is a symlink to2726 # <arch>-apple-macosx/release so this path works for both native and2827 # cross-compiled builds.29-case "${KEPR_PLATFORM:-}" in28+case "${KOH_TARGET:-}" in3029 macos-x86_64)3130 echo " → swift build -c release --triple x86_64-apple-macosx"3231 swift build -c release --triple x86_64-apple-macosx@@ -36,7 +35,7 @@3635 swift build -c release3736 ;;3837 *)39- echo " → swift build -c release (unknown KEPR_PLATFORM='${KEPR_PLATFORM}', defaulting to native)"38+ echo " → swift build -c release (unknown KOH_TARGET='${KOH_TARGET}', defaulting to native)"4039 swift build -c release4140 ;;4241 esackoh.build+1 −1
@@ -1,5 +1,5 @@11 enabled = true22 command = ./bundle_app.sh3-output = Haven.app.zip3+output = .build/Haven-{platform}.app.zip44 trigger = on-offer55 platforms = macos-aarch64, macos-x86_64\ No newline at end of file