-
Notifications
You must be signed in to change notification settings - Fork 0
/
mindfulness-at-the-computer-windows.spec
52 lines (45 loc) · 1.66 KB
/
mindfulness-at-the-computer-windows.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
# -*- mode: python -*-
block_cipher = None
####################################
# PLEASE NOTE: The path for the Qt binaries have been hard-coded
####################################
import os
cwd_str = os.getcwd()
# 'C:\\TordPython\\mindfulness-at-the-computer-master'
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)
win_icon_path_str = '.\\' + icons_dir_str + '\\icon.ico'
pyz = PYZ(a.pure, a.zipped_data,
cipher=block_cipher)
exe = EXE(pyz,
a.scripts,
exclude_binaries=True,
name='mindfulness-at-the-computer',
icon=win_icon_path_str,
debug=False,
strip=False,
upx=True,
console=False )
coll = COLLECT(exe,
a.binaries,
a.zipfiles,
a.datas,
strip=False,
upx=True,
name='mindfulness-at-the-computer')