Skip to content

Commit acea754

Browse files
Murilo MarinhoMurilo Marinho
Murilo Marinho
authored and
Murilo Marinho
committed
Testing out pyinstaller.
Having trouble with the images not showing on the compiled app. Possible reference for when I have more time: https://www.generacodice.com/en/articolo/4535226/pyinstaller-won-t-load-the-pyqt-s-images-to-the-gui Created the spec file with pyinstaller installer.py --hiddenimport=numpy --onefile --windowed
1 parent 86bc4f5 commit acea754

File tree

2 files changed

+57
-0
lines changed

2 files changed

+57
-0
lines changed

installer.py

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
import multiprocessing
2+
from umirobot import umirobot_communication_loop
3+
from umirobot.gui import UMIRobotMainWindow
4+
5+
if __name__ == '__main__':
6+
multiprocessing.freeze_support()
7+
umirobot_communication_loop(UMIRobotMainWindow.run)

installer.spec

+50
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
# -*- mode: python ; coding: utf-8 -*-
2+
3+
4+
block_cipher = None
5+
6+
7+
a = Analysis(
8+
['installer.py'],
9+
pathex=[],
10+
binaries=[],
11+
datas=[],
12+
hiddenimports=['numpy'],
13+
hookspath=[],
14+
hooksconfig={},
15+
runtime_hooks=[],
16+
excludes=[],
17+
win_no_prefer_redirects=False,
18+
win_private_assemblies=False,
19+
cipher=block_cipher,
20+
noarchive=False,
21+
)
22+
pyz = PYZ(a.pure, a.zipped_data, cipher=block_cipher)
23+
24+
exe = EXE(
25+
pyz,
26+
a.scripts,
27+
a.binaries,
28+
a.zipfiles,
29+
a.datas,
30+
[],
31+
name='UMIRobotGUI',
32+
debug=False,
33+
bootloader_ignore_signals=False,
34+
strip=False,
35+
upx=True,
36+
upx_exclude=[],
37+
runtime_tmpdir=None,
38+
console=False,
39+
disable_windowed_traceback=False,
40+
argv_emulation=False,
41+
target_arch=None,
42+
codesign_identity=None,
43+
entitlements_file=None,
44+
)
45+
app = BUNDLE(
46+
exe,
47+
name='UMIRobotGUI.app',
48+
icon=None,
49+
bundle_identifier=None,
50+
)

0 commit comments

Comments
 (0)