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
2purpose with or without fee is hereby granted.
1Copyright (c) 2026 Christian Cleberg. All rights reserved.
32
4THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
5WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
6MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
7ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
8WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
9ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
10OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
3orgstar is proprietary software. No permission is granted to use, copy, modify or
4distribute it except as allowed by its terms of sale (https://krz.sh/terms/).
5
6Code published in the public krz/orgstar repository before it was made private was
7released under the 0BSD license, and those published copies keep that license.
8Third-party components keep their own licenses; see THIRD_PARTY.org.
README.org +4 −4
@@ -10,9 +10,9 @@ iPad. It reads and writes the same plain-text =.org= files Emacs does, and leave
1010byte you didn't change as it was, so Emacs, the Mac app, the iOS app and your sync tool
1111can all work on the same folder.
1212
13[[https://gitbay.org/krz/orgstar/releases][Download for Mac]] ·
13[[https://files.krz.sh/orgstar/][Download for Mac]] ·
1414[[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]] ·
1616[[file:ios/AppStore/screenshots][Screenshots]]
1717
1818** Your files stay yours
@@ -56,7 +56,7 @@ brew install --cask orgstar
5656#+end_src
5757
5858or 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
6060or later), with its Apple Watch app, is on the [[https://apps.apple.com/us/app/orgstar-org-mode-agenda/id6821552018][App Store]].
6161
6262** orgstar+
@@ -75,4 +75,4 @@ Anyone who installed orgstar before orgstar+ keeps every feature without buying
7575To build from source, contribute or release (the Mac app and the App Store), see
7676[[file:CONTRIBUTING.org]].
7777
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 {
99
1010 static let supportEmail = "help@krz.sh"
1111
12 private static let repository = "https://gitbay.org/krz/orgstar"
12 private static let site = "https://files.krz.sh/orgstar/"
1313
1414 private var version: String {
1515 let info = Bundle.main.infoDictionary
@@ -37,24 +37,22 @@ struct AboutScreen: View {
3737 .listRowBackground(Color.clear)
3838 }
3939 Section {
40 link("Manual", "book", "https://krz.gitbay.site/orgstar/")
41 link("Release Notes", "sparkles", Self.repository + "/releases")
40 link("Manual", "book", Self.site)
41 link("Release Notes", "sparkles", "https://apps.apple.com/app/id6821552018")
4242 link("Website", "globe", "https://krz.sh/apps/orgstar")
4343 }
4444 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")
4646 link("Email Support", "envelope", mail.absoluteString)
4747 link("Rate on the App Store", "star", "https://apps.apple.com/app/id6821552018?action=write-review")
4848 } footer: {
4949 Text("Reporting an issue needs a gitbay account. Without one, email \(Self.supportEmail).")
5050 }
5151 Section {
52 link("Source Code", "chevron.left.forwardslash.chevron.right", Self.repository)
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")
52 link("Third-Party Notices", "doc.on.doc", Self.site + "third-party.html")
5553 link("Privacy Policy", "hand.raised", "https://krz.sh/privacy/orgstar/")
5654 } footer: {
57 Text("© 2026 Christian Cleberg. Free software under the 0BSD license.")
55 Text(verbatim: "© 2026 Christian Cleberg")
5856 }
5957 }
6058 .navigationTitle("About")
docs/manual/install.org +2 −37
@@ -1,11 +1,10 @@
11#+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.
33#+LEDE: The Mac app comes as a notarized download and a Homebrew cask; the iOS app is on the App Store.
44
55* Requirements
66
77- macOS 26 or later.
8- Xcode 27 (the Swift 6.2 toolchain).
98- Optional: GNU Emacs, for the features that hand work to it on the Mac
109 (Emacs Lisp code blocks that need full Emacs, Lisp table formulas the built-in
1110 interpreter can't run, and export to PDF, LaTeX, ODT and other formats). See
@@ -22,25 +21,10 @@ brew install --cask orgstar
2221
2322** As a download
2423
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
2625orgstar to Applications. The app is universal (Apple silicon and Intel), signed with a
2726Developer ID and notarized by Apple, so it opens without warnings.
2827
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
4428Once the app has been launched, Finder opens =.org= files with it, Quick Look shows
4529them formatted, and Spotlight indexes their headings and text.
4630
@@ -49,25 +33,6 @@ them formatted, and Spotlight indexes their headings and text.
4933The 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
5034app comes with it. The App Store keeps it up to date.
5135
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
7136See [[file:guide/14-ios.org][iPhone and iPad]] for what it does.
7237
7338* Updating
docs/manual/templates/base.html +1 −1
@@ -49,7 +49,7 @@
4949{%- endif %}
5050{% block content %}{{ body | safe }}{% endblock %}</main>
5151<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>
5353</footer>
5454</body>
5555</html>
packaging/orgstar.rb +2 −2
@@ -6,11 +6,11 @@ cask "orgstar" do
66 version "@VERSION@"
77 sha256 "@SHA256@"
88
9 url "https://gitbay.org/krz/orgstar/releases/download/v#{version}/orgstar-#{version}.dmg"
9 url "https://files.krz.sh/orgstar/orgstar-#{version}.dmg"
1010 name "orgstar"
1111 desc "Native org-mode editor and agenda"
1212 auto_updates true
13 homepage "https://gitbay.org/krz/orgstar"
13 homepage "https://krz.sh/apps/orgstar/"
1414
1515 depends_on macos: :tahoe
1616
scripts/appcast-add.sh +2 −2
@@ -23,13 +23,13 @@ item="$(mktemp)"
2323{
2424 echo " <item>"
2525 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>"
2727 echo " <sparkle:version>$build</sparkle:version>"
2828 echo " <sparkle:shortVersionString>$version</sparkle:shortVersionString>"
2929 echo " <sparkle:minimumSystemVersion>26.0</sparkle:minimumSystemVersion>"
3030 echo " <pubDate>$date</pubDate>"
3131 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/>"
3333 echo " </item>"
3434} > "$item"
3535# 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
4848# Updates: the appcast and its signing key, for signed builds only; a dev build never checks.
4949if [ "$sign" != "-" ]; then
5050 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>
5252 <key>SUPublicEDKey</key>
5353 <string>${ORGSTAR_ED_PUBLIC_KEY:?set ORGSTAR_ED_PUBLIC_KEY to the key generate_keys printed}</string>"
5454else
scripts/publish-docs.sh +16 −3
@@ -1,7 +1,10 @@
11#!/bin/sh
2# Builds the user manual in docs/manual with orgo and force-pushes it to the `pages`
3# branch, which gitbay serves at https://krz.gitbay.site/orgstar/.
2# Builds the user manual in docs/manual with orgo, with the third-party notices as a page, and
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.
46# Usage: scripts/publish-docs.sh [--dry-run]
7# ORGSTAR_FILES rsync destination (default: homelab:/var/www/files/orgstar)
58set -eu
69
710cd "$(dirname "$0")/.."
@@ -9,7 +12,11 @@ tmp=$(mktemp -d)
912trap 'rm -rf "$tmp"' EXIT
1013site="$tmp/site"
1114
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
1320rm -f "$site/.orgo-cache.json"
1421
1522if [ "${1:-}" = "--dry-run" ]; then
@@ -17,6 +24,12 @@ if [ "${1:-}" = "--dry-run" ]; then
1724 exit 0
1825fi
1926
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
2033# The pages branch holds only the built site, replaced on each publish.
2134sha=$(git rev-parse --short HEAD)
2235git init -q "$tmp/work"
scripts/release-mac.sh +7 −1
@@ -1,10 +1,13 @@
11#!/bin/sh
22# 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.
45# Usage: scripts/release-mac.sh <version> e.g. 0.2.0, for the tag v0.2.0 on HEAD
56# ORGSTAR_SIGN Developer ID Application identity (default: the keychain's only one)
67# ORGSTAR_NOTARY notarytool keychain profile (default: orgstar)
78# 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)
811# ORGSTAR_PUBLISH 0 builds and notarizes without tagging, uploading or touching the tap
912# ORGSTAR_NOTES an HTML file of release notes for the appcast entry, which Sparkle's
1013# update window shows; the platform line is added after it
@@ -21,6 +24,7 @@ version="${1:?usage: scripts/release-mac.sh <version>}"
2124tag="v$version"
2225notary="${ORGSTAR_NOTARY:-orgstar}"
2326tap="${ORGSTAR_TAP:-../homebrew-tap}"
27files="${ORGSTAR_FILES:-homelab:/var/www/files/orgstar}"
2428publish="${ORGSTAR_PUBLISH:-1}"
2529sign="${ORGSTAR_SIGN:-$(security find-identity -v -p codesigning | sed -n 's/.*"\(Developer ID Application: .*\)"/\1/p' | head -1)}"
2630[ -n "$sign" ] || { echo "No Developer ID Application identity in the keychain." >&2; exit 1; }
@@ -81,6 +85,8 @@ else
8185 gitbay release create krz/orgstar "$tag" --title "orgstar $version" --notes "$notes"
8286fi
8387gitbay 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/"
8490
8591# The appcast goes in through a merge request, as every change to main does, after the DMG
8692# it points at is up; then the manual, which serves it, is published.