summaryrefslogtreecommitdiff
path: root/docs/typ/install.typ
diff options
context:
space:
mode:
authorGabriel Schneider <[email protected]>2026-10-30 17:35:06 -0300
committerGabriel Schneider <[email protected]>2026-10-30 17:35:06 -0300
commit6d8da8721141284cf33bb901168b26135893eb86 (patch)
tree791d63401d4e85fbca1d597a8ce0326e70efd545 /docs/typ/install.typ
parentefd43a3a2cf03bb741366331158b368abf9ac583 (diff)
parentbf6810a8f9d6cc82050e7d9c0cfb06358301b574 (diff)
downloadpardes-6d8da8721141284cf33bb901168b26135893eb86.tar.gz
pardes-6d8da8721141284cf33bb901168b26135893eb86.zip
Merge latest upstream into the macOS branch for Zig 0.17
Retain the macOS branch history and local Acme selection color while adopting upstream's current core and platform changes. Pin Zig and ZLS to 0.17.0, and fetch the existing zstbi compatibility commit through upstream after its original fork was removed.
Diffstat (limited to 'docs/typ/install.typ')
-rw-r--r--docs/typ/install.typ25
1 files changed, 25 insertions, 0 deletions
diff --git a/docs/typ/install.typ b/docs/typ/install.typ
new file mode 100644
index 00000000..d97d30f7
--- /dev/null
+++ b/docs/typ/install.typ
@@ -0,0 +1,25 @@
+// Installing pardes: the downloads, else the clone and the build, included
+// by setup.typ and by the site's landing page, so it is written once. The
+// downloads and the mirrors come from `project` in style.typ.
+#import "style.typ": cmd, project
+
+#if project.download != none {
+ let d = project.download
+ for f in d.files {
+ let name = f.url.split("/").last()
+ [pardes #d.version, #f.what (#str(calc.round(f.bytes / 1000000)) MB):]
+ cmd("curl -LO " + f.url + "\necho '" + f.sha256 + " " + name + "' | sha256sum -c\nchmod +x " + name + " && mv " + name + " ~/.local/bin/" + f.program)
+ }
+ [The checksums are also in #link(d.sums)[`SHA256SUMS`].]
+ parbreak()
+ [Or build it from source:]
+}
+
+#let first = project.mirrors.first()
+#cmd("git clone " + first.clone + " && cd pardes")
+
+With Zig 0.17 (the build fetches everything else; once that is
+downloaded, a first build from a clean cache took 62 seconds on 16 cores):
+#cmd("# pardes, in a terminal\nzig build -Dplatform=tty --prefix ~/.local")
+#cmd("# pardes-gui, its own window\nzig build -Dplatform=gui --prefix ~/.local")
+Then run `pardes` or `pardes FILE`.