-
Notifications
You must be signed in to change notification settings - Fork 121
/
build.bat
executable file
·33 lines (27 loc) · 921 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
31
32
33
REM FIXME: apparently, the way we use py2exe it doesn't produce a
REM working executable if source files are in src/. nobody has time
REM to figure out the proper fix, so as a temporary hack we just
REM create a temporary build directory and move everything there.
rd /s /q winbuild
rd /s /q dist
mkdir winbuild\dist
xcopy /i src\* winbuild
xcopy /i nsis.bat winbuild
xcopy /i install.nsi winbuild
xcopy /i icon32.ico winbuild
xcopy /i setup.py winbuild
xcopy /i vcredist_x86.exe winbuild
xcopy /i names.txt.gz winbuild\dist
xcopy /i sample.trelby winbuild\dist
xcopy /i manual.html winbuild\dist
xcopy /i fileformat.txt winbuild\dist
xcopy /i LICENSE winbuild\dist
xcopy /i README winbuild\dist
xcopy /i dict_en.dat.gz winbuild\dist
xcopy /i /y resources winbuild\dist\resources
cd winbuild
python -OO setup.py py2exe
call nsis.bat
move /y setup*.exe ..
move /y dist ..\dist
cd ..