Commit f6297bb2ab

f6297bb2ab3226a06dea5d13b0178d306aa3e58c

parent: ef0f0dc77f

Verified · cmc local/swift-test: success

cmc <hello@cleberg.net> · 2026-11-14 03:53 UTC

Distribute from files.krz.sh; all rights reserved; issues in krz/orgstar-issues

- Sparkle feed, DMGs and the manual move to files.krz.sh/orgstar/. release-mac.sh
  rsyncs the DMG there; appcast enclosures and the cask point at it.
  publish-docs.sh publishes there and, while the repo is public, to the pages
  branch too, so installs before 1.0.0 still get 1.0.0.
- LICENSE: all rights reserved; earlier public code stays 0BSD.
- iOS About: manual and third-party notices on files.krz.sh, release notes on
  the App Store, issues in krz/orgstar-issues; Source Code and License links
  removed. The manual drops the build-from-source sections.

Layout: unified · split

LICENSE +7 −9
@@ -1,10 +1,8 @@
1Permission to use, copy, modify, and/or distribute this software for any 1Copyright (c) 2026 Christian Cleberg. All rights reserved.
2purpose with or without fee is hereby granted.
3 2
4THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES 3orgstar is proprietary software. No permission is granted to use, copy, modify or
5WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF 4distribute it except as allowed by its terms of sale (https://krz.sh/terms/).
6MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR 5
7ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES 6Code published in the public krz/orgstar repository before it was made private was
8WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN 7released under the 0BSD license, and those published copies keep that license.
9ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF 8Third-party components keep their own licenses; see THIRD_PARTY.org.
10OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
README.org +4 −4
@@ -10,9 +10,9 @@ iPad. It reads and writes the same plain-text =.org= files Emacs does, and leave
10byte you didn't change as it was, so Emacs, the Mac app, the iOS app and your sync tool 10byte you didn't change as it was, so Emacs, the Mac app, the iOS app and your sync tool
11can all work on the same folder. 11can all work on the same folder.
12 12
13[[https://gitbay.org/krz/orgstar/releases][Download for Mac]] · 13[[https://files.krz.sh/orgstar/][Download for Mac]] ·
14[[https://apps.apple.com/us/app/orgstar-org-mode-agenda/id6821552018][App Store (iPhone and iPad)]] · 14[[https://apps.apple.com/us/app/orgstar-org-mode-agenda/id6821552018][App Store (iPhone and iPad)]] ·
15[[https://krz.gitbay.site/orgstar/][Manual]] · 15[[https://files.krz.sh/orgstar/][Manual]] ·
16[[file:ios/AppStore/screenshots][Screenshots]] 16[[file:ios/AppStore/screenshots][Screenshots]]
17 17
18** Your files stay yours 18** Your files stay yours
@@ -56,7 +56,7 @@ brew install --cask orgstar
56#+end_src 56#+end_src
57 57
58or download the notarized DMG from the 58or download the notarized DMG from the
59[[https://gitbay.org/krz/orgstar/releases][releases page]]. The iPhone and iPad app (iOS 26 59[[https://files.krz.sh/orgstar/][files.krz.sh/orgstar]]. The iPhone and iPad app (iOS 26
60or later), with its Apple Watch app, is on the [[https://apps.apple.com/us/app/orgstar-org-mode-agenda/id6821552018][App Store]]. 60or later), with its Apple Watch app, is on the [[https://apps.apple.com/us/app/orgstar-org-mode-agenda/id6821552018][App Store]].
61 61
62** orgstar+ 62** orgstar+
@@ -75,4 +75,4 @@ Anyone who installed orgstar before orgstar+ keeps every feature without buying
75To build from source, contribute or release (the Mac app and the App Store), see 75To build from source, contribute or release (the Mac app and the App Store), see
76[[file:CONTRIBUTING.org]]. 76[[file:CONTRIBUTING.org]].
77 77
78License: 0BSD. 78Copyright © 2026 Christian Cleberg. All rights reserved; see [[file:LICENSE]].
Sources/OrgstarMobile/AboutScreen.swift +6 −8
@@ -9,7 +9,7 @@ struct AboutScreen: View {
9 9
10 static let supportEmail = "help@krz.sh" 10 static let supportEmail = "help@krz.sh"
11 11
12 private static let repository = "https://gitbay.org/krz/orgstar" 12 private static let site = "https://files.krz.sh/orgstar/"
13 13
14 private var version: String { 14 private var version: String {
15 let info = Bundle.main.infoDictionary 15 let info = Bundle.main.infoDictionary
@@ -37,24 +37,22 @@ struct AboutScreen: View {
37 .listRowBackground(Color.clear) 37 .listRowBackground(Color.clear)
38 } 38 }
39 Section { 39 Section {
40 link("Manual", "book", "https://krz.gitbay.site/orgstar/") 40 link("Manual", "book", Self.site)
41 link("Release Notes", "sparkles", Self.repository + "/releases") 41 link("Release Notes", "sparkles", "https://apps.apple.com/app/id6821552018")
42 link("Website", "globe", "https://krz.sh/apps/orgstar") 42 link("Website", "globe", "https://krz.sh/apps/orgstar")
43 } 43 }
44 Section { 44 Section {
45 link("Report an Issue", "ladybug", Self.repository + "/issues/new") 45 link("Report an Issue", "ladybug", "https://gitbay.org/krz/orgstar-issues/issues/new")
46 link("Email Support", "envelope", mail.absoluteString) 46 link("Email Support", "envelope", mail.absoluteString)
47 link("Rate on the App Store", "star", "https://apps.apple.com/app/id6821552018?action=write-review") 47 link("Rate on the App Store", "star", "https://apps.apple.com/app/id6821552018?action=write-review")
48 } footer: { 48 } footer: {
49 Text("Reporting an issue needs a gitbay account. Without one, email \(Self.supportEmail).") 49 Text("Reporting an issue needs a gitbay account. Without one, email \(Self.supportEmail).")
50 } 50 }
51 Section { 51 Section {
52 link("Source Code", "chevron.left.forwardslash.chevron.right", Self.repository) 52 link("Third-Party Notices", "doc.on.doc", Self.site + "third-party.html")
53 link("License", "doc.text", Self.repository + "/blob/main/LICENSE")
54 link("Third-Party Notices", "doc.on.doc", Self.repository + "/blob/main/THIRD_PARTY.org")
55 link("Privacy Policy", "hand.raised", "https://krz.sh/privacy/orgstar/") 53 link("Privacy Policy", "hand.raised", "https://krz.sh/privacy/orgstar/")
56 } footer: { 54 } footer: {
57 Text("© 2026 Christian Cleberg. Free software under the 0BSD license.") 55 Text(verbatim: "© 2026 Christian Cleberg")
58 } 56 }
59 } 57 }
60 .navigationTitle("About") 58 .navigationTitle("About")
docs/manual/install.org +2 −37
@@ -1,11 +1,10 @@
1#+TITLE: Install 1#+TITLE: Install
2#+DESCRIPTION: Installing orgstar on the Mac with Homebrew or a download, on iPhone and iPad from the App Store, and building it from source. 2#+DESCRIPTION: Installing orgstar on the Mac with Homebrew or a download, and on iPhone and iPad from the App Store.
3#+LEDE: The Mac app comes as a notarized download and a Homebrew cask; the iOS app is on the App Store. 3#+LEDE: The Mac app comes as a notarized download and a Homebrew cask; the iOS app is on the App Store.
4 4
5* Requirements 5* Requirements
6 6
7- macOS 26 or later. 7- macOS 26 or later.
8- Xcode 27 (the Swift 6.2 toolchain).
9- Optional: GNU Emacs, for the features that hand work to it on the Mac 8- Optional: GNU Emacs, for the features that hand work to it on the Mac
10 (Emacs Lisp code blocks that need full Emacs, Lisp table formulas the built-in 9 (Emacs Lisp code blocks that need full Emacs, Lisp table formulas the built-in
11 interpreter can't run, and export to PDF, LaTeX, ODT and other formats). See 10 interpreter can't run, and export to PDF, LaTeX, ODT and other formats). See
@@ -22,25 +21,10 @@ brew install --cask orgstar
22 21
23** As a download 22** As a download
24 23
25Download =orgstar-<version>.dmg= from the [[https://gitbay.org/krz/orgstar/releases][releases page]], open it, and drag 24Download the newest =orgstar-<version>.dmg= from [[https://files.krz.sh/orgstar/][files.krz.sh/orgstar]], open it, and drag
26orgstar to Applications. The app is universal (Apple silicon and Intel), signed with a 25orgstar to Applications. The app is universal (Apple silicon and Intel), signed with a
27Developer ID and notarized by Apple, so it opens without warnings. 26Developer ID and notarized by Apple, so it opens without warnings.
28 27
29** From source
30
31#+BEGIN_SRC sh
32git clone https://gitbay.org/krz/orgstar.git
33cd orgstar
34scripts/build-app.sh
35open .build/app/orgstar.app
36#+END_SRC
37
38=scripts/build-app.sh= builds a release binary and assembles
39=.build/app/orgstar.app= with its Quick Look and Spotlight extensions, signed ad hoc
40for use on your own Mac. Move it to =/Applications= to keep it. Pass a version number
41as the first argument to stamp the bundle (=scripts/build-app.sh 1.0.0=); the default
42is =0.1.0=.
43
44Once the app has been launched, Finder opens =.org= files with it, Quick Look shows 28Once the app has been launched, Finder opens =.org= files with it, Quick Look shows
45them formatted, and Spotlight indexes their headings and text. 29them formatted, and Spotlight indexes their headings and text.
46 30
@@ -49,25 +33,6 @@ them formatted, and Spotlight indexes their headings and text.
49The iPhone and iPad app (iOS 26 or later) is on the [[https://apps.apple.com/us/app/orgstar-org-mode-agenda/id6821552018][App Store]]. The Apple Watch 33The iPhone and iPad app (iOS 26 or later) is on the [[https://apps.apple.com/us/app/orgstar-org-mode-agenda/id6821552018][App Store]]. The Apple Watch
50app comes with it. The App Store keeps it up to date. 34app comes with it. The App Store keeps it up to date.
51 35
52** From source
53
54The iOS app can also be built with Xcode from =ios/Orgstar.xcodeproj=:
55
561. Open =ios/Orgstar.xcodeproj=.
572. Select the *Orgstar iOS* target, then Signing & Capabilities, and choose your team.
58 Change the bundle identifiers (=sh.krz.orgstar= and the three extensions' =.share=,
59 =.quicklook= and =.widgets=) and the App Group (=group.sh.krz.orgstar=) to ones your team can register.
603. Choose your iPhone or iPad (or a Simulator) as the destination and Run (=⌘R=).
61
62On a device, Developer Mode must be on (Settings ▸ Privacy & Security ▸ Developer Mode).
63
64For the Simulator without opening Xcode (this build has no widgets):
65
66#+BEGIN_SRC sh
67scripts/build-ios-app.sh
68xcrun simctl install booted .build/ios-app/orgstar.app
69#+END_SRC
70
71See [[file:guide/14-ios.org][iPhone and iPad]] for what it does. 36See [[file:guide/14-ios.org][iPhone and iPad]] for what it does.
72 37
73* Updating 38* Updating
docs/manual/templates/base.html +1 −1
@@ -49,7 +49,7 @@
49{%- endif %} 49{%- endif %}
50{% block content %}{{ body | safe }}{% endblock %}</main> 50{% block content %}{{ body | safe }}{% endblock %}</main>
51<footer class="site"> 51<footer class="site">
52orgstar is 0BSD-licensed. Source: <a href="https://gitbay.org/krz/orgstar">gitbay.org/krz/orgstar</a>. 52© 2026 Christian Cleberg · <a href="https://krz.sh/apps/orgstar/">krz.sh/apps/orgstar</a> · <a href="/orgstar/third-party.html">third-party notices</a>
53</footer> 53</footer>
54</body> 54</body>
55</html> 55</html>
packaging/orgstar.rb +2 −2
@@ -6,11 +6,11 @@ cask "orgstar" do
6 version "@VERSION@" 6 version "@VERSION@"
7 sha256 "@SHA256@" 7 sha256 "@SHA256@"
8 8
9 url "https://gitbay.org/krz/orgstar/releases/download/v#{version}/orgstar-#{version}.dmg" 9 url "https://files.krz.sh/orgstar/orgstar-#{version}.dmg"
10 name "orgstar" 10 name "orgstar"
11 desc "Native org-mode editor and agenda" 11 desc "Native org-mode editor and agenda"
12 auto_updates true 12 auto_updates true
13 homepage "https://gitbay.org/krz/orgstar" 13 homepage "https://krz.sh/apps/orgstar/"
14 14
15 depends_on macos: :tahoe 15 depends_on macos: :tahoe
16 16
scripts/appcast-add.sh +2 −2
@@ -23,13 +23,13 @@ item="$(mktemp)"
23{ 23{
24 echo " <item>" 24 echo " <item>"
25 echo " <title>orgstar $version</title>" 25 echo " <title>orgstar $version</title>"
26 echo " <link>https://gitbay.org/krz/orgstar/releases/tag/v$version</link>" 26 echo " <link>https://krz.sh/apps/orgstar/</link>"
27 echo " <sparkle:version>$build</sparkle:version>" 27 echo " <sparkle:version>$build</sparkle:version>"
28 echo " <sparkle:shortVersionString>$version</sparkle:shortVersionString>" 28 echo " <sparkle:shortVersionString>$version</sparkle:shortVersionString>"
29 echo " <sparkle:minimumSystemVersion>26.0</sparkle:minimumSystemVersion>" 29 echo " <sparkle:minimumSystemVersion>26.0</sparkle:minimumSystemVersion>"
30 echo " <pubDate>$date</pubDate>" 30 echo " <pubDate>$date</pubDate>"
31 echo " <description><![CDATA[$(cat "$notes")]]></description>" 31 echo " <description><![CDATA[$(cat "$notes")]]></description>"
32 echo " <enclosure url=\"https://gitbay.org/krz/orgstar/releases/download/v$version/$name\" type=\"application/octet-stream\" $signature/>" 32 echo " <enclosure url=\"https://files.krz.sh/orgstar/$name\" type=\"application/octet-stream\" $signature/>"
33 echo " </item>" 33 echo " </item>"
34} > "$item" 34} > "$item"
35# After the channel's <link>, so the newest release comes first. 35# After the channel's <link>, so the newest release comes first.
scripts/build-app.sh +1 −1
@@ -48,7 +48,7 @@ cp -R "$(dirname "$binary")/SwiftMath_SwiftMath.bundle" "$app/Contents/Resources
48# Updates: the appcast and its signing key, for signed builds only; a dev build never checks. 48# Updates: the appcast and its signing key, for signed builds only; a dev build never checks.
49if [ "$sign" != "-" ]; then 49if [ "$sign" != "-" ]; then
50 feed_keys=" <key>SUFeedURL</key> 50 feed_keys=" <key>SUFeedURL</key>
51 <string>https://krz.gitbay.site/orgstar/appcast.xml</string> 51 <string>https://files.krz.sh/orgstar/appcast.xml</string>
52 <key>SUPublicEDKey</key> 52 <key>SUPublicEDKey</key>
53 <string>${ORGSTAR_ED_PUBLIC_KEY:?set ORGSTAR_ED_PUBLIC_KEY to the key generate_keys printed}</string>" 53 <string>${ORGSTAR_ED_PUBLIC_KEY:?set ORGSTAR_ED_PUBLIC_KEY to the key generate_keys printed}</string>"
54else 54else
scripts/publish-docs.sh +16 −3
@@ -1,7 +1,10 @@
1#!/bin/sh 1#!/bin/sh
2# Builds the user manual in docs/manual with orgo and force-pushes it to the `pages` 2# Builds the user manual in docs/manual with orgo, with the third-party notices as a page, and
3# branch, which gitbay serves at https://krz.gitbay.site/orgstar/. 3# copies it to files.krz.sh/orgstar/, next to the DMGs. While krz/orgstar is public it also
4# force-pushes it to the `pages` branch, which gitbay serves at https://krz.gitbay.site/orgstar/:
5# installs from before 1.0.0 read their appcast there.
4# Usage: scripts/publish-docs.sh [--dry-run] 6# Usage: scripts/publish-docs.sh [--dry-run]
7# ORGSTAR_FILES rsync destination (default: homelab:/var/www/files/orgstar)
5set -eu 8set -eu
6 9
7cd "$(dirname "$0")/.." 10cd "$(dirname "$0")/.."
@@ -9,7 +12,11 @@ tmp=$(mktemp -d)
9trap 'rm -rf "$tmp"' EXIT 12trap 'rm -rf "$tmp"' EXIT
10site="$tmp/site" 13site="$tmp/site"
11 14
12orgo build docs/manual -o "$site" --strict --no-cache 15files="${ORGSTAR_FILES:-homelab:/var/www/files/orgstar}"
16src="$tmp/manual"
17cp -R docs/manual "$src"
18cp THIRD_PARTY.org "$src/third-party.org"
19orgo build "$src" -o "$site" --strict --no-cache
13rm -f "$site/.orgo-cache.json" 20rm -f "$site/.orgo-cache.json"
14 21
15if [ "${1:-}" = "--dry-run" ]; then 22if [ "${1:-}" = "--dry-run" ]; then
@@ -17,6 +24,12 @@ if [ "${1:-}" = "--dry-run" ]; then
17 exit 0 24 exit 0
18fi 25fi
19 26
27# --delete keeps the copy exact, apart from the DMGs that release-mac.sh puts beside it.
28rsync -a --delete --exclude '*.dmg' "$site/" "$files/"
29echo "published the manual to $files"
30
31visibility=$(gitbay repo show krz/orgstar --json | sed -n 's/.*"visibility":"\([a-z]*\)".*/\1/p')
32[ "$visibility" = public ] || exit 0
20# The pages branch holds only the built site, replaced on each publish. 33# The pages branch holds only the built site, replaced on each publish.
21sha=$(git rev-parse --short HEAD) 34sha=$(git rev-parse --short HEAD)
22git init -q "$tmp/work" 35git init -q "$tmp/work"
scripts/release-mac.sh +7 −1
@@ -1,10 +1,13 @@
1#!/bin/sh 1#!/bin/sh
2# Builds, signs, notarizes and publishes a Mac release: a universal orgstar.app in a DMG, 2# Builds, signs, notarizes and publishes a Mac release: a universal orgstar.app in a DMG,
3# uploaded to the tag's gitbay release, and the cask in krz/homebrew-tap updated. 3# copied to files.krz.sh/orgstar/ (and the tag's gitbay release), and the cask in
4# krz/homebrew-tap updated.
4# Usage: scripts/release-mac.sh <version> e.g. 0.2.0, for the tag v0.2.0 on HEAD 5# Usage: scripts/release-mac.sh <version> e.g. 0.2.0, for the tag v0.2.0 on HEAD
5# ORGSTAR_SIGN Developer ID Application identity (default: the keychain's only one) 6# ORGSTAR_SIGN Developer ID Application identity (default: the keychain's only one)
6# ORGSTAR_NOTARY notarytool keychain profile (default: orgstar) 7# ORGSTAR_NOTARY notarytool keychain profile (default: orgstar)
7# ORGSTAR_TAP the homebrew-tap checkout (default: ../homebrew-tap) 8# ORGSTAR_TAP the homebrew-tap checkout (default: ../homebrew-tap)
9# ORGSTAR_FILES rsync destination served at https://files.krz.sh/orgstar/
10# (default: homelab:/var/www/files/orgstar)
8# ORGSTAR_PUBLISH 0 builds and notarizes without tagging, uploading or touching the tap 11# 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 12# 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 13# update window shows; the platform line is added after it
@@ -21,6 +24,7 @@ version="${1:?usage: scripts/release-mac.sh <version>}"
21tag="v$version" 24tag="v$version"
22notary="${ORGSTAR_NOTARY:-orgstar}" 25notary="${ORGSTAR_NOTARY:-orgstar}"
23tap="${ORGSTAR_TAP:-../homebrew-tap}" 26tap="${ORGSTAR_TAP:-../homebrew-tap}"
27files="${ORGSTAR_FILES:-homelab:/var/www/files/orgstar}"
24publish="${ORGSTAR_PUBLISH:-1}" 28publish="${ORGSTAR_PUBLISH:-1}"
25sign="${ORGSTAR_SIGN:-$(security find-identity -v -p codesigning | sed -n 's/.*"\(Developer ID Application: .*\)"/\1/p' | head -1)}" 29sign="${ORGSTAR_SIGN:-$(security find-identity -v -p codesigning | sed -n 's/.*"\(Developer ID Application: .*\)"/\1/p' | head -1)}"
26[ -n "$sign" ] || { echo "No Developer ID Application identity in the keychain." >&2; exit 1; } 30[ -n "$sign" ] || { echo "No Developer ID Application identity in the keychain." >&2; exit 1; }
@@ -81,6 +85,8 @@ else
81 gitbay release create krz/orgstar "$tag" --title "orgstar $version" --notes "$notes" 85 gitbay release create krz/orgstar "$tag" --title "orgstar $version" --notes "$notes"
82fi 86fi
83gitbay release asset add krz/orgstar "$tag" "orgstar-$version.dmg" < "$dmg" 87gitbay release asset add krz/orgstar "$tag" "orgstar-$version.dmg" < "$dmg"
88# The public download, which the appcast and the cask point at.
89rsync -a "$dmg" "$files/"
84 90
85# The appcast goes in through a merge request, as every change to main does, after the DMG 91# The appcast goes in through a merge request, as every change to main does, after the DMG
86# it points at is up; then the manual, which serves it, is published. 92# it points at is up; then the manual, which serves it, is published.