File: Setup-qt4.bat

package info (click to toggle)
kshutdown 3.2-1
  • links: PTS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 1,568 kB
  • ctags: 648
  • sloc: cpp: 5,492; sh: 265; makefile: 7
file content (42 lines) | stat: -rw-r--r-- 988 bytes parent folder | download
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
38
39
40
41
42
call C:\Qt\4.8.5\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

rem cd ..
rem goto skip_normal

: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.2-win32.exe

:skip_normal
copy README.html kshutdown-portable
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.5\bin\QtCore4.dll kshutdown-portable
copy C:\Qt\4.8.5\bin\QtGui4.dll kshutdown-portable

:quit

echo "DONE"