This repository has been archived by the owner on Jul 30, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyinstaller-darwin.spec
62 lines (56 loc) · 2.69 KB
/
pyinstaller-darwin.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
# -*- mode: python -*-
# =============================================================================
# @file pyinstaller-darwin.spec
# @brief Spec file for PyInstaller for macOS
# @author Michael Hucka
# @license Please see the file named LICENSE in the project directory
# @website https://github.com/caltechlibrary/lostit
# =============================================================================
import imp
import os
import sys
# The list must contain tuples: ('file', 'destination directory').
data_files = [ ('lostit/lostit.ini', 'lostit'),
('lostit/data/client_secrets.json', 'lostit/data'),
('lostit/data/help.html', 'lostit/data') ]
configuration = Analysis(['lostit/__main__.py'],
pathex = ['.'],
binaries = [],
datas = data_files,
hiddenimports = ['apiclient', 'keyring.backends',
'keyring.backends.OS_X', 'wx._html',
'wx._xml'],
hookspath = [],
runtime_hooks = [],
# For reasons I can't figure out, PyInstaller tries
# to load these even though they're never imported
# by the Lostit code. Have to exclude them manually.
excludes = ['PyQt4', 'PyQt5', 'gtk', 'matplotlib',
'numpy'],
win_no_prefer_redirects = False,
win_private_assemblies = False,
cipher = None,
)
application_pyz = PYZ(configuration.pure,
configuration.zipped_data,
cipher = None,
)
executable = EXE(application_pyz,
configuration.scripts,
configuration.binaries,
configuration.zipfiles,
configuration.datas,
name = 'lostit',
debug = False,
strip = False,
upx = True,
runtime_tmpdir = None,
console = False,
)
app = BUNDLE(executable,
name = 'LostIt.app',
icon = 'dev/icons/generated-icons/lostit-icon-512px.icns',
bundle_identifier = None,
info_plist = {'NSHighResolutionCapable': 'True',
'NSAppleScriptEnabled': False},
)