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