-
Notifications
You must be signed in to change notification settings - Fork 79
/
accesser.spec
46 lines (42 loc) · 1.36 KB
/
accesser.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
# -*- mode: python -*-
import os, tld, importlib, importlib.metadata
from packaging.requirements import Requirement
from PyInstaller.utils.hooks import copy_metadata
block_cipher = None
datas=[
('accesser/config.toml', 'accesser'),
('accesser/rules.toml', 'accesser'),
('accesser/pac', 'accesser'),
(os.path.dirname(tld.__file__)+'/res/effective_tld_names.dat.txt', 'tld/res'),
]
for req in importlib.metadata.requires('dnspython'):
package_name = Requirement(req).name
if importlib.util.find_spec(package_name) is not None:
datas += copy_metadata(package_name, recursive=True)
a = Analysis(['accesser/__main__.py'],
pathex=['./'],
binaries=[],
datas=datas,
hiddenimports=[],
hookspath=[],
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,
a.binaries,
a.zipfiles,
a.datas,
[],
name='accesser',
debug=False,
bootloader_ignore_signals=False,
strip=False,
upx=True,
runtime_tmpdir=None,
console=True )