From edff7742617686e975a7b2dab59ea420dbeafeb4 Mon Sep 17 00:00:00 2001 From: Jeremy Date: Wed, 21 Jul 2021 19:06:31 +1000 Subject: [PATCH 1/2] add WinGet update CD --- appveyor.yml | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/appveyor.yml b/appveyor.yml index 9961a9111..35753abf2 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -20,6 +20,12 @@ skip_commits: files: - '*.md' +environment: + winget_token: + secure: HbH4/yvdMmNLUUwN/VEbsJiGLoXNheJpXK4XQbTXVtjcpWSiOBSFeJ2KaE1n9wHs + auth_token: + secure: ij4UeXUYQBDJxn2YRAAhUOjklOGVKDB87Hn5J8tKIzj13yatoI7sLM666QDQFEgv + image: Visual Studio 2019 platform: Any CPU configuration: Release @@ -67,3 +73,19 @@ deploy: force_update: true on: APPVEYOR_REPO_TAG: true + +deploy_script: # this doesnt seem to run at all + - ps: | + if ($env:APPVEYOR_REPO_BRANCH -eq "dev") #swich to master for release + { + 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 + } + +on_success: + - ps: | + if ($env:APPVEYOR_REPO_BRANCH -eq "dev") + { + 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:auth_token + } From 5a55273f3d60ed86fc09ff98c30edfdc6942eddf Mon Sep 17 00:00:00 2001 From: Jeremy Date: Wed, 21 Jul 2021 20:47:17 +1000 Subject: [PATCH 2/2] run on master branch only --- appveyor.yml | 22 ++++++---------------- 1 file changed, 6 insertions(+), 16 deletions(-) diff --git a/appveyor.yml b/appveyor.yml index 35753abf2..01bacea0b 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -20,12 +20,6 @@ skip_commits: files: - '*.md' -environment: - winget_token: - secure: HbH4/yvdMmNLUUwN/VEbsJiGLoXNheJpXK4XQbTXVtjcpWSiOBSFeJ2KaE1n9wHs - auth_token: - secure: ij4UeXUYQBDJxn2YRAAhUOjklOGVKDB87Hn5J8tKIzj13yatoI7sLM666QDQFEgv - image: Visual Studio 2019 platform: Any CPU configuration: Release @@ -74,18 +68,14 @@ deploy: on: APPVEYOR_REPO_TAG: true -deploy_script: # this doesnt seem to run at all +environment: + winget_token: + secure: HKfVT2FYZITAG0qqMCePYhIem5a/gzvAgYDSlr6RlXfGmeBUOANUtgJ9X6fNroxN + +on_success: - ps: | - if ($env:APPVEYOR_REPO_BRANCH -eq "dev") #swich to master for release + 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 } - -on_success: - - ps: | - if ($env:APPVEYOR_REPO_BRANCH -eq "dev") - { - 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:auth_token - }