forked from GitExl/WhackEd4
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build-release-package.cmd
46 lines (35 loc) · 1.38 KB
/
build-release-package.cmd
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
set app_title=WhackEd4
set app_description=A Windows Dehacked editor.
set app_name=WhackEd4
set app_name_lower=whacked4
set app_version=1.3.0-beta
set app_version_value=1.3.0-beta
set app_version_title="1.3.0 beta"
set build_path=".\build\exe.win-amd64-3.9"
set python_interpreter=py -3
set setup_compiler="C:\Program Files (x86)\Inno Setup 6\ISCC.exe"
set zip=7za
rmdir .\build /S /Q
%python_interpreter% setup.py build
del %build_path%\lib\libcrypto-1_1.dll /S /Q
del %build_path%\lib\libssl-1_1.dll /S /Q
del %build_path%\lib\unicodedata.pyd /S /Q
del %build_path%\lib\wx\_adv.cp39-win_amd64.pyd /S /Q
del %build_path%\lib\wx\_propgrid.cp39-win_amd64.pyd /S /Q
del %build_path%\lib\wx\_richtext.cp39-win_amd64.pyd /S /Q
del %build_path%\lib\wx\wxmsw315u_propgrid_vc140_x64.dll /S /Q
del %build_path%\lib\wx\wxmsw315u_richtext_vc140_x64 /S /Q
del %build_path%\lib\wx\wxmsw315u_stc_vc140_x64.dll /S /Q
del %build_path%\lib\wx\python39.dll /S /Q
rmdir %build_path%\lib\pydoc_data /S /Q
rmdir %build_path%\lib\unittest /S /Q
rmdir %build_path%\lib\xml /S /Q
rmdir %build_path%\lib\wx\py /S /Q
rmdir %build_path%\lib\wx\tools /S /Q
rmdir %build_path%\lib\wx\locale /S /Q
rmdir %build_path%\lib\wx\lib\agw /S /Q
del %app_name_lower%-setup-*.exe /S /Q
%setup_compiler% %app_name_lower%.iss
del %app_name_lower%-*.7z /S /Q
%zip% a %app_name_lower%-%app_version%.7z %build_path%\* -r -mx=9 -ms=on
pause