forked from BetaRavener/uPyLoader
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.spec
40 lines (36 loc) · 1.14 KB
/
main.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
# -*- mode: python -*-
block_cipher = None
import os
import ntpath
import PyQt5
import serial
a = Analysis(['main.py'],
pathex=[os.path.join(ntpath.dirname(PyQt5.__file__), 'Qt', 'bin')],
binaries=[],
datas=[],
hiddenimports=[],
hookspath=[],
runtime_hooks=[],
excludes=[],
win_no_prefer_redirects=False,
win_private_assemblies=False,
cipher=block_cipher)
a.datas += [('icons//main.png','icons//main.png','DATA'),
('icons//floppy.png','icons//floppy.png','DATA'),
('icons//refresh.png','icons//refresh.png','DATA'),
('icons//run.png','icons//run.png','DATA'),
('mcu//download.py','mcu//download.py','DATA'),
('mcu//upload.py','mcu//upload.py','DATA')]
pyz = PYZ(a.pure, a.zipped_data,
cipher=block_cipher)
exe = EXE(pyz,
a.scripts,
a.binaries,
a.zipfiles,
a.datas,
name='uPyLoader',
debug=False,
strip=False,
upx=False,
console=False,
icon='icons//main.ico' )