Add metadata for cargo-binstall (#4458)

This commit is contained in:
Yip Coekjan 2024-07-06 16:36:24 +08:00 committed by GitHub
parent 4c22ffa612
commit 8c3002897a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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"