|
|
@ -1,4 +1,4 @@ |
|
|
|
if (-not (Test-Path env:QT_LOCATION)) { echo "QT_LOCATION is not set"; exit; } |
|
|
|
if (-not (Test-Path env:QT_STATIC)) { echo "QT_STATIC is not set"; exit; } |
|
|
|
if (-not (Test-Path env:APP_VERSION)) { echo "APP_VERSION is not set"; exit; } |
|
|
|
|
|
|
|
$target="zcash-qt-wallet-v$Env:APP_VERSION" |
|
|
@ -10,7 +10,7 @@ Remove-Item -Path release -Recurse | Out-Null |
|
|
|
|
|
|
|
# Run qmake |
|
|
|
echo "Configuring" |
|
|
|
& "$Env:QT_LOCATION\bin\qmake.exe" zcash-qt-wallet.pro -spec win32-msvc "CONFIG+=release" |
|
|
|
& "$Env:QT_STATIC\bin\qmake.exe" zcash-qt-wallet.pro -spec win32-msvc "CONFIG+=release" |
|
|
|
|
|
|
|
echo "Building" |
|
|
|
nmake *>$null |
|
|
@ -19,7 +19,7 @@ nmake *>$null |
|
|
|
New-Item release/$target -itemtype directory | Out-Null |
|
|
|
Move-Item release/zcash-qt-wallet.exe release/$target | Out-Null |
|
|
|
|
|
|
|
& "$Env:QT_LOCATION\bin\windeployqt.exe" release/$target/zcash-qt-wallet.exe *>$null |
|
|
|
& "$Env:QT_STATIC\bin\windeployqt.exe" release/$target/zcash-qt-wallet.exe *>$null |
|
|
|
|
|
|
|
echo "Zipping" |
|
|
|
Compress-Archive -LiteralPath release/$target -DestinationPath "release/$target.zip" |