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
6565keychain's Developer ID, notarizes a DMG, tags =v<version>=, uploads the DMG to the
6666gitbay release and updates the cask in krz/homebrew-tap.
6767
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
6872* App Store header
6973
7074=ios/AppStore/header.html= renders the product page headers; the commands are in the
scripts/release-mac.sh +16 −2
@@ -6,6 +6,9 @@
66# ORGSTAR_NOTARY notarytool keychain profile (default: orgstar)
77# ORGSTAR_TAP the homebrew-tap checkout (default: ../homebrew-tap)
88# 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
912# ORGSTAR_ED_PUBLIC_KEY the Sparkle public key (default: the one whose private half is in the
1013# release Mac's login keychain, from generate_keys); passed on to build-app.sh
1114#
@@ -24,6 +27,9 @@ sign="${ORGSTAR_SIGN:-$(security find-identity -v -p codesigning | sed -n 's/.*"
2427# The Sparkle public key; its private half is in the release Mac's login keychain (generate_keys).
2528export ORGSTAR_ED_PUBLIC_KEY="${ORGSTAR_ED_PUBLIC_KEY:-StvsRDaDoGd4S/G66l7XHAcd3KPlpJlu0Gsv9GemsSo=}"
2629notes="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
2733
2834if [ "$publish" != 0 ]; then
2935 [ -z "$(git status --porcelain)" ] || { echo "The working tree has changes." >&2; exit 1; }
@@ -52,7 +58,11 @@ xcrun stapler staple "$app"
5258spctl --assess --type open --context context:primary-signature -v "$dmg"
5359sha="$(shasum -a 256 "$dmg" | cut -d' ' -f1)"
5460echo "$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
5666
5767if [ "$publish" = 0 ]; then
5868 # The appcast entry on a copy, so a dry run shows the signature.
@@ -63,7 +73,11 @@ fi
6373
6474git tag -s "$tag" -m "orgstar $version"
6575git 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
6781gitbay release asset add krz/orgstar "$tag" "orgstar-$version.dmg" < "$dmg"
6882
6983# The appcast goes in through a merge request, as every change to main does, after the DMG