Skip to content

Commit 9116ae3

Browse files
committed
💚 chore: 更新.gitignore并重构打包配置
添加.vscode目录到.gitignore 重命名并更新main.spec为SimpleCutPy.spec,添加pymediainfo依赖 更新readme.md中的打包命令
1 parent 09ef164 commit 9116ae3

File tree

3 files changed

+15
-8
lines changed

3 files changed

+15
-8
lines changed

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,5 @@ build/**
22
dist/**
33
.venv/**
44
.idea/**
5-
**/__pycache__/**
5+
**/__pycache__/**
6+
.vscode/

main.spec renamed to SimpleCutPy.spec

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@
22

33

44
a = Analysis(
5-
['src/main.py'],
5+
['src\\main.py'],
66
pathex=['src', '.venv/Lib/site-packages'],
77
binaries=[],
88
datas=[],
9-
hiddenimports=['wx', 'src'],
9+
hiddenimports=['wx', 'src', 'pymediainfo'],
1010
hookspath=[],
1111
hooksconfig={},
1212
runtime_hooks=[],
@@ -19,20 +19,26 @@ pyz = PYZ(a.pure)
1919
exe = EXE(
2020
pyz,
2121
a.scripts,
22-
a.binaries,
23-
a.datas,
2422
[],
23+
exclude_binaries=True,
2524
name='SimpleCutPy',
2625
debug=False,
2726
bootloader_ignore_signals=False,
2827
strip=False,
2928
upx=True,
30-
upx_exclude=[],
31-
runtime_tmpdir=None,
3229
console=False,
3330
disable_windowed_traceback=False,
3431
argv_emulation=False,
3532
target_arch=None,
3633
codesign_identity=None,
3734
entitlements_file=None,
3835
)
36+
coll = COLLECT(
37+
exe,
38+
a.binaries,
39+
a.datas,
40+
strip=False,
41+
upx=True,
42+
upx_exclude=[],
43+
name='SimpleCutPy',
44+
)

readme.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ SimpleCutPy 使用 wxPython 构建 UI 界面,并通过 UI 界面生成 ffmpeg
3636
## 使用 Pyinstaller 打包 SimpleCutPy
3737

3838
在项目根目录使用如下命令
39-
`pyinstaller main.spec`
39+
`pyinstaller SimpleCutPy.spec`
4040

4141
打包生成的文件会在 `./dist/SimpleCutPy.exe`
4242

0 commit comments

Comments
 (0)