-
Notifications
You must be signed in to change notification settings - Fork 0
/
mindfulness-at-the-computer-linux.spec
44 lines (39 loc) · 1.36 KB
/
mindfulness-at-the-computer-linux.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
# -*- mode: python -*-
block_cipher = None
import os
cwd_str = os.getcwd()
a = Analysis(['mindfulness-at-the-computer.py'],
pathex=[cwd_str],
binaries=[],
datas=[('./README.md', '.'), ('./LICENSE.txt', '.')],
hiddenimports=[],
hookspath=[],
runtime_hooks=[],
excludes=[],
win_no_prefer_redirects=False,
win_private_assemblies=False,
cipher=block_cipher)
# Adding the user_files and icons directories
# Please note that when adding individual files this is done above - inside "Analysis"
user_files_dir_str = "user_files"
a.datas += Tree('./' + user_files_dir_str, prefix=user_files_dir_str, excludes=['*.db'])
# -documentation: https://pythonhosted.org/PyInstaller/advanced-topics.html#the-tree-class
icons_dir_str = "icons"
a.datas += Tree('./' + icons_dir_str, prefix=icons_dir_str)
pyz = PYZ(a.pure, a.zipped_data,
cipher=block_cipher)
exe = EXE(pyz,
a.scripts,
exclude_binaries=True,
name='mindfulness-at-the-computer',
debug=False,
strip=False,
upx=True,
console=True )
coll = COLLECT(exe,
a.binaries,
a.zipfiles,
a.datas,
strip=False,
upx=True,
name='mindfulness-at-the-computer')