cutter/build.bat

29 lines
714 B
Batchfile
Raw Normal View History

2018-01-03 18:46:30 +00:00
@ECHO off
SETLOCAL ENABLEDELAYEDEXPANSION
2018-03-12 07:15:31 +00:00
FOR /F %%i in ('powershell -c "\"%Platform%\".toLower()"') DO SET PLATFORM=%%i
IF "%PLATFORM%" == "x64" (
2018-01-03 18:46:30 +00:00
SET MSBUILDPLATFORM=x64
SET BITS=64
) ELSE (
SET MSBUILDPLATFORM=Win32
SET BITS=32
)
2018-01-03 18:46:30 +00:00
ECHO Preparing directory
RMDIR /S /Q build%BITS%
MKDIR build%BITS%
CD build%BITS%
2018-01-03 18:46:30 +00:00
ECHO Building cutter
2018-03-20 20:44:00 +00:00
qmake %* ..\src\cutter.pro -config release -tp vc
IF !ERRORLEVEL! NEQ 0 EXIT /B 1
msbuild /m cutter.vcxproj /p:Configuration=Release;Platform=%MSBUILDPLATFORM%
IF !ERRORLEVEL! NEQ 0 EXIT /B 1
2018-01-03 18:46:30 +00:00
ECHO Deploying cutter
MKDIR cutter
MOVE release\cutter.exe cutter\cutter.exe
XCOPY /S ..\dist%BITS% cutter\
windeployqt cutter\cutter.exe