Ver código fonte

fix binstall

Jonathan Kelley 1 ano atrás
pai
commit
08944223be
2 arquivos alterados com 2 adições e 2 exclusões
  1. 1 1
      .github/workflows/publish.yml
  2. 1 1
      packages/cli/Cargo.toml

+ 1 - 1
.github/workflows/publish.yml

@@ -88,7 +88,7 @@ jobs:
           bin: dx
           token: ${{ secrets.GITHUB_TOKEN }}
           target: ${{ matrix.platform.target }}
-          archive: dx-${{ matrix.platform.target }}${{ env.RELEASE_TAG }}
+          archive: $bin-$target-${{ env.RELEASE_TAG }}
           checksum: sha256
           manifest_path: packages/cli/Cargo.toml
           ref: refs/tags/${{ env.RELEASE_TAG }}

+ 1 - 1
packages/cli/Cargo.toml

@@ -114,7 +114,7 @@ name = "dx"
 tempfile = "3.3"
 
 [package.metadata.binstall]
-pkg-url = "{ repo }/releases/download/v{ version }/dx-{ target }{ archive-suffix }"
+pkg-url = "{ repo }/releases/download/v{ version }/dx-{ target }-{ archive-suffix }"
 
 [package.metadata.binstall.overrides.x86_64-pc-windows-msvc]
 pkg-fmt = "zip"