CONTRIBUTING.org

v0.4.2
orgstar/CONTRIBUTING.org rendered · source · history · blame · raw

70 lines · 2788 bytes

 1#+TITLE: Contributing
 2
 3* Status
 4
 5macOS v1, design phases 1–6: editing with Emacs, Mac and Doom keys, agenda, table
 6formulas, Babel and tangling, export, capture, clocking, board, themes and buffers.
 7Owed: the M1 Air gate run and the VoiceOver check. iOS (phase 7): the editor, agenda,
 8capture, search, clocking, reminders, export and tangling, Simulator builds only so far.
 9
10=docs/design.md= is the design; =docs/plans/= has one plan per piece of work.
11
12* Build and run
13
14Requires macOS 26 and Xcode 27 (Swift 6.2 tools).
15
16#+BEGIN_SRC sh
17scripts/build-app.sh          # builds .build/app/orgstar.app, signed ad hoc
18open .build/app/orgstar.app
19#+END_SRC
20
21Add a folder with File > Add Folder… (⇧⌘O). ⌘P opens a file by name, ⇧⌘F searches,
22⇧⌘A shows the agenda. In the editor, TAB on a heading cycles its folding and Shift-TAB
23cycles the whole file. orgstar opens =.org= files from Finder once the app has been
24launched.
25
26C-c C-v t tangles the file's source blocks into the files their =:tangle= header
27names, as =org-babel-tangle= does.
28
29=org-protocol://capture?template=…&url=…&title=…&body=…= and
30=org-protocol://store-link?url=…&title=…= links work as in Emacs, so browser
31bookmarklets written for org-protocol work unchanged. Shortcuts has a "Capture to
32orgstar" action that files text with a capture template.
33
34Settings live in =~/.config/orgstar/config.toml= (orgstar ▸ Edit Config File), with
35keys in =keymap.toml= and capture templates in =capture.toml= beside it. Settings ▸
36General ▸ Import from Emacs reads an existing Emacs or Doom configuration.
37
38* iOS
39
40The iOS app (iOS 26) is the "Orgstar iOS" scheme in =ios/Orgstar.xcodeproj=, with the
41share and Quick Look extensions. It builds from the package's sources and signs
42automatically with the team set in the project; choose a device or Simulator and Run.
43For the Simulator without Xcode:
44
45#+BEGIN_SRC sh
46scripts/build-ios-app.sh      # builds .build/ios-app/orgstar.app
47xcrun simctl install booted .build/ios-app/orgstar.app
48#+END_SRC
49
50On iOS, orgstar in the share sheet takes a page or text with a template; the app opens
51its capture sheet with it when it's next active. Shortcuts has the same "Capture to
52orgstar" action as on the Mac.
53
54* Tests
55
56#+BEGIN_SRC sh
57swift test                                                 # all tests
58ORGSTAR_GATES=1 swift test -c release --filter GateTests   # performance gates
59#+END_SRC
60
61* Release
62
63=scripts/release-mac.sh <version>= builds a universal app, signs it with the
64keychain's Developer ID, notarizes a DMG, tags =v<version>=, uploads the DMG to the
65gitbay release and updates the cask in krz/homebrew-tap.
66
67* App Store header
68
69=ios/AppStore/header.html= renders the product page headers; the commands are in the
70comment at the top of the file.