Fixing windows bugs. Trying to fix some more.
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
fda467e355
commit
ebeb86f994
4 changed files with 7 additions and 4 deletions
|
@ -181,15 +181,16 @@ def run():
|
||||||
engine.addImportPath(path.realpath(path.join(getcwd(), "qml")))
|
engine.addImportPath(path.realpath(path.join(getcwd(), "qml")))
|
||||||
engine.load(path.realpath(path.join(getcwd(), "qml", "eu", "ad5001", "LogarithmPlotter", "LogarithmPlotter.qml")))
|
engine.load(path.realpath(path.join(getcwd(), "qml", "eu", "ad5001", "LogarithmPlotter", "LogarithmPlotter.qml")))
|
||||||
|
|
||||||
|
if not engine.rootObjects():
|
||||||
|
print("No root object", path.realpath(path.join(getcwd(), "qml")))
|
||||||
|
print(path.realpath(path.join(getcwd(), "qml", "eu", "ad5001", "LogarithmPlotter", "LogarithmPlotter.qml")))
|
||||||
|
exit(-1)
|
||||||
|
|
||||||
chdir(pwd)
|
chdir(pwd)
|
||||||
if len(argv) > 0 and path.exists(argv[-1]) and argv[-1].split('.')[-1] in ['lpf']:
|
if len(argv) > 0 and path.exists(argv[-1]) and argv[-1].split('.')[-1] in ['lpf']:
|
||||||
engine.rootObjects()[0].loadDiagram(argv[-1])
|
engine.rootObjects()[0].loadDiagram(argv[-1])
|
||||||
chdir(path.dirname(path.realpath(__file__)))
|
chdir(path.dirname(path.realpath(__file__)))
|
||||||
|
|
||||||
if not engine.rootObjects():
|
|
||||||
print("No root object")
|
|
||||||
exit(-1)
|
|
||||||
|
|
||||||
if platform == "darwin":
|
if platform == "darwin":
|
||||||
macOSFileOpenHandler.init_graphics(engine.rootObjects()[0])
|
macOSFileOpenHandler.init_graphics(engine.rootObjects()[0])
|
||||||
|
|
||||||
|
|
|
@ -4,3 +4,4 @@ XCOPY LICENSE.md dist\logarithmplotter /C /D /Y
|
||||||
rem Creating installer
|
rem Creating installer
|
||||||
cd dist\logarithmplotter
|
cd dist\logarithmplotter
|
||||||
"C:\Program Files (x86)\NSIS\makensis" installer.nsi
|
"C:\Program Files (x86)\NSIS\makensis" installer.nsi
|
||||||
|
cd ..\..
|
||||||
|
|
Binary file not shown.
Before Width: | Height: | Size: 201 KiB After Width: | Height: | Size: 151 KiB |
|
@ -56,6 +56,7 @@ VIAddVersionKey "FileVersion" "${APP_VERSION}"
|
||||||
|
|
||||||
;Icons
|
;Icons
|
||||||
Icon "logarithmplotter.ico"
|
Icon "logarithmplotter.ico"
|
||||||
|
!define MUI_ICON "logarithmplotter.ico"
|
||||||
;!define MUI_HEADERIMAGE
|
;!define MUI_HEADERIMAGE
|
||||||
;!define MUI_HEADERIMAGE_BITMAP "logarithmplotter.bmp"
|
;!define MUI_HEADERIMAGE_BITMAP "logarithmplotter.bmp"
|
||||||
!define MUI_WELCOMEFINISHPAGE_BITMAP "inst_banner.bmp"
|
!define MUI_WELCOMEFINISHPAGE_BITMAP "inst_banner.bmp"
|
||||||
|
|
Loading…
Reference in a new issue