diff --git a/appveyor.yml b/appveyor.yml index 9961a9111..01bacea0b 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -67,3 +67,15 @@ deploy: force_update: true on: APPVEYOR_REPO_TAG: true + +environment: + winget_token: + secure: HKfVT2FYZITAG0qqMCePYhIem5a/gzvAgYDSlr6RlXfGmeBUOANUtgJ9X6fNroxN + +on_success: + - ps: | + if ($env:APPVEYOR_REPO_BRANCH -eq "master") + { + iwr https://aka.ms/wingetcreate/latest -OutFile wingetcreate.exe + .\wingetcreate.exe update Flow-Launcher.Flow-Launcher -s true -u https://github.com/Flow-Launcher/Flow.Launcher/releases/download/v$env:flowVersion/Flow-Launcher-v$env:flowVersion.exe -v $env:flowVersion -t $env:winget_token + }