2013-01-24 10:55:41 +01:00
|
|
|
@echo off
|
|
|
|
|
2016-05-11 17:44:16 +02:00
|
|
|
rem To set up a new Qt and Visual Studio version
|
|
|
|
rem - set environment path variable to the correct Qt bin directory (e.g. 32 bit version)
|
|
|
|
rem - if using Visual Studio Express version, download the redistributable (it is not automatically there)
|
|
|
|
rem - change the Qt distribute dll names in the installer.nsi file (some contain version numbers)
|
|
|
|
|
2013-01-24 10:55:41 +01:00
|
|
|
rem settings and check ---------------------------------------------------------
|
2016-05-11 17:44:16 +02:00
|
|
|
set NSIS_PATH=%PROGRAMFILES(x86)%\NSIS
|
2013-01-24 10:55:41 +01:00
|
|
|
|
|
|
|
if "%VSINSTALLDIR%" == "" goto vsenvproblem
|
|
|
|
|
|
|
|
rem create visual studio project file ------------------------------------------
|
|
|
|
cd ..
|
2018-03-08 18:43:26 +01:00
|
|
|
rem set QMAKESPEC=win32-msvc2015
|
2013-01-24 10:55:41 +01:00
|
|
|
qmake -tp vc
|
|
|
|
|
|
|
|
rem clean and compile solution -------------------------------------------------
|
2018-03-08 18:43:26 +01:00
|
|
|
devenv Jamulus.vcxproj /Clean "Release|x64"
|
|
|
|
devenv Jamulus.vcxproj /Build "Release|x64"
|
2013-01-24 10:55:41 +01:00
|
|
|
|
|
|
|
rem create installer -----------------------------------------------------------
|
|
|
|
cd windows
|
|
|
|
"%NSIS_PATH%\makensis.exe" installer.nsi
|
|
|
|
|
2013-02-19 22:20:15 +01:00
|
|
|
move Jamulusinstaller.exe ../deploy/Jamulus-version-installer.exe
|
2013-01-24 10:55:41 +01:00
|
|
|
|
|
|
|
goto endofskript
|
|
|
|
|
|
|
|
:vsenvproblem
|
|
|
|
echo Use the Visual Studio Command Prompt to call this skript
|
|
|
|
|
|
|
|
:endofskript
|