Skip to content

Commit

Permalink
Compress releases for linux with gzip instead of xz
Browse files Browse the repository at this point in the history
It seems like [zed does not support decompressing xz-compressed archives](https://github.com/zed-industries/zed/blob/89fbd6528f688cc98eaa4b3002f4b41da6c7b520/crates/extension/src/wasm_host/wit/since_v0_0_7.rs#L415); and they also seem to have their own gzip decoder (they don't shell out to `gzip`)

To use wakatime-lsp for zed-wakatime, I'd have to either

- contribute TarXZ support to zed's extension WASM host (would take much more time)
- shell out (kinda ugly, might not be cross-platform, might also be slower and/or janky)

So switching to tar.gz tarballs seems like a preferrable option ^^

I just changed the cargo-dist config (see https://opensource.axo.dev/cargo-dist/book/reference/config.html#unix-archive)
  • Loading branch information
ewen-lbh authored Jul 13, 2024
1 parent 357575d commit fd2dda8
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -41,4 +41,5 @@ cargo-dist-version = "0.19.1"
ci = "github"
installers = []
targets = ["aarch64-apple-darwin", "x86_64-apple-darwin", "x86_64-unknown-linux-gnu", "x86_64-pc-windows-msvc"]
unix-archive = ".tar.gz"
pr-run-mode = "plan"

0 comments on commit fd2dda8

Please sign in to comment.