bracket WIN_PKG_PATH

This commit is contained in:
Kyle Spearrin 2019-03-14 22:22:03 -04:00
parent 59e2d561dc
commit 56f9f320ff
1 changed files with 3 additions and 2 deletions

View File

@ -30,15 +30,16 @@ before_build:
build_script: build_script:
- ps: | - ps: |
echo ${env:WIN_PKG_PATH}
if(Test-Path -Path $env:WIN_PKG_PATH) { if(Test-Path -Path $env:WIN_PKG_PATH) {
echo "Updating pkg resources" echo "Updating pkg resources"
$rh = "C:\Program Files (x86)\Resource Hacker\ResourceHacker.exe" $rh = "C:\Program Files (x86)\Resource Hacker\ResourceHacker.exe"
Start-Process -FilePath $rh -ArgumentList ` Start-Process -FilePath $rh -ArgumentList `
"-open $env:WIN_PKG_PATH -save $env:WIN_PKG_PATH -action delete -mask ICONGROUP,1," "-open ${env:WIN_PKG_PATH} -save ${env:WIN_PKG_PATH} -action delete -mask ICONGROUP,1,"
Start-Process -FilePath $rh -ArgumentList ` Start-Process -FilePath $rh -ArgumentList `
"-open version-info.rc -save version-info.res -action compile" "-open version-info.rc -save version-info.res -action compile"
Start-Process -FilePath $rh -ArgumentList ` Start-Process -FilePath $rh -ArgumentList `
"-open $env:WIN_PKG_PATH -save $env:WIN_PKG_PATH -action addoverwrite -resource version-info.res," "-open ${env:WIN_PKG_PATH} -save ${env:WIN_PKG_PATH} -action addoverwrite -resource version-info.res,"
} }
- cmd: npm install - cmd: npm install
- cmd: npm run dist - cmd: npm run dist