set path in ps

This commit is contained in:
Kyle Spearrin 2019-03-14 23:18:30 -04:00
parent ec7f145ca0
commit f5979b657e
1 changed files with 1 additions and 2 deletions

View File

@ -19,6 +19,7 @@ init:
install: install:
- ps: | - ps: |
$env:PACKAGE_VERSION = (Get-Content -Raw -Path .\package.json | ConvertFrom-Json).version $env:PACKAGE_VERSION = (Get-Content -Raw -Path .\package.json | ConvertFrom-Json).version
$env:PATH = "C:\Program Files (x86)\Resource Hacker;${env:PATH}"
$env:SET_VERSION_INFO = "false" $env:SET_VERSION_INFO = "false"
if(Test-Path -Path $env:WIN_PKG_PATH) { if(Test-Path -Path $env:WIN_PKG_PATH) {
$env:SET_VERSION_INFO = "true" $env:SET_VERSION_INFO = "true"
@ -35,8 +36,6 @@ before_build:
build_script: build_script:
- cmd: | - cmd: |
set "RH_PATH=C:\Program Files (x86)\Resource Hacker"
set "PATH=%RH_PATH%;%PATH%"
ResourceHacker -open %WIN_PKG_PATH% -save %WIN_PKG_PATH% -action delete -mask ICONGROUP,1, 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 version-info.rc -save version-info.res -action compile
ResourceHacker -open %WIN_PKG_PATH% -save %WIN_PKG_PATH% -action addoverwrite -resource version-info.res ResourceHacker -open %WIN_PKG_PATH% -save %WIN_PKG_PATH% -action addoverwrite -resource version-info.res