docs/manual/install.org

58f3b73e8ff337e5a15111fbb32c0d57cf2346da
orgstar/docs/manual/install.org rendered · source · history · blame · raw

172 lines · 10909 bytes

13 symbols in this file
  1#+TITLE: Install
  2#+DESCRIPTION: Installing orgstar on the Mac from the Mac App Store, with Homebrew or a download, and on iPhone and iPad from the App Store.
  3#+LEDE: The Mac app comes from the Mac App Store, or as a notarized download and a Homebrew cask; the iOS app is on the App Store.
  4
  5* Requirements
  6
  7- macOS 26 or later.
  8- Optional, for the download version: GNU Emacs, for the features that hand work to it
  9  (Emacs Lisp code blocks that need full Emacs, Lisp table formulas the built-in
 10  interpreter can't run, and export to PDF through LaTeX). See
 11  [[file:guide/15-alongside-emacs.org][Working alongside Emacs and other tools]].
 12
 13* The Mac app
 14
 15There are two versions of the Mac app. Both edit the same files in the same way; they
 16differ in where they come from, how orgstar+ is bought, and what they can run.
 17
 18- The Mac App Store version runs in the App Sandbox and starts no other programs. Emacs
 19  Lisp blocks run in orgstar's own interpreter, JavaScript blocks in JavaScriptCore, and calc,
 20  sqlite, dot and mermaid blocks built in, as on iOS; other languages, Emacs and gnuplot are not used. orgstar+ is an in-app purchase shared
 21  with the iPhone and iPad app.
 22- The download version, from Homebrew or files.krz.sh, is signed with a Developer ID and
 23  notarized. It runs code blocks with the programs installed on the Mac, hands some tables and
 24  exports to Emacs, and updates itself.
 25
 26** From the Mac App Store
 27
 28Get orgstar from the [[https://apps.apple.com/us/app/orgstar-org-mode-agenda/id6821552018][Mac App Store]]. The Mac App Store keeps it up to date.
 29
 30Settings ▸ orgstar+ has the monthly, yearly and lifetime plans and Restore Purchases. A
 31purchase made with the same Apple Account on iPhone or iPad unlocks orgstar+ on the Mac too,
 32and the other way round. The same tab has tips, which unlock nothing.
 33
 34** With Homebrew
 35
 36#+BEGIN_SRC sh
 37brew tap krz/tap https://gitbay.org/krz/homebrew-tap.git
 38brew install --cask orgstar
 39#+END_SRC
 40
 41** As a download
 42
 43Download the newest =orgstar-<version>.dmg= from [[https://files.krz.sh/orgstar/][files.krz.sh/orgstar]], open it, and drag
 44orgstar to Applications. The app is universal (Apple silicon and Intel), signed with a
 45Developer ID and notarized by Apple, so it opens without warnings.
 46
 47Once the app has been launched, Finder opens =.org= files with it, Quick Look shows
 48them formatted, and Spotlight indexes their headings and text. The same is true of the Mac
 49App Store version.
 50
 51* The Mac App Store version
 52
 53** What it does differently
 54
 55| Feature                    | Mac App Store version                                                         | Download version                                                                                |
 56|----------------------------+-------------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------|
 57| Code blocks                | Emacs Lisp, JavaScript, calc, sqlite, dot and mermaid, each built in          | Every language installed; Emacs Lisp in Emacs and JavaScript in node, or built in without them  |
 58| Sessions, graphics         | JavaScript sessions; dot and mermaid as SVG or PNG                            | Yes                                                                                             |
 59| Tangling                   | Yes                                                                           | Yes                                                                                             |
 60| Table formulas             | Those orgstar computes itself                                                 | The rest in Emacs as well                                                                       |
 61| Plots                      | Drawn with Swift Charts, following a subset of gnuplot's =set=                | gnuplot when installed, else Swift Charts                                                       |
 62| Export                     | HTML, Markdown, PDF, Word, RTF, plain text, ODT, iCalendar, LaTeX, ASCII; publishing | Also PDF through LaTeX, in Emacs                                                         |
 63| Settings                   | In the app's container, or a folder you choose                                | =~/.config/orgstar=                                                                             |
 64| Files outside your folders | After you grant access to their folder                                        | Directly                                                                                        |
 65| Attachments                | Copied, or moved from inside your folders                                     | Copied, moved, linked or symlinked                                                              |
 66| Updates                    | The Mac App Store                                                             | Built in, or Homebrew                                                                           |
 67| orgstar+                   | In-app purchase, shared with iPhone and iPad                                  | License key                                                                                     |
 68
 69A block in another language reports "/language/ blocks don't run in this version of
 70orgstar." An Emacs Lisp block that uses more than the interpreter has reports "This block uses
 71Emacs Lisp that runs only in Emacs." A JavaScript block that uses something only node has
 72reports "This block uses /name/, which runs only in node." A table whose formulas need Emacs is recalculated up to
 73the first formula that needs it, which the message names with the reason; the fields
 74before it stay and the rest are unchanged. The Emacs exports are
 75not in the File ▸ Export menu, the export dialog or the command palette; a key bound to
 76Export to PDF with Emacs exports to PDF without LaTeX. LaTeX and ASCII export are orgstar's own
 77and are in both versions; a file they can't write as Emacs would reports "Can't export to
 78LaTeX" or "Can't export to plain text", with the reason.
 79
 80** Folders and files
 81
 82The App Store version can open only the folders and files you give it:
 83
 84- Folders you add (File ▸ Add Folder…, or the welcome sheet) and files you open from Finder.
 85  orgstar remembers them across launches.
 86- When something needs a file outside them, such as an =#+INCLUDE:= or =#+SETUPFILE:=, a
 87  tangle target, an export file, an image in a PDF, Word or RTF export, a =file:= link, a
 88  =:file= result, a publishing folder, a capture target, an archive file, or the folder for
 89  org-roam nodes, daily notes or Denote notes, orgstar asks once. Grant Access… opens a folder picker at that folder; choose it, and orgstar
 90  uses that folder and everything in it from then on. An export also offers Save Elsewhere….
 91- A folder that can no longer be opened, for example one on a disk that isn't connected, is
 92  listed under Can't Open in the sidebar, with Grant Access… to choose it again.
 93- =~= in paths and settings means your home folder, as in the download version.
 94- Import from Emacs opens a picker at the configuration it finds and asks for each folder it
 95  adds to the sidebar. For a Doom configuration, Choose Doom Folder… reads Doom's own org
 96  defaults from its installation folder.
 97
 98** Settings
 99
100The App Store version keeps its settings in its container,
101=~/Library/Containers/sh.krz.orgstar/Data/.config/orgstar/=. To keep them in
102=~/.config/orgstar/= instead, for example to share them with the download version, the iOS app
103or your dotfiles, click Settings ▸ General ▸ Choose Configuration Folder… and choose that
104folder. If it has no =config.toml=, orgstar writes one with the current settings. Use Default
105Folder goes back to the container.
106
107* Switching between the two Mac versions
108
109Both versions are called orgstar and have the same bundle identifier. Keep only one of them:
110quit orgstar and delete =orgstar.app= from Applications, or run =brew uninstall --cask
111orgstar=, before installing the other. The App Store doesn't replace the download version: it
112installs beside it as =orgstar 2.app=. With both on the Mac, Finder, Quick Look, Spotlight,
113widgets and =org-protocol://= links each use one of them, as macOS picks.
114
115The two don't share their sidebar folders, open files, recovery versions or orgstar+:
116
117- After switching, add your folders again with File ▸ Add Folder….
118- The App Store version's purchase doesn't unlock the download version, and a license key
119  doesn't unlock the App Store version.
120- Recovery versions stay with the version that made them. The App Store version keeps them in
121  =~/Library/Containers/sh.krz.orgstar/Data/Library/Application Support/Orgstar/Recovery/=.
122
123Settings move this way:
124
125- From the download version to the App Store version: your settings stay in
126  =~/.config/orgstar/=. Choose that folder with Choose Configuration Folder… (see /Settings/
127  above).
128- From the App Store version to the download version: if you chose =~/.config/orgstar/=, there
129  is nothing to move. Otherwise copy the files out of the container; =cp -i= asks before
130  replacing a file that is already there:
131
132#+BEGIN_SRC sh
133mkdir -p ~/.config/orgstar
134cp -i ~/Library/Containers/sh.krz.orgstar/Data/.config/orgstar/*.toml ~/.config/orgstar/
135#+END_SRC
136
137* The iOS app
138
139The 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
140app comes with it. The App Store keeps it up to date.
141
142See [[file:guide/14-ios.org][iPhone and iPad]] for what it does.
143
144* Updating
145
146The Mac App Store updates the App Store version. The rest of this section is about the download
147version.
148
149orgstar checks for a new release once a day, after asking on its second launch whether it
150may; orgstar ▸ Check for Updates… checks now, and Settings ▸ General has the switch. An update
151downloads, is checked against the key the releases are signed with, and installs when you
152agree. With Homebrew, =brew upgrade --cask orgstar= works too; the cask leaves updating to the
153app otherwise. From source, pull and build again (a build without a Developer ID never checks):
154
155#+BEGIN_SRC sh
156git pull
157scripts/build-app.sh
158#+END_SRC
159
160Your settings live in =~/.config/orgstar/= and survive rebuilds.
161
162After an update that has notes, orgstar shows what changed once, the next time it opens. Help ▸
163What's New in orgstar shows them again, in both versions.
164
165* Uninstalling
166
167Delete =orgstar.app=, or run =brew uninstall --cask orgstar=. To remove your settings as
168well, delete =~/.config/orgstar/= (=brew uninstall --zap --cask orgstar= does both). The App
169Store version keeps its settings, index and recovery versions in
170=~/Library/Containers/sh.krz.orgstar/=, and the widgets' data in
171=~/Library/Group Containers/group.sh.krz.orgstar/=.
172Your org files are never stored inside the app.