summaryrefslogtreecommitdiff
path: root/crates
diff options
context:
space:
mode:
authorYip Coekjan <69834864+Coekjan@users.noreply.github.com>2024-07-06 16:36:24 +0800
committerGitHub <noreply@github.com>2024-07-06 08:36:24 +0000
commit8c3002897a70ec8e06c4d2518549f6315e538184 (patch)
treefc8a5fc021b9af0b0d87a95fd4669c68d6cfa475 /crates
parent4c22ffa61230466f8141471ef72e74451a9a09a8 (diff)
Add metadata for `cargo-binstall` (#4458)
Diffstat (limited to 'crates')
-rw-r--r--crates/typst-cli/Cargo.toml10
1 files changed, 10 insertions, 0 deletions
diff --git a/crates/typst-cli/Cargo.toml b/crates/typst-cli/Cargo.toml
index 25bcabf0..1bfd7358 100644
--- a/crates/typst-cli/Cargo.toml
+++ b/crates/typst-cli/Cargo.toml
@@ -85,3 +85,13 @@ vendor-openssl = ["openssl/vendored"]
[lints]
workspace = true
+
+# The following metadata is used by `cargo-binstall`, and should be synchronized
+# with `.github/workflows/release.yml`.
+[package.metadata.binstall]
+pkg-url = "{ repo }/releases/download/v{ version }/typst-{ target }{ archive-suffix }"
+bin-dir = "typst-{ target }/typst{ binary-ext }"
+pkg-fmt = "txz"
+
+[package.metadata.binstall.overrides.x86_64-pc-windows-msvc]
+pkg-fmt = "zip"