-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDualCameraApp.spec
More file actions
executable file
·58 lines (54 loc) · 1.44 KB
/
Copy pathDualCameraApp.spec
File metadata and controls
executable file
·58 lines (54 loc) · 1.44 KB
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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
# -*- mode: python ; coding: utf-8 -*-
# --- 1. 定义正确的运行时DLL路径 ---
# 根据官方说明,这个路径在 "Common Files" 文件夹下。
# 假设你的软件名称是 "MVS" (通常是这样)。
# 假设你的Python是64位的,所以我们使用 Win64_x64。
# 注意:路径中的斜杠,使用'/'可以避免转义问题。
MVCAM_RUNTIME_DLL_PATH = 'C:/Program Files (x86)/Common Files/MVS/Runtime/Win64_x64'
block_cipher = None
a = Analysis(
['MultipleCameras.py'],
pathex=[],
binaries=[],
# --- 2. 在datas中包含正确的运行时DLL ---
datas=[
(MVCAM_RUNTIME_DLL_PATH, './')
],
hiddenimports=['platform'],
hookspath=[],
hooksconfig={},
runtime_hooks=[],
excludes=[],
win_no_prefer_redirects=False,
win_private_assemblies=False,
cipher=block_cipher,
noarchive=False,
)
pyz = PYZ(a.pure, a.zipped_data, cipher=block_cipher)
exe = EXE(
pyz,
a.scripts,
[],
exclude_binaries=True,
name='DualCameraApp',
debug=False,
bootloader_ignore_signals=False,
strip=False,
upx=True,
console=False,
disable_windowed_traceback=False,
target_arch=None,
codesign_identity=None,
entitlements_file=None,
icon='logo.ico',
)
coll = COLLECT(
exe,
a.binaries,
a.zipfiles,
a.datas,
strip=False,
upx=True,
upx_exclude=[],
name='DualCameraApp',
)