jamulus/windows/deploy_windows.bat
2014-01-02 10:11:35 +00:00

36 lines
1.1 KiB
Batchfile
Executable File

@echo off
rem settings and check ---------------------------------------------------------
set NSIS_PATH=%PROGRAMFILES%\NSIS
if "%VSINSTALLDIR%" == "" goto vsenvproblem
rem create visual studio project file ------------------------------------------
cd ..
set QMAKESPEC=win32-msvc2010
qmake -tp vc
rem TODO Qt 5.2 qmake inserts a line in the project file which does not compile on msvc2010
rem -> as a workaround we remove that line here
copy Jamulus.vcxproj JamulusUnmod.vcxproj
type JamulusUnmod.vcxproj | findstr /v "<DebugInformationFormat>None</DebugInformationFormat>" > Jamulus.vcxproj
rem clean and compile solution -------------------------------------------------
vcexpress Jamulus.vcxproj /clean "Release|Win32"
vcexpress Jamulus.vcxproj /build "Release|Win32"
rem create installer -----------------------------------------------------------
cd windows
"%NSIS_PATH%\makensis.exe" installer.nsi
move Jamulusinstaller.exe ../deploy/Jamulus-version-installer.exe
goto endofskript
:vsenvproblem
echo Use the Visual Studio Command Prompt to call this skript
:endofskript