From 4ba1f2ea837f46607ec1738496ca546babd6b207 Mon Sep 17 00:00:00 2001 From: Marcel Date: Mon, 6 Nov 2017 16:17:21 +0100 Subject: Windows icon fix and change the installer to QT Installer Framework on Windows (#85) --- deploy/installer/gui/installscript.qs | 32 ++++++++++++++++++++++++++++++++ deploy/installer/gui/package.xml | 14 ++++++++++++++ 2 files changed, 46 insertions(+) create mode 100644 deploy/installer/gui/installscript.qs create mode 100644 deploy/installer/gui/package.xml (limited to 'deploy/installer/gui') diff --git a/deploy/installer/gui/installscript.qs b/deploy/installer/gui/installscript.qs new file mode 100644 index 00000000..4cfa284f --- /dev/null +++ b/deploy/installer/gui/installscript.qs @@ -0,0 +1,32 @@ +function Component() +{ +} + +Component.prototype.createOperations = function() +{ + component.createOperations(); + + try + { + if( installer.value("os") === "win" ) + { + /** + * Start Menu Shortcut + */ + component.addOperation( "CreateShortcut", "@TargetDir@\\nheko.exe", "@StartMenuDir@\\nheko.lnk", + "workingDirectory=@TargetDir@", "iconPath=@TargetDir@\\nheko.exe", + "iconId=0", "description=Desktop client for the Matrix protocol"); + + /** + * Desktop Shortcut + */ + component.addOperation( "CreateShortcut", "@TargetDir@\\nheko.exe", "@DesktopDir@\\nheko.lnk", + "workingDirectory=@TargetDir@", "iconPath=@TargetDir@\\nheko.exe", + "iconId=0", "description=Desktop client for the Matrix protocol"); + } + } + catch( e ) + { + print( e ); + } +} diff --git a/deploy/installer/gui/package.xml b/deploy/installer/gui/package.xml new file mode 100644 index 00000000..c28b7e60 --- /dev/null +++ b/deploy/installer/gui/package.xml @@ -0,0 +1,14 @@ + + + Nheko + Desktop client for the Matrix protocol + __VERSION__ + __DATE__ + + + + true + true + 100 + + -- cgit 1.4.1