-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.spec
More file actions
50 lines (44 loc) · 1.14 KB
/
main.spec
File metadata and controls
50 lines (44 loc) · 1.14 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
# -*- mode: python ; coding: utf-8 -*-
# region Prepare pyzbar dll paths to add them to binaries.
# NOTE: tried adding 'pyzbar' to hiddenimports. but didn't work for some reason.
from pathlib import Path
import pyzbar
pyzbar_path = Path(pyzbar.__file__).parent
libiconv_dll_path = pyzbar_path / "libiconv.dll"
libzbar_64_dll_path = pyzbar_path / "libzbar-64.dll"
# endregion
a = Analysis(
['src\\main.py'],
pathex=[],
binaries=[(libiconv_dll_path.as_posix(), "pyzbar"), (libzbar_64_dll_path.as_posix(), "pyzbar")],
datas=[('.\\src\\resources\\', 'resources')],
hiddenimports=[],
hookspath=[],
hooksconfig={},
runtime_hooks=[],
excludes=[],
noarchive=False,
optimize=0,
)
pyz = PYZ(a.pure)
exe = EXE(
pyz,
a.scripts,
a.binaries,
a.datas,
[],
name='Paste Bar Code',
icon='src/resources/icon.ico',
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,
)