Windows icon fix and change the installer to QT Installer Framework on Windows (#85)
2 files changed, 46 insertions, 0 deletions
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 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<Package>
+ <DisplayName>Nheko</DisplayName>
+ <Description>Desktop client for the Matrix protocol</Description>
+ <Version>__VERSION__</Version>
+ <ReleaseDate>__DATE__</ReleaseDate>
+ <Licenses>
+ <License name="Nheko License - GPLv3" file="license.txt" />
+ </Licenses>
+ <Default>true</Default>
+ <ForcedInstallation>true</ForcedInstallation>
+ <SortingPriority>100</SortingPriority>
+ <Script>installscript.qs</Script>
+</Package>
|