Skip to content

Commit

Permalink
Binstalls not working, need archive suffix
Browse files Browse the repository at this point in the history
  • Loading branch information
jkelleyrtp committed Mar 28, 2024
1 parent 1f6c7cf commit ac1aea4
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 5 deletions.
12 changes: 9 additions & 3 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,13 @@ name: Publish CLI
on:
workflow_dispatch:
inputs:
post:
name: "Release Post"
required: true
description: Choose the release post to publish with. Must be a tag (eg v0.4.0)
type: string
channel:
name: "Branch to publish"
name: "CLI Binary Version"
required: true
description: Choose the version number to publish with. Must be a tag (ie v0.4.0)
type: string
Expand All @@ -34,6 +39,7 @@ env:
# SEMVER: ${{ github.event.inputs.channel == 'main' && 'prerelease' || 'patch' }}
# PRERELEASE_TAG: ${{ github.event.inputs.channel == 'main' && '-pre' || '' }}
RELEASE_TAG: ${{ github.event.inputs.channel }}
RELEASE_POST: ${{ github.event.inputs.post }}

jobs:
release-cli:
Expand Down Expand Up @@ -88,10 +94,10 @@ jobs:
bin: dx
token: ${{ secrets.GITHUB_TOKEN }}
target: ${{ matrix.platform.target }}
archive: $bin-$target
archive: $bin-$target-v${{ env.RELEASE_TAG }}
checksum: sha256
manifest_path: packages/cli/Cargo.toml
ref: refs/tags/${{ env.RELEASE_TAG }}
ref: refs/tags/${{ env.RELEASE_POST }}


# todo: these things
Expand Down
9 changes: 7 additions & 2 deletions packages/cli/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
[package]
name = "dioxus-cli"
version = { workspace = true }
version = "0.5.3"
# version = { workspace = true }
authors = ["Jonathan Kelley"]
edition = "2021"
description = "CLI tool for developing, testing, and publishing Dioxus apps"
Expand Down Expand Up @@ -115,7 +116,11 @@ name = "dx"
tempfile = "3.3"

[package.metadata.binstall]
pkg-url = "{ repo }/releases/download/v{ version }/dx-{ target }"
# temporarily, we're going to use the 0.5.0 download page for all binaries
pkg-url = "{ repo }/releases/download/v{ version }/dx-{ target }-v{ version }{ archive-suffix }"

# pkg-url = "{ repo }/releases/download/v{ version }/dx-{ target }{ archive-suffix }"
pkg-fmt = "tgz"

[package.metadata.binstall.overrides.x86_64-pc-windows-msvc]
pkg-fmt = "zip"

0 comments on commit ac1aea4

Please sign in to comment.