chore: .gitignore增加PyInstaller产物,移除已提交的spec
This commit is contained in:
+6
-1
@@ -17,4 +17,9 @@ Thumbs.db
|
|||||||
.obsidian/
|
.obsidian/
|
||||||
|
|
||||||
# Flask
|
# Flask
|
||||||
.playwright-mcp/
|
.playwright-mcp/
|
||||||
|
|
||||||
|
# PyInstaller 打包产物
|
||||||
|
dist/
|
||||||
|
build/
|
||||||
|
*.spec
|
||||||
@@ -1,45 +0,0 @@
|
|||||||
# -*- mode: python ; coding: utf-8 -*-
|
|
||||||
from PyInstaller.utils.hooks import collect_all
|
|
||||||
|
|
||||||
datas = [('web/templates', 'templates'), ('web/static', 'static')]
|
|
||||||
binaries = []
|
|
||||||
hiddenimports = ['skimage', 'scipy.ndimage', 'matplotlib.backends.backend_agg']
|
|
||||||
tmp_ret = collect_all('skimage')
|
|
||||||
datas += tmp_ret[0]; binaries += tmp_ret[1]; hiddenimports += tmp_ret[2]
|
|
||||||
|
|
||||||
|
|
||||||
a = Analysis(
|
|
||||||
['web\\launcher.py'],
|
|
||||||
pathex=[],
|
|
||||||
binaries=binaries,
|
|
||||||
datas=datas,
|
|
||||||
hiddenimports=hiddenimports,
|
|
||||||
hookspath=[],
|
|
||||||
hooksconfig={},
|
|
||||||
runtime_hooks=[],
|
|
||||||
excludes=[],
|
|
||||||
noarchive=False,
|
|
||||||
optimize=0,
|
|
||||||
)
|
|
||||||
pyz = PYZ(a.pure)
|
|
||||||
|
|
||||||
exe = EXE(
|
|
||||||
pyz,
|
|
||||||
a.scripts,
|
|
||||||
a.binaries,
|
|
||||||
a.datas,
|
|
||||||
[],
|
|
||||||
name='cDNA_Analyzer',
|
|
||||||
debug=False,
|
|
||||||
bootloader_ignore_signals=False,
|
|
||||||
strip=False,
|
|
||||||
upx=True,
|
|
||||||
upx_exclude=[],
|
|
||||||
runtime_tmpdir=None,
|
|
||||||
console=False,
|
|
||||||
disable_windowed_traceback=False,
|
|
||||||
argv_emulation=False,
|
|
||||||
target_arch=None,
|
|
||||||
codesign_identity=None,
|
|
||||||
entitlements_file=None,
|
|
||||||
)
|
|
||||||
Reference in New Issue
Block a user