docs/manual/install.org

87 lines · 3355 bytes

 1#+TITLE: Install
 2#+DESCRIPTION: Installing orgstar on the Mac with Homebrew or a download, and building it from source.
 3#+LEDE: The Mac app comes as a notarized download and a Homebrew cask; the iOS app is built from source.
 4
 5* Requirements
 6
 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
10  (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
12  [[file:guide/15-alongside-emacs.org][Working alongside Emacs and other tools]].
13
14* The Mac app
15
16** With Homebrew
17
18#+BEGIN_SRC sh
19brew tap krz/tap https://gitbay.org/krz/homebrew-tap.git
20brew install --cask orgstar
21#+END_SRC
22
23** As a download
24
25Download =orgstar-<version>.dmg= from the [[https://gitbay.org/krz/orgstar/releases][releases page]], open it, and drag
26orgstar to Applications. The app is universal (Apple silicon and Intel), signed with a
27Developer ID and notarized by Apple, so it opens without warnings.
28
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
45them formatted, and Spotlight indexes their headings and text.
46
47* The iOS app
48
49The iOS app (iOS 26 or later) is built with Xcode from =ios/Orgstar.xcodeproj=:
50
511. Open =ios/Orgstar.xcodeproj=.
522. Select the *Orgstar iOS* target, then Signing & Capabilities, and choose your team.
53   Change the bundle identifiers (=sh.krz.orgstar= and the three extensions' =.share=,
54   =.quicklook= and =.widgets=) and the App Group (=group.sh.krz.orgstar=) to ones your team can register.
553. Choose your iPhone or iPad (or a Simulator) as the destination and Run (=⌘R=).
56
57On a device, Developer Mode must be on (Settings ▸ Privacy & Security ▸ Developer Mode).
58
59For the Simulator without opening Xcode (this build has no widgets):
60
61#+BEGIN_SRC sh
62scripts/build-ios-app.sh
63xcrun simctl install booted .build/ios-app/orgstar.app
64#+END_SRC
65
66See [[file:guide/14-ios.org][iPhone and iPad]] for what it does.
67
68* Updating
69
70orgstar checks for a new release once a day, after asking on its second launch whether it
71may; orgstar ▸ Check for Updates… checks now, and Settings ▸ General has the switch. An update
72downloads, is checked against the key the releases are signed with, and installs when you
73agree. With Homebrew, =brew upgrade --cask orgstar= works too; the cask leaves updating to the
74app otherwise. From source, pull and build again (a build without a Developer ID never checks):
75
76#+BEGIN_SRC sh
77git pull
78scripts/build-app.sh
79#+END_SRC
80
81Your settings live in =~/.config/orgstar/= and survive rebuilds.
82
83* Uninstalling
84
85Delete =orgstar.app=, or run =brew uninstall --cask orgstar=. To remove your settings as
86well, delete =~/.config/orgstar/= (=brew uninstall --zap --cask orgstar= does both).
87Your org files are never stored inside the app.