mirror of
https://github.com/starship/starship.git
synced 2026-06-23 02:05:51 +07:00
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 <Letsch22@users.noreply.github.com>
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user