aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVictor Tran <vicr12345@gmail.com>2018-12-20 00:04:31 +1100
committerVictor Tran <vicr12345@gmail.com>2018-12-20 00:04:31 +1100
commit9cdc111e17b23ba3415af2050f0ebd3b5ba2574b (patch)
tree5f6a44ddb890df37b08b00cc67545901b24baefb
parent660bb2a42e072d8eabbc856afd750fde47a37436 (diff)
downloadtheInstaller-9cdc111e17b23ba3415af2050f0ebd3b5ba2574b.tar.gz
theInstaller-9cdc111e17b23ba3415af2050f0ebd3b5ba2574b.tar.bz2
theInstaller-9cdc111e17b23ba3415af2050f0ebd3b5ba2574b.zip
Fix build.bat
-rw-r--r--appveyor/build.bat13
1 files changed, 9 insertions, 4 deletions
diff --git a/appveyor/build.bat b/appveyor/build.bat
index b53f2bf..596186d 100644
--- a/appveyor/build.bat
+++ b/appveyor/build.bat
@@ -4,11 +4,16 @@ if "%APPVEYOR_REPO_TAG_NAME%"=="continuous" (
)
-echo Grabbing Qt 5.12 (Static)
+echo Grabbing required files
curl -L http://downloads.sourceforge.net/project/theinstaller/Qt5.12.0-static.7z > Qt.7z
+curl -L https://sourceforge.net/projects/gnuwin32/files/zlib/1.2.3/zlib-1.2.3-lib.zip > zlib.zip
"/Program Files/7-zip/7z.exe" x Qt.7z -oQtStatic -r
+"/Program Files/7-zip/7z.exe" x zlib.zip -ozlib -r
+
set QTDIR=%cd%\QtStatic\Qt5.12.0-static
+set ZLIBINCLUDEDIR=%cd%\zlib\include
+set ZLIBDIR=%cd%\zlib\lib
set PATH=%PATH%;%QTDIR%\bin
call "C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Auxiliary\Build\vcvars64.bat"
@@ -27,12 +32,12 @@ set DEPLOY=%cd%\deploy
echo %~2 > metadata.txt
mkdir %~1
pushd %~1
-qmake ..\theInstaller.pro
+qmake ..\theInstaller.pro "LIBS += -L\"%ZLIBDIR%\"" "INCLUDEPATH += \"%ZLIBINCLUDEDIR%\""
nmake release
copy installer\release\installer.exe %DEPLOY%\%~1.exe
popd
EXIT /B
:buildversions
-CALL :build theSlate "http://vicr123.com/theslate/theinstaller/installer.json"
-CALL :build thePhoto "http://vicr123.com/thephoto/theinstaller/installer.json" \ No newline at end of file
+CALL :build theSlate http://vicr123.com/theslate/theinstaller/installer.json
+CALL :build thePhoto http://vicr123.com/thephoto/theinstaller/installer.json \ No newline at end of file