-
Notifications
You must be signed in to change notification settings - Fork 8
/
build.bat
31 lines (22 loc) · 825 Bytes
/
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
@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
IF ERRORLEVEL 1 goto error
md opn2-bank-editor
cd bin-release
windeployqt opn2_bank_editor.exe
copy "..\src\translations\*.qm" translations
IF ERRORLEVEL 1 goto error
cd ..
"%SEVENZIP%\7z" a -tzip "opn2-bank-editor\opn2-bank-editor-dev-%WINXX_ARCH%.zip" .\license.txt .\changelog.txt .\Specifications\WOPN-and-OPNI-Specification.txt .\Specifications\YM2612.pdf .\bin-release\* Bank_Examples
goto quit
:error
echo ==============BUILD ERRORED!===============
:quit