CONTRIBUTING.org
82 lines · 3709 bytes
1#+TITLE: Contributing
2
3* Status
4
5Design phases 1–7 are built. The Mac app is released as a notarized DMG and a Homebrew
6cask, with Sparkle updates. The iOS and watchOS apps build from the Xcode project for the
7Simulator and for a device signed with your own team, and go to TestFlight and the
8[[https://apps.apple.com/us/app/orgstar-org-mode-agenda/id6821552018][App Store]] with =scripts/release-ios.sh=. Owed: the M1 Air gate run (issue 2) and the VoiceOver
9passes on the Mac and iOS (issues 3 and 4).
10
11=docs/design.md= is the design; =docs/plans/= has one plan per piece of work.
12
13* Build and run
14
15Requires macOS 26 and Xcode 27 (Swift 6.2 tools).
16
17#+BEGIN_SRC sh
18scripts/build-app.sh # builds .build/app/orgstar.app, signed ad hoc
19open .build/app/orgstar.app
20#+END_SRC
21
22Add a folder with File > Add Folder… (⇧⌘O). ⌘P opens a file by name, ⇧⌘F searches,
23⇧⌘A shows the agenda. In the editor, TAB on a heading cycles its folding and Shift-TAB
24cycles the whole file. orgstar opens =.org= files from Finder once the app has been
25launched.
26
27C-c C-v t tangles the file's source blocks into the files their =:tangle= header
28names, as =org-babel-tangle= does.
29
30=org-protocol://capture?template=…&url=…&title=…&body=…= and
31=org-protocol://store-link?url=…&title=…= links work as in Emacs, so browser
32bookmarklets written for org-protocol work unchanged. Shortcuts has a "Capture to
33orgstar" action that files text with a capture template.
34
35Settings live in =~/.config/orgstar/config.toml= (orgstar ▸ Edit Config File), with
36keys in =keymap.toml= and capture templates in =capture.toml= beside it. Settings ▸
37General ▸ Import from Emacs reads an existing Emacs or Doom configuration.
38
39* iOS
40
41The iOS app (iOS 26) is the "Orgstar iOS" scheme in =ios/Orgstar.xcodeproj=, with the
42share and Quick Look extensions. It builds from the package's sources and signs
43automatically with the team set in the project; choose a device or Simulator and Run.
44For the Simulator without Xcode:
45
46#+BEGIN_SRC sh
47scripts/build-ios-app.sh # builds .build/ios-app/orgstar.app
48xcrun simctl install booted .build/ios-app/orgstar.app
49#+END_SRC
50
51On iOS, orgstar in the share sheet takes a page or text with a template; the app opens
52its capture sheet with it when it's next active. Shortcuts has the same "Capture to
53orgstar" action as on the Mac.
54
55* Tests
56
57#+BEGIN_SRC sh
58swift test # all tests
59ORGSTAR_GATES=1 swift test -c release --filter GateTests # performance gates
60#+END_SRC
61
62* Release
63
64=scripts/release-mac.sh <version>= builds a universal app, signs it with the
65keychain's Developer ID, notarizes a DMG, tags =v<version>=, uploads the DMG to the
66gitbay release and updates the cask in krz/homebrew-tap.
67
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
72=scripts/release-ios.sh= then archives the =Orgstar iOS= scheme, with its extensions and the
73watch app, and uploads it to App Store Connect for TestFlight. It signs automatically with the
74team's distribution certificate through the Apple ID signed in to Xcode (Xcode ▸ Settings ▸
75Accounts), so it needs no key of its own. The version is the project's =MARKETING_VERSION=;
76the build number is the commit count, as the Mac's is, so each upload needs a new commit.
77=ORGSTAR_PUBLISH=0= archives and exports the =.ipa= to =.build/ios-release= without uploading.
78
79* App Store header
80
81=ios/AppStore/header.html= renders the product page headers; the commands are in the
82comment at the top of the file.