Fixing issue with opening files on Windows.
continuous-integration/drone/push Build is failing Details

This commit is contained in:
Ad5001 2021-08-26 19:34:12 +02:00
parent 29ecc0585d
commit 3ea75caa41
Signed by: Ad5001
GPG Key ID: EF45F9C6AFE20160
2 changed files with 4 additions and 3 deletions

View File

@ -1,2 +1,3 @@
python -m pip install -U pyinstaller
rem Need pyinstaller >= 4.3, or there is an issue regarding the PATH of the building.
python -m pip install -U pyinstaller>=4.3
pyinstaller --add-data "logplotter.svg;." --add-data "LogarithmPlotter/qml;qml" --noconsole LogarithmPlotter/logarithmplotter.py --icon=win/logarithmplotter.ico -n logarithmplotter

View File

@ -184,8 +184,8 @@ Section ""
; Registering mime type
WriteRegStr HKLM ${REG_LPFCLASS} "" "Logarithm Plot File"
WriteRegStr HKLM "${REG_LPFCLASS}\DefaultIcon" "" "$INSTDIR\logarithmplotter.exe,0" ; I'd like to put the logplotterfile icon, but this seems far too difficult to do.
WriteRegStr HKLM "${REG_LPFCLASS}\shell\open\command" "" "$INSTDIR\logarithmplotter.exe $\"$$1$\""
WriteRegStr HKLM "${REG_LPFCLASS}\shell\edit\command" "" "$INSTDIR\logarithmplotter.exe $\"$$1$\""
WriteRegStr HKLM "${REG_LPFCLASS}\shell\open\command" "" "$INSTDIR\logarithmplotter.exe $\"$%1$\""
WriteRegStr HKLM "${REG_LPFCLASS}\shell\edit\command" "" "$INSTDIR\logarithmplotter.exe $\"$%1$\""
WriteRegStr HKLM ${REG_LPFEXT} "" "${PROG_ID}"
WriteRegStr HKLM ${REG_LPFEXT} "Content Type" "application/x-logarithm-plot"
WriteRegStr HKLM ${REG_LPFEXT} "PerceivedType" "Application"