Skip to content

Commit 38f1b05

Browse files
committed
新增: add pyinstaller spec file
1 parent 86abd6b commit 38f1b05

File tree

1 file changed

+45
-0
lines changed

1 file changed

+45
-0
lines changed

mb2yt.spec

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
# -*- mode: python ; coding: utf-8 -*-
2+
import os
3+
4+
block_cipher = None
5+
6+
userprofile = os.getenv("USERPROFILE")
7+
8+
a = Analysis(
9+
['main.py'],
10+
pathex=[f"{userprofile}\\.conda\\envs\\pyinstall\\Lib\\site-packages"],
11+
binaries=[],
12+
datas=[('yt.js', '.')],
13+
hiddenimports=[],
14+
hookspath=[],
15+
hooksconfig={},
16+
runtime_hooks=[],
17+
excludes=[],
18+
win_no_prefer_redirects=False,
19+
win_private_assemblies=False,
20+
cipher=block_cipher,
21+
noarchive=False,
22+
)
23+
pyz = PYZ(a.pure, a.zipped_data, cipher=block_cipher)
24+
25+
exe = EXE(
26+
pyz,
27+
a.scripts,
28+
a.binaries,
29+
a.zipfiles,
30+
a.datas,
31+
[],
32+
name='mb2yt',
33+
debug=False,
34+
bootloader_ignore_signals=False,
35+
strip=False,
36+
upx=True,
37+
upx_exclude=[],
38+
runtime_tmpdir=None,
39+
console=True,
40+
disable_windowed_traceback=False,
41+
argv_emulation=False,
42+
target_arch=None,
43+
codesign_identity=None,
44+
entitlements_file=None,
45+
)

0 commit comments

Comments
 (0)