forked from Arelle/Arelle
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuildWinDists.bat
44 lines (35 loc) · 1.27 KB
/
buildWinDists.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
rem Build Arelle GUI using cx_Freeze
rem both win 32 (x86) and win 64 (x64)
@set PYTHON32DIR=c:\python33x86
@set PYTHON64DIR=c:\python33
@set NSISDIR=C:\Program Files (x86)\NSIS
@set BUILT32DIR=build\exe.win32-3.3
@set BUILT64DIR=build\exe.win-amd64-3.3
@set ZIP=c:\progra~1\7-zip\7z.exe
"%PYTHON64DIR%\python" buildVersion.py
rem Rebuild messages.pot internationalization file
"%PYTHON64DIR%\python" pygettext.py -v -o arelle\locale\messages.pot arelle\*.pyw arelle\*.py
pause "Please check the python gettext string conversions"
rem Regenerate messages catalog (doc/messagesCatalog.xml)
"%PYTHON64DIR%\python" generateMessagesCatalog.py
rmdir build /s/q
rmdir dist /s/q
mkdir build
mkdir dist
rem win 32 (x86) build
"%PYTHON32DIR%\python" setup.py build_exe
"%NSISDIR%\makensis" installWin86.nsi
rem rename for build date
call buildRenameX86.bat
rem win 64 build
"%PYTHON64DIR%\python" setup.py build_exe
"%NSISDIR%\makensis" installWin64.nsi
rem rename for build date
call buildRenameX64.bat
rem win 64 zip
cd "%BUILT64DIR%"
"%ZIP%" a -tzip ..\..\dist\arelle-cmd64.zip *
cd ..\..
"%ZIP%" d dist\arelle-cmd64.zip arelleGUI.exe tck85.dll tk85.dll tck tcl tk images scripts doc examples locale MSVCR100.dll QuickBooks.qwc msvcrt.dll msvcp100.dll
call buildRenameZip64.bat
rem rmdir build /s/q