From bbafa2977650e9f7c7648478ba68bad88e854e4a Mon Sep 17 00:00:00 2001 From: Kyle Spearrin Date: Thu, 14 Mar 2019 17:32:29 -0400 Subject: [PATCH] test path --- appveyor.yml | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/appveyor.yml b/appveyor.yml index 0661eec216..95e5296149 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -25,9 +25,13 @@ before_build: - cmd: npm --version build_script: -- cmd: ResourceHacker -open %WIN_PKG_PATH% -save %WIN_PKG_PATH% -action delete -mask ICONGROUP,1, & exit 0 -- cmd: ResourceHacker -open .\version-info.rc -save .\version-info.res -action compile -- cmd: ResourceHacker -open %WIN_PKG_PATH% -save %WIN_PKG_PATH% -action addoverwrite -resource .\version-info.res +- ps: | + if(Test-Path -Path $env:WIN_PKG_PATH) { + echo "Updating pkg resources" + ResourceHacker -open $env:WIN_PKG_PATH -save $env:WIN_PKG_PATH -action delete -mask ICONGROUP,1, + ResourceHacker -open .\version-info.rc -save .\version-info.res -action compile + ResourceHacker -open $env:WIN_PKG_PATH -save $env:WIN_PKG_PATH -action addoverwrite -resource .\version-info.res, + } - cmd: npm install - cmd: npm run dist - cmd: 7z a ./dist/bw-windows-%PACKAGE_VERSION%.zip ./dist/windows/bw.exe @@ -42,7 +46,7 @@ artifacts: - path: dist/chocolatey/bitwarden-cli.%PACKAGE_VERSION%.nupkg cache: -- 'C:\Users\appveyor\.pkg-cache\' +- 'C:\Users\appveyor\.pkg-cache\ -> package.json' deploy: provider: GitHub