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