Permalink
Browse files

Update installer for Windows and add README.md

  • Loading branch information...
cbrnr committed Mar 9, 2017
1 parent ed6edaa commit 0cda1323651658bd340e86221c21808f98f2cd2c
View
@@ -1,6 +0,0 @@
Shows how to add an entry to the Windows start menu.
Generate installer with
binarycreator --offline-only -c config/config.xml -p packages installer
View
@@ -0,0 +1,11 @@
Install the [Qt Installer Framework](https://download.qt.io/official_releases/qt-installer-framework/) and make sure its bin folder is added to the path.
The `sigviewer.exe` binary needs to be present in `$sigviewer/bin/release` - if not, build it. Open a command prompt, change into `$sigviewer/bin/release` and type:
windeployqt sigviewer.exe
Next, move the contents of the `$sigviewer/bin/release` folder into `$sigviewer/deploy/windows/packages/org.sigviewer.sigviewer/data`. Furthermore, copy the file `$sigviewer/src/images/sigviewer.ico` to this folder.
Finally, change into `$sigviewer/deploy/windows` in the command prompt and type:
binarycreator --offline-only -c config/config.xml -p packages sigviewer
@@ -12,7 +12,6 @@ Component.prototype.createOperations = function()
if (systemInfo.productType === "windows") {
component.addOperation("CreateShortcut", "@TargetDir@/sigviewer.exe", "@StartMenuDir@/SigViewer.lnk",
"workingDirectory=@TargetDir@", "iconPath=%SystemRoot%/system32/SHELL32.dll",
"iconId=2");
"workingDirectory=@TargetDir@", "iconPath=@TargetDir@/sigviewer.ico");
}
}
@@ -1,13 +0,0 @@
TEMPLATE = aux
INSTALLER = installer
INPUT = $$PWD/config/config.xml $$PWD/packages
example.input = INPUT
example.output = $$INSTALLER
example.commands = ../../bin/binarycreator -c $$PWD/config/config.xml -p $$PWD/packages ${QMAKE_FILE_OUT}
example.CONFIG += target_predeps no_link combine
QMAKE_EXTRA_COMPILERS += example
OTHER_FILES = README

0 comments on commit 0cda132

Please sign in to comment.