-
Notifications
You must be signed in to change notification settings - Fork 12
/
build.bat
54 lines (44 loc) · 1.43 KB
/
build.bat
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
43
44
45
46
47
48
49
50
51
52
53
@echo off
call _paths.bat
PATH=%QtDir%;%MinGW%;%GitDir%;%PATH%
SET SEVENZIP=C:\Program Files\7-Zip
IF NOT EXIST "%SEVENZIP%\7z.exe" SET SEVENZIP=%ProgramFiles(x86)%\7-Zip
IF NOT EXIST "%SEVENZIP%\7z.exe" SET SEVENZIP=%ProgramFiles%\7-Zip
lrelease FMBankEdit.pro
qmake FMBankEdit.pro CONFIG+=release CONFIG-=debug
IF ERRORLEVEL 1 goto error
mingw32-make -j 4
IF ERRORLEVEL 1 goto error
md opl3-bank-editor
IF NOT -%1-==-win9x- (
cd bin-release
md translations
copy "..\src\translations\*.qm" translations
windeployqt opl3_bank_editor.exe
IF ERRORLEVEL 1 goto error
cd ..
) ELSE (
cd bin-release
md translations
copy "..\src\translations\*.qm" translations
cd ..
)
SET DEST_ARCHIVE=opl3-bank-editor-dev-%WINXX_ARCH%.zip
SET DEPLOY_FILES=.\bin-release\*
IF -%1-==-win9x- (
SET DEPLOY_FILES=%DEPLOY_FILES% .\opl_proxy\win9x\liboplproxy.dll
SET DEST_ARCHIVE=opl3-bank-editor-dev-win9x.zip
) ELSE (
IF -%1-==-win64- (
SET DEPLOY_FILES=%DEPLOY_FILES% .\opl_proxy\modern\liboplproxy64.dll .\opl_proxy\modern\inpoutx64.dll
) ELSE (
SET DEPLOY_FILES=%DEPLOY_FILES% .\opl_proxy\modern\liboplproxy.dll .\opl_proxy\modern\inpout32.dll
)
)
SET DEPLOY_FILES=%DEPLOY_FILES% Bank_Examples
SET DEPLOY_FILES=%DEPLOY_FILES% .\formats_info.htm .\license.txt .\changelog.txt
"%SEVENZIP%\7z" a -tzip "opl3-bank-editor\%DEST_ARCHIVE%" %DEPLOY_FILES%
goto quit
:error
echo ==============BUILD ERRORED!===============
:quit