1
0
mirror of https://github.com/bitwarden/browser.git synced 2024-12-17 15:37:57 +01:00

bracket WIN_PKG_PATH

This commit is contained in:
Kyle Spearrin 2019-03-14 22:22:03 -04:00
parent 59e2d561dc
commit 56f9f320ff

View File

@ -30,15 +30,16 @@ before_build:
build_script:
- ps: |
echo ${env:WIN_PKG_PATH}
if(Test-Path -Path $env:WIN_PKG_PATH) {
echo "Updating pkg resources"
$rh = "C:\Program Files (x86)\Resource Hacker\ResourceHacker.exe"
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 `
"-open version-info.rc -save version-info.res -action compile"
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 run dist