Skip to content

Commit edff774

Browse files
committed
add WinGet update CD
1 parent 5fcef84 commit edff774

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

appveyor.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,12 @@ skip_commits:
2020
files:
2121
- '*.md'
2222

23+
environment:
24+
winget_token:
25+
secure: HbH4/yvdMmNLUUwN/VEbsJiGLoXNheJpXK4XQbTXVtjcpWSiOBSFeJ2KaE1n9wHs
26+
auth_token:
27+
secure: ij4UeXUYQBDJxn2YRAAhUOjklOGVKDB87Hn5J8tKIzj13yatoI7sLM666QDQFEgv
28+
2329
image: Visual Studio 2019
2430
platform: Any CPU
2531
configuration: Release
@@ -67,3 +73,19 @@ deploy:
6773
force_update: true
6874
on:
6975
APPVEYOR_REPO_TAG: true
76+
77+
deploy_script: # this doesnt seem to run at all
78+
- ps: |
79+
if ($env:APPVEYOR_REPO_BRANCH -eq "dev") #swich to master for release
80+
{
81+
iwr https://aka.ms/wingetcreate/latest -OutFile wingetcreate.exe
82+
.\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
83+
}
84+
85+
on_success:
86+
- ps: |
87+
if ($env:APPVEYOR_REPO_BRANCH -eq "dev")
88+
{
89+
iwr https://aka.ms/wingetcreate/latest -OutFile wingetcreate.exe
90+
.\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:auth_token
91+
}

0 commit comments

Comments
 (0)