aboutsummaryrefslogtreecommitdiff
path: root/appveyor
diff options
context:
space:
mode:
authorVictor Tran <vicr12345@gmail.com>2018-12-19 22:56:36 +1100
committerVictor Tran <vicr12345@gmail.com>2018-12-19 22:56:36 +1100
commit5a0dbb602a2abfc262ba81a80f636ba9cfbcb8c6 (patch)
treefa6c1acaea1cbf39e8a579b62bd5cc220143bfbb /appveyor
parent24607f8f8bd9f1162f4ae22e306e3dcb2706c771 (diff)
downloadtheInstaller-5a0dbb602a2abfc262ba81a80f636ba9cfbcb8c6.tar.gz
theInstaller-5a0dbb602a2abfc262ba81a80f636ba9cfbcb8c6.tar.bz2
theInstaller-5a0dbb602a2abfc262ba81a80f636ba9cfbcb8c6.zip
AppVeyor CI
Diffstat (limited to 'appveyor')
-rw-r--r--appveyor/build.bat30
1 files changed, 30 insertions, 0 deletions
diff --git a/appveyor/build.bat b/appveyor/build.bat
new file mode 100644
index 0000000..0102dc7
--- /dev/null
+++ b/appveyor/build.bat
@@ -0,0 +1,30 @@
+if "%APPVEYOR_REPO_TAG_NAME%"=="continuous" (
+
+ exit 1
+
+)
+
+echo Grabbing Qt 5.12 (Static)
+curl -L http://downloads.sourceforge.net/project/theinstaller/Qt5.12.0-static.7z > Qt.7z
+"/Program Files/7-zip/7z.exe" x Qt.7z -oQtStatic -r
+
+set QTDIR=%cd$\QtStatic\Qt5.12.0-static
+set PATH=%PATH%;%QTDIR%\bin
+call "C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Auxiliary\Build\vcvars64.bat"
+GOTO buildversions
+
+:build
+if not exist "deploy" mkdir deploy
+set DEPLOY=%cd%\deploy
+echo %~2 > metadata.txt
+mkdir %~1
+pushd %~1
+qmake ..\theInstaller.pro
+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