-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathmake_package.bat
38 lines (31 loc) · 1.11 KB
/
make_package.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
@rem cmdline option
@set setupopt=-q
@if "%1" == "-v" set setupopt=-v
@if "%1" == "/v" set setupopt=-v
@echo %setupopt%
@rem Inno setup environment
@set INNO="C:\Program Files (x86)\Inno Setup 5"
rem get suzu version
@for /f usebackq %%i in (`python tools\suzu_version.py`) do (@set SUZUVER=%%i)
@echo VERSION=%SUZUVER%
@rem create .html from README files
rst2html.py README.rst README.html
rst2html.py README-ja.rst README-ja.html
cd suzu\doc
@call make.bat
cd ..\..
@rem create python package
python setup.py %setupopt% sdist --formats=zip
@rem create standalone package using cx_freeze
python setup_cx.py %setupopt% build_exe
python setup_iss.py setup_template.iss setup.iss
%INNO%\iscc.exe setup.iss
@rem web pabe contents
mkdir html
mkdir html\dist
@rem README-ja.html -> index-ja.html
python tools\readme2index.py --ienc=utf-8 --oenc=utf-8 README.html html\index.html
@rem README-ja.html -> index-ja.html
python tools\readme2index.py --ienc=utf-8 --oenc=utf-8 README-ja.html html\index-ja.html
for %%i in (-win32.exe, -win-amd64.exe, .zip) do copy dist\suzu-%SUZUVER%%%i html\dist
:end