-
Notifications
You must be signed in to change notification settings - Fork 21
/
linux-x86-Oe2sSLE_GUI.spec
executable file
·47 lines (37 loc) · 1.25 KB
/
linux-x86-Oe2sSLE_GUI.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
# -*- mode: python -*-
from importlib.machinery import SourceFileLoader
version = SourceFileLoader("module.name", os.path.abspath(".")+os.sep+"version.py").load_module()
Oe2sSLE_VERSION = version.Oe2sSLE_VERSION
def resource_path(relative_path):
""" Get absolute path to resource, works for dev and for PyInstaller """
try:
# PyInstaller creates a temp folder and stores path in _MEIPASS
base_path = sys._MEIPASS
except Exception:
base_path = os.path.abspath(".")
return os.path.join(base_path, relative_path)
block_cipher = None
added_files = [
( 'images','images'),
]
a = Analysis(['Oe2sSLE_GUI.py'],
pathex=['.'],
binaries=None,
datas=added_files,
hiddenimports=[],
hookspath=[],
runtime_hooks=[],
excludes=[],
cipher=block_cipher)
pyz = PYZ(a.pure, a.zipped_data,
cipher=block_cipher)
exe = EXE(pyz,
a.scripts,
a.binaries,
a.zipfiles,
a.datas,
name='Oe2sSLE-'+str(Oe2sSLE_VERSION[0])+'.'+str(Oe2sSLE_VERSION[1])+'.'+str(Oe2sSLE_VERSION[2])+'-linux-x86',
debug=False,
strip=False,
upx=True,
console=False )