-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbuild.py
31 lines (26 loc) · 990 Bytes
/
build.py
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
import sys
import os,shutil
from cx_Freeze import setup, Executable
base = None
executables = [Executable(script='misaki.py',
base=base,
targetName="Misaki.exe",
compress=True),]
setup(name='Misaki',
version='1.0',
description='Misaki Broadcast Toolbar',
executables=executables,
options={'build_exe':{'optimize':2}},)
print('===== CLEANING UP =====')
#os.remove('build/exe.win32-3.4/unicodedata.pyd')
# os.remove('build/exe.win32-3.4/_hashlib.pyd')
# os.remove('build/exe.win32-3.4/_elementtree.pyd')
# os.remove('build/exe.win32-3.4/_ssl.pyd')
shutil.rmtree('build/exe.win32-2.7/tcl/tzdata')
shutil.rmtree('build/exe.win32-2.7/tcl/msgs')
shutil.rmtree('build/exe.win32-2.7/tcl/encoding')
shutil.rmtree('build/exe.win32-2.7/tk/demos')
shutil.rmtree('build/exe.win32-2.7/tk/images')
shutil.rmtree('build/exe.win32-2.7/tk/msgs')
os.rename('build/exe.win32-2.7','build/Misaki-exe.win32-2.7')
print('===== DONE =====')