diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index f2a6f57..7c333a0 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -67,7 +67,7 @@ jobs: # we specify bash to get pipefail; it guards against the `curl` command # failing. otherwise `sh` won't catch that `curl` returned non-0 shell: bash - run: "curl --proto '=https' --tlsv1.2 -LsSf https://github.com/axodotdev/cargo-dist/releases/download/v0.25.1/cargo-dist-installer.sh | sh" + run: "curl --proto '=https' --tlsv1.2 -LsSf https://github.com/axodotdev/cargo-dist/releases/download/v0.27.0/cargo-dist-installer.sh | sh" - name: Cache dist uses: actions/upload-artifact@v4 with: diff --git a/Cargo.lock b/Cargo.lock index 7a7b542..adb7754 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -190,9 +190,9 @@ dependencies = [ [[package]] name = "axoupdater" -version = "0.8.2" +version = "0.9.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a70b7d3a9ea86ef8d17dada23f2c42518ed4b75dd6a8ff761f8988b448db8454" +checksum = "bc194af960a8ddbc4f28be3fa14f8716aa22141fe40bf1762ae0948defadcce4" dependencies = [ "axoasset", "axoprocess", @@ -203,7 +203,7 @@ dependencies = [ "self-replace", "serde", "tempfile", - "thiserror 1.0.69", + "thiserror 2.0.6", "url", ] diff --git a/Cargo.toml b/Cargo.toml index 72daf2e..7ec95e3 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -20,7 +20,7 @@ docker = [] anstream = "0.6.15" anyhow = "1.0.86" assert_cmd = { version = "2.0.16", features = ["color"] } -axoupdater = { version = "0.8.1", default-features = false, features = [ "github_releases"] } +axoupdater = { version = "0.9.0", default-features = false, features = [ "github_releases"] } bstr = "1.11.0" clap = { version = "4.5.16", features = ["derive", "env", "string", "wrap_help"] } clap_complete = "4.5.37" @@ -116,36 +116,3 @@ lto = "thin" [package.metadata.dist] dist = true - -# Config for 'dist' -[workspace.metadata.dist] -# The preferred dist version to use in CI (Cargo.toml SemVer syntax) -cargo-dist-version = "0.25.1" -# The archive format to use for non-windows builds (defaults .tar.xz) -unix-archive = ".tar.gz" -# CI backends to support -ci = "github" -# Whether CI should include auto-generated code to build local artifacts -build-local-artifacts = false -# Whether CI should trigger releases with dispatches instead of tag pushes -dispatch-releases = true -# Which actions to run on pull requests -pr-run-mode = "plan" -# Which phase dist should use to create the GitHub release -github-release = "announce" -# The installers to generate for each app -installers = ["shell", "powershell", "homebrew"] -# Target platforms to build apps for (Rust target-triple syntax) -targets = ["aarch64-apple-darwin", "x86_64-apple-darwin", "x86_64-unknown-linux-gnu", "x86_64-pc-windows-msvc"] -# Local artifacts jobs to run in CI -local-artifacts-jobs = ["./build-binaries"] -# Publish jobs to run in CI -publish-jobs = ["./publish", "homebrew"] -# A GitHub repo to push Homebrew formulas to -tap = "j178/homebrew-tap" -# Customize the Homebrew formula name -formula = "prefligit" -# Whether to install an updater program -install-updater = false -# Path that installers should place binaries in -install-path = ["$XDG_BIN_HOME/", "$XDG_DATA_HOME/../bin", "~/.local/bin"] diff --git a/dist-workspace.toml b/dist-workspace.toml new file mode 100644 index 0000000..9551fa1 --- /dev/null +++ b/dist-workspace.toml @@ -0,0 +1,35 @@ +[workspace] +members = ["cargo:."] + +# Config for 'dist' +[dist] +# The preferred dist version to use in CI (Cargo.toml SemVer syntax) +cargo-dist-version = "0.27.0" +# The archive format to use for non-windows builds (defaults .tar.xz) +unix-archive = ".tar.gz" +# CI backends to support +ci = "github" +# Whether CI should include auto-generated code to build local artifacts +build-local-artifacts = false +# Whether CI should trigger releases with dispatches instead of tag pushes +dispatch-releases = true +# Which actions to run on pull requests +pr-run-mode = "plan" +# Which phase dist should use to create the GitHub release +github-release = "announce" +# The installers to generate for each app +installers = ["shell", "powershell", "homebrew"] +# Target platforms to build apps for (Rust target-triple syntax) +targets = ["aarch64-apple-darwin", "x86_64-apple-darwin", "x86_64-unknown-linux-gnu", "x86_64-pc-windows-msvc"] +# Local artifacts jobs to run in CI +local-artifacts-jobs = ["./build-binaries"] +# Publish jobs to run in CI +publish-jobs = ["./publish", "homebrew"] +# A GitHub repo to push Homebrew formulas to +tap = "j178/homebrew-tap" +# Customize the Homebrew formula name +formula = "prefligit" +# Whether to install an updater program +install-updater = false +# Path that installers should place binaries in +install-path = ["$XDG_BIN_HOME/", "$XDG_DATA_HOME/../bin", "~/.local/bin"]