diff --git a/cli/Cargo.toml b/cli/Cargo.toml index f40316c47c..261fef02dd 100644 --- a/cli/Cargo.toml +++ b/cli/Cargo.toml @@ -84,3 +84,8 @@ packaging = [] test-fakes = [] vendored-openssl = ["git2/vendored-openssl", "jj-lib/vendored-openssl"] watchman = ["jj-lib/watchman"] + +[package.metadata.binstall] +# The archive name is jj, not jj-cli. Also, `cargo binstall` gets +# confused by the `v` before versions in archive name. +pkg-url="{ repo }/releases/download/v{ version }/jj-v{ version }-{ target }.{ archive-format }"