Commit 401683c15c

401683c15ca9ddfee88e1ae698fd2163d8f19204

parent: 880a7cff81

Verified · cmc

cmc <hello@cleberg.net> · 2026-10-14 05:04 UTC

Release notes files for release-mac.sh

ORGSTAR_NOTES names an HTML file for the appcast entry, which Sparkle's
update window shows, and ORGSTAR_RELEASE_NOTES a Markdown file for the gitbay
release; the platform line follows each. Without them both keep the one-line
note.

Ref #83

Layout: unified · split

CONTRIBUTING.org +4
@@ -65,6 +65,10 @@ ORGSTAR_GATES=1 swift test -c release --filter GateTests # performance gates
65keychain's Developer ID, notarizes a DMG, tags =v<version>=, uploads the DMG to the 65keychain's Developer ID, notarizes a DMG, tags =v<version>=, uploads the DMG to the
66gitbay release and updates the cask in krz/homebrew-tap. 66gitbay release and updates the cask in krz/homebrew-tap.
67 67
68Set =ORGSTAR_NOTES= to an HTML file of release notes for the appcast, which Sparkle's
69update window shows, and =ORGSTAR_RELEASE_NOTES= to a Markdown file for the gitbay
70release. Without them both get the one-line platform note.
71
68* App Store header 72* App Store header
69 73
70=ios/AppStore/header.html= renders the product page headers; the commands are in the 74=ios/AppStore/header.html= renders the product page headers; the commands are in the
scripts/release-mac.sh +16 −2
@@ -6,6 +6,9 @@
6# ORGSTAR_NOTARY notarytool keychain profile (default: orgstar) 6# ORGSTAR_NOTARY notarytool keychain profile (default: orgstar)
7# ORGSTAR_TAP the homebrew-tap checkout (default: ../homebrew-tap) 7# ORGSTAR_TAP the homebrew-tap checkout (default: ../homebrew-tap)
8# ORGSTAR_PUBLISH 0 builds and notarizes without tagging, uploading or touching the tap 8# ORGSTAR_PUBLISH 0 builds and notarizes without tagging, uploading or touching the tap
9# ORGSTAR_NOTES an HTML file of release notes for the appcast entry, which Sparkle's
10# update window shows; the platform line is added after it
11# ORGSTAR_RELEASE_NOTES a Markdown file of release notes for the gitbay release
9# ORGSTAR_ED_PUBLIC_KEY the Sparkle public key (default: the one whose private half is in the 12# ORGSTAR_ED_PUBLIC_KEY the Sparkle public key (default: the one whose private half is in the
10# release Mac's login keychain, from generate_keys); passed on to build-app.sh 13# release Mac's login keychain, from generate_keys); passed on to build-app.sh
11# 14#
@@ -24,6 +27,9 @@ sign="${ORGSTAR_SIGN:-$(security find-identity -v -p codesigning | sed -n 's/.*"
24# The Sparkle public key; its private half is in the release Mac's login keychain (generate_keys). 27# The Sparkle public key; its private half is in the release Mac's login keychain (generate_keys).
25export ORGSTAR_ED_PUBLIC_KEY="${ORGSTAR_ED_PUBLIC_KEY:-StvsRDaDoGd4S/G66l7XHAcd3KPlpJlu0Gsv9GemsSo=}" 28export ORGSTAR_ED_PUBLIC_KEY="${ORGSTAR_ED_PUBLIC_KEY:-StvsRDaDoGd4S/G66l7XHAcd3KPlpJlu0Gsv9GemsSo=}"
26notes="Universal (Apple silicon and Intel), macOS 26 or later. Notarized." 29notes="Universal (Apple silicon and Intel), macOS 26 or later. Notarized."
30for file in "${ORGSTAR_NOTES:-}" "${ORGSTAR_RELEASE_NOTES:-}"; do
31 [ -z "$file" ] || [ -f "$file" ] || { echo "No notes file $file." >&2; exit 1; }
32done
27 33
28if [ "$publish" != 0 ]; then 34if [ "$publish" != 0 ]; then
29 [ -z "$(git status --porcelain)" ] || { echo "The working tree has changes." >&2; exit 1; } 35 [ -z "$(git status --porcelain)" ] || { echo "The working tree has changes." >&2; exit 1; }
@@ -52,7 +58,11 @@ xcrun stapler staple "$app"
52spctl --assess --type open --context context:primary-signature -v "$dmg" 58spctl --assess --type open --context context:primary-signature -v "$dmg"
53sha="$(shasum -a 256 "$dmg" | cut -d' ' -f1)" 59sha="$(shasum -a 256 "$dmg" | cut -d' ' -f1)"
54echo "$dmg $sha" 60echo "$dmg $sha"
55printf '%s\n' "$notes" > "$out/notes.txt" 61if [ -n "${ORGSTAR_NOTES:-}" ]; then
62 { cat "$ORGSTAR_NOTES"; printf '<p>%s</p>\n' "$notes"; } > "$out/notes.txt"
63else
64 printf '%s\n' "$notes" > "$out/notes.txt"
65fi
56 66
57if [ "$publish" = 0 ]; then 67if [ "$publish" = 0 ]; then
58 # The appcast entry on a copy, so a dry run shows the signature. 68 # The appcast entry on a copy, so a dry run shows the signature.
@@ -63,7 +73,11 @@ fi
63 73
64git tag -s "$tag" -m "orgstar $version" 74git tag -s "$tag" -m "orgstar $version"
65git push origin "$tag" 75git push origin "$tag"
66gitbay release create krz/orgstar "$tag" --title "orgstar $version" --notes "$notes" 76if [ -n "${ORGSTAR_RELEASE_NOTES:-}" ]; then
77 { cat "$ORGSTAR_RELEASE_NOTES"; printf '\n%s\n' "$notes"; } | gitbay release create krz/orgstar "$tag" --title "orgstar $version" --file -
78else
79 gitbay release create krz/orgstar "$tag" --title "orgstar $version" --notes "$notes"
80fi
67gitbay release asset add krz/orgstar "$tag" "orgstar-$version.dmg" < "$dmg" 81gitbay release asset add krz/orgstar "$tag" "orgstar-$version.dmg" < "$dmg"
68 82
69# The appcast goes in through a merge request, as every change to main does, after the DMG 83# The appcast goes in through a merge request, as every change to main does, after the DMG