-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathclient.linux.spec
More file actions
56 lines (49 loc) · 2.03 KB
/
client.linux.spec
File metadata and controls
56 lines (49 loc) · 2.03 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
# SPDX-License-Identifier: AGPL-3.0-or-later
# Copyright (C) 2018-2022 Andrew Rechnitzer
# Copyright (C) 2020-2025 Colin B. Macdonald
# Copyright (C) 2024 Bryan Tanady
import re
from pathlib import Path
import spellchecker
# importing gives error: libfontconfig.so.1: cannot open shared object file
# # from plomclient.client import __version__
# so instead we grep it from the code instead..., yuck?
# TODO: perhaps pyproject.toml and related tooling can help here somehow
with open("plomclient/client/__init__.py", "r") as f:
contents = f.read()
(__version__,) = re.findall(r'__version__ = "(.+)"', contents)
block_cipher = None
dict_path = spellchecker.__path__[0] + '/resources'
a = Analysis(['plomclient/client/__main__.py'],
pathex=['./'],
binaries=[(dict_path, 'spellchecker/resources')],
datas=[
('plomclient/client/icons/*.svg', 'plomclient/client/icons'),
('plomclient/client/icons/*.png', 'plomclient/client/icons'),
('plomclient/client/cursors/*.png', 'plomclient/client/cursors'),
('plomclient/client/ui_files/*.ui', 'plomclient/client/ui_files'),
('plomclient/client/help_img/nav*.png', 'plomclient/client/help_img'),
('plomclient/client/help_img/click_drag.gif', 'plomclient/client/help_img'),
('plomclient/client/*keys.toml', 'plomclient/client/'),
],
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='PlomClient-{}-linux.bin'.format(__version__),
debug=False,
strip=False,
onefile=True,
upx=True,
runtime_tmpdir=None,
console=True )