1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37
|
call C:\Qt\4.8.1\bin\qtvars.bat
cd src
rem goto skip_portable
rem portable version
echo DEFINES += KS_PORTABLE>portable.pri
qmake -config release
mingw32-make.exe clean
mingw32-make.exe
if not %errorlevel% == 0 goto quit
mkdir ..\kshutdown-portable
copy release\kshutdown-qt.exe ..\kshutdown-portable\kshutdown.exe
del portable.pri
:skip_portable
rem normal version
qmake -config release
mingw32-make.exe clean
mingw32-make.exe
if not %errorlevel% == 0 goto quit
cd ..
"C:\Program Files\NSIS\makensis.exe" kshutdown.nsi
if not %errorlevel% == 0 goto quit
kshutdown-3.0beta4-win32.exe
copy C:\mingw\bin\libgcc_s_dw2-1.dll kshutdown-portable
copy C:\mingw\bin\libstdc++-6.dll kshutdown-portable
copy C:\mingw\bin\mingwm10.dll kshutdown-portable
copy C:\Qt\4.8.1\bin\QtCore4.dll kshutdown-portable
copy C:\Qt\4.8.1\bin\QtGui4.dll kshutdown-portable
:quit
echo "DONE"
|