-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.spec
84 lines (78 loc) · 1.96 KB
/
build.spec
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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
# -*- mode: python ; coding: utf-8 -*-
import os
import ansible
import site
import pkg_resources
from PyInstaller.utils.hooks import exec_statement
block_cipher = None
certificates = exec_statement("""
import ssl
print(ssl.get_default_verify_paths().cafile)
""").strip().split()
cert_datas = [(f, 'lib') for f in certificates]
a = Analysis(
["entrypoint.py"],
binaries=[],
cipher=block_cipher,
datas=[
(
os.path.join(site.getsitepackages()[0], "ansible"),
"ansible",
),
(
os.path.join(site.getsitepackages()[0], "ansible_collections"),
"ansible_collections",
),
(
os.path.join(site.getsitepackages()[0], "jsonschema_specifications"),
"jsonschema_specifications",
),
(
os.path.join(
site.getsitepackages()[0],
f'mac_maker-{pkg_resources.get_distribution("mac_maker").version}.dist-info',
),
f'mac_maker-{pkg_resources.get_distribution("mac_maker").version}.dist-info',
),
(
"mac_maker",
"mac_maker",
),
] + cert_datas,
excludes=[],
hiddenimports=[
"ansible.cli.galaxy",
"ansible.cli.playbook",
"ansible.utils.display",
"configparser",
"dataclasses",
"distutils.version",
"importlib_resources",
"logging.handlers",
"jinja2",
"pty",
"smtplib",
"xml.dom",
"xml.etree.ElementTree",
],
hookspath=[],
pathex=[],
runtime_hooks=[],
)
pyz = PYZ(a.pure, a.zipped_data, cipher=block_cipher)
exe = EXE(
pyz,
a.binaries,
a.datas,
a.scripts,
a.zipfiles,
debug=False,
bootloader_ignore_signals=False,
bundle_identifier='com.mac_maker',
console=True,
info_plist={
'NSPrincipalClass': 'NSApplication',
'NSAppleScriptEnabled': False,
},
name="mac_maker",
)