Browse Source

Windows compile tweaks

import_zecw
bdr 6 years ago
parent
commit
42d8649f59
  1. 2
      src/precompiled.h
  2. 6
      src/scripts/mkwinrelease.ps1

2
src/precompiled.h

@ -15,6 +15,7 @@
#include <QPainter>
#include <QMovie>
#include <QPair>
#include <QDateTime>
#include <QTimer>
#include <QSettings>
#include <QFile>
@ -25,6 +26,7 @@
#include <QPushButton>
#include <QLabel>
#include <QDialog>
#include <QDebug>
#include <QUrl>
#include <QtNetwork/QNetworkRequest>
#include <QtNetwork/QNetworkAccessManager>

6
src/scripts/mkwinrelease.ps1

@ -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"
Loading…
Cancel
Save