summaryrefslogtreecommitdiff
path: root/README.md
diff options
context:
space:
mode:
Diffstat (limited to 'README.md')
-rw-r--r--README.md26
1 files changed, 22 insertions, 4 deletions
diff --git a/README.md b/README.md
index 40d1171..8a6ec69 100644
--- a/README.md
+++ b/README.md
@@ -13,17 +13,24 @@ idea in Zig and AppKit, written without his code. The behavior and the colors fo
[joeysim/write-on-replica](https://github.com/joeysim/write-on-replica), whose design notes
describe his clips in detail. It is not connected with him or with 37signals.
+## Install
+
+Releases are zips on Codeberg for Apple silicon, built for macOS 13 or later (only tested on macOS 26). Unzip one and move `Write_Away.app` to `/Applications`. The app is not notarized, so macOS refuses it the first time: try to open it, then choose **System Settings → Privacy & Security → Open Anyway**. Each zip's checksum is in the release's `SHA256SUMS`. **Write_Away → About Write_Away** shows the version.
+
## Build and run
-Use Zig **0.16.0**, the Xcode Command Line Tools, and a sibling checkout of `libpantograph` at `../libpantograph`. Tested on Apple silicon. If Homebrew supplies a newer Zig, use `export PATH=/opt/zig:$PATH` with the 0.16 installation here.
+Use [mise](https://mise.jdx.dev), which supplies Zig **0.16.0**, and the Xcode Command Line Tools, on Apple silicon. The first build fetches [libpantograph](https://codeberg.org/teepark/libpantograph) at the revision pinned in `build.zig.zon`.
```sh
-zig build # zig-out/Write_Away.app
+mise trust # once: let mise read this repo's tasks
+mise run build # zig-out/Write_Away.app
open zig-out/Write_Away.app
-zig build run -- piece.md # open a piece, or start one at that path
-zig build test # the document model, then the app driven with no window
+mise run run -- piece.md # open a piece, or start one at that path
+mise run test # the document model, then the app driven with no window
```
+`build:local` and `test:local` use a libpantograph checkout at `../libpantograph` instead. `mise run pin:libpanto` moves the pin. `mise tasks` lists the rest.
+
A normal launch reopens the last file you had open, using its current contents on disk. On the first launch, after **File → New**, or if the file can’t be read, you get an empty **Untitled** draft instead. Opening a file explicitly takes precedence. Unsaved text is not restored.
### Launch from the terminal
@@ -132,6 +139,17 @@ Legacy Overflow trailers and v1 records are supported. For drafts saved under an
A separate Markdown view, source-stripped public export, sharing/posting, deletion animations, crash recovery, and multiple windows are not implemented.
+## Releasing
+
+The version is the `.version` in `build.zig.zon`; `mise run version x.y.z` rewrites it and the build copies it into `Info.plist`. In panto, `/workflow:ship` does everything: commits the work, bumps the version, pushes `main`, and releases. By hand, with the work committed, `main` at `@-` and pushed, and nothing in the working copy:
+
+```sh
+DRY_RUN=1 mise run release # test, build and check the zip, and stop there
+mise run release # and tag, push the tag, and publish on Codeberg
+```
+
+Both need a remote named `codeberg`, and a `CODEBERG_TOKEN` with repository write access in `mise.local.toml` (ignored by version control). A release stays a draft until its zip and checksum are uploaded; if it fails partway, run it again.
+
## The code
- `src/doc.zig` and `src/ghost_io.zig`: variants, recoverable ghosts, and the Markdown format.