forked from Yodamt/BiliBiliHelper
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Make.py
44 lines (43 loc) · 1.46 KB
/
Make.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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
import os
import platform
f = open("BiliBiliHelper.spec","w")
f.write("# -*- mode: python -*-\n")
f.write("\n")
f.write("import sys\n")
f.write("sys.path.append(\"Src\")\n")
f.write("\n")
f.write("block_cipher = None")
f.write("\n")
f.write("\n")
f.write("\n")
f.write("a = Analysis(['main.py'],\n")
if platform.system().lower() != "windows":
f.write(" pathex=['%s'],\n"%os.getcwd())
else:
f.write(" pathex=[r'%s'],\n"%os.getcwd())
f.write(" binaries=[],\n")
f.write(" datas=[],\n")
f.write(" hiddenimports=[],\n")
f.write(" hookspath=[],\n")
f.write(" runtime_hooks=[],\n")
f.write(" excludes=[],\n")
f.write(" win_no_prefer_redirects=False,\n")
f.write(" win_private_assemblies=False,\n")
f.write(" cipher=block_cipher,\n")
f.write(" noarchive=False)\n")
f.write("pyz = PYZ(a.pure, a.zipped_data,\n")
f.write(" cipher=block_cipher)\n")
f.write("exe = EXE(pyz,\n")
f.write(" a.scripts,\n")
f.write(" a.binaries,\n")
f.write(" a.zipfiles,\n")
f.write(" a.datas,\n")
f.write(" [],\n")
f.write(" name=\'BiliBiliHelper\',\n")
f.write(" debug=False,\n")
f.write(" bootloader_ignore_signals=False,\n")
f.write(" strip=False,\n")
f.write(" upx=True,\n")
f.write(" runtime_tmpdir=None,\n")
f.write(" console=True )")
f.close()