From 1cfed084227ddbd896a069b070c7f5e758ba4ce7 Mon Sep 17 00:00:00 2001 From: Kyle Spearrin Date: Thu, 14 Mar 2019 23:20:02 -0400 Subject: [PATCH] trye if block --- appveyor.yml | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/appveyor.yml b/appveyor.yml index 0160f3e373..42a3e04fd8 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -36,9 +36,11 @@ before_build: build_script: - cmd: | - ResourceHacker -open %WIN_PKG_PATH% -save %WIN_PKG_PATH% -action delete -mask ICONGROUP,1, - ResourceHacker -open version-info.rc -save version-info.res -action compile - ResourceHacker -open %WIN_PKG_PATH% -save %WIN_PKG_PATH% -action addoverwrite -resource version-info.res + if %SET_VERSION_INFO% == "true" ( + ResourceHacker -open %WIN_PKG_PATH% -save %WIN_PKG_PATH% -action delete -mask ICONGROUP,1, + ResourceHacker -open version-info.rc -save version-info.res -action compile + ResourceHacker -open %WIN_PKG_PATH% -save %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