From 75475cd0c18f3265383505f3f5feabb4e792eb6f Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Thu, 23 Jun 2022 11:59:07 +0200 Subject: [PATCH 1/2] build: bump clap from 3.2.5 to 3.2.6 (#4100) Bumps [clap](https://github.com/clap-rs/clap) from 3.2.5 to 3.2.6. - [Release notes](https://github.com/clap-rs/clap/releases) - [Changelog](https://github.com/clap-rs/clap/blob/master/CHANGELOG.md) - [Commits](https://github.com/clap-rs/clap/compare/v3.2.5...v3.2.6) --- updated-dependencies: - dependency-name: clap dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- Cargo.lock | 8 ++++---- Cargo.toml | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 6c47c1d40..2069c816c 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -270,9 +270,9 @@ dependencies = [ [[package]] name = "clap" -version = "3.2.5" +version = "3.2.6" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d53da17d37dba964b9b3ecb5c5a1f193a2762c700e6829201e645b9381c99dc7" +checksum = "9f1fe12880bae935d142c8702d500c63a4e8634b6c3c57ad72bf978fc7b6249a" dependencies = [ "atty", "bitflags", @@ -297,9 +297,9 @@ dependencies = [ [[package]] name = "clap_derive" -version = "3.2.5" +version = "3.2.6" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c11d40217d16aee8508cc8e5fde8b4ff24639758608e5374e731b53f85749fb9" +checksum = "ed6db9e867166a43a53f7199b5e4d1f522a1e5bd626654be263c999ce59df39a" dependencies = [ "heck 0.4.0", "proc-macro-error", diff --git a/Cargo.toml b/Cargo.toml index 798ba841d..7788b3d30 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -38,7 +38,7 @@ notify = ["notify-rust"] [dependencies] ansi_term = "0.12.1" chrono = "0.4.19" -clap = { version = "=3.2.5", features = ["derive", "cargo", "unicode", "unstable-v4"] } +clap = { version = "=3.2.6", features = ["derive", "cargo", "unicode", "unstable-v4"] } clap_complete = "3.2.2" dirs-next = "2.0.0" dunce = "1.0.2" From ef52f9e77ec66f5189a18acfdce399882c37fdd8 Mon Sep 17 00:00:00 2001 From: Daniel Letscher Date: Thu, 23 Jun 2022 12:28:50 +0200 Subject: [PATCH 2/2] feat(winget): Add support for winget package manager (#4042) * Add winget update release step * Hardcode MSI URLs for wingetcreate * Fix variable expansion reference * Add winget install documentation * Revert removing MSI installer documentation Co-authored-by: Daniel Letscher --- .github/workflows/release.yml | 14 ++++++++++++++ README.md | 2 ++ 2 files changed, 16 insertions(+) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index e0cb4c211..c5aba823b 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -308,6 +308,20 @@ jobs: env: COMMITTER_TOKEN: ${{ secrets.HOMEBREW_GITHUB_API_TOKEN }} + winget_update: + name: Update Winget Manifest + runs-on: windows-latest + needs: [release_please, github_build, upload_artifacts] + if: ${{ needs.release_please.outputs.release_created == 'true' }} + env: + URL_64: https://github.com/starship/starship/releases/download/${{ needs.release_please.outputs.tag_name }}/starship-x86_64-pc-windows-msvc.msi + URL_32: https://github.com/starship/starship/releases/download/${{ needs.release_please.outputs.tag_name }}/starship-i686-pc-windows-msvc.msi + steps: + - run: | + $version = '${{ needs.release_please.outputs.tag_name }}'.replace('v', '') + iwr https://aka.ms/wingetcreate/latest -OutFile wingetcreate.exe + ./wingetcreate.exe update Starship.Starship -s -v $version -u $env:URL_64 $env:URL_32 -t ${{ secrets.GITHUB_TOKEN }} + merge_crowdin_pr: name: Merge Crowdin PR runs-on: ubuntu-latest diff --git a/README.md b/README.md index 9ac75d75b..2231f8b6a 100644 --- a/README.md +++ b/README.md @@ -261,6 +261,7 @@ Install Starship using any of the following package managers: | [Chocolatey] | `choco install starship` | | [conda-forge] | `conda install -c conda-forge starship` | | [Scoop] | `scoop install starship` | +| [winget] | `winget install --id Starship.Starship` | @@ -447,3 +448,4 @@ This project is [ISC](https://github.com/starship/starship/blob/master/LICENSE) [snapcraft]: https://snapcraft.io/starship [termux]: https://github.com/termux/termux-packages/tree/master/packages/starship [void linux packages]: https://github.com/void-linux/void-packages/tree/master/srcpkgs/starship +[winget]: https://github.com/microsoft/winget-pkgs/tree/master/manifests/s/Starship/Starship