From 551eda9c52ee55efbf787b70f0ba832f9793d1b7 Mon Sep 17 00:00:00 2001 From: adityapk00 Date: Tue, 30 Oct 2018 22:18:18 -0700 Subject: [PATCH] Windows installer prep --- .gitignore | 1 + src/scripts/windowsinstaller/config/config.xml | 9 +++++++++ .../com.zecqtwallet/meta/installscript.qs | 16 ++++++++++++++++ .../packages/com.zecqtwallet/meta/package.xml | 9 +++++++++ 4 files changed, 35 insertions(+) create mode 100644 src/scripts/windowsinstaller/config/config.xml create mode 100644 src/scripts/windowsinstaller/packages/com.zecqtwallet/meta/installscript.qs create mode 100644 src/scripts/windowsinstaller/packages/com.zecqtwallet/meta/package.xml diff --git a/.gitignore b/.gitignore index 255a00b..6584f61 100644 --- a/.gitignore +++ b/.gitignore @@ -16,6 +16,7 @@ Makefile Makefile.* qrc_application.cpp zec-qt-wallet_plugin_import.cpp +zec-qt-wallet_resource* workspace.code-workspace *.zip *.tar.gz \ No newline at end of file diff --git a/src/scripts/windowsinstaller/config/config.xml b/src/scripts/windowsinstaller/config/config.xml new file mode 100644 index 0000000..daa9e0d --- /dev/null +++ b/src/scripts/windowsinstaller/config/config.xml @@ -0,0 +1,9 @@ + + + zec-qt-wallet + 1.0.0 + zec-qt-wallet Installer + Your vendor + zec-qt-wallet + @ApplicationsDirX64@/zecqtwallet + diff --git a/src/scripts/windowsinstaller/packages/com.zecqtwallet/meta/installscript.qs b/src/scripts/windowsinstaller/packages/com.zecqtwallet/meta/installscript.qs new file mode 100644 index 0000000..e86c5a8 --- /dev/null +++ b/src/scripts/windowsinstaller/packages/com.zecqtwallet/meta/installscript.qs @@ -0,0 +1,16 @@ + +function Component() +{ + // default constructor +} + +Component.prototype.createOperations = function() +{ + // call default implementation to actually install README.txt! + component.createOperations(); + + if (systemInfo.productType === "windows") { + component.addOperation("CreateShortcut", "@TargetDir@/zec-qt-wallet.exe", "@StartMenuDir@/zecqtwallet.lnk", + "workingDirectory=@TargetDir@"); + } +} diff --git a/src/scripts/windowsinstaller/packages/com.zecqtwallet/meta/package.xml b/src/scripts/windowsinstaller/packages/com.zecqtwallet/meta/package.xml new file mode 100644 index 0000000..b9e0ed7 --- /dev/null +++ b/src/scripts/windowsinstaller/packages/com.zecqtwallet/meta/package.xml @@ -0,0 +1,9 @@ + + + zec-qt-wallet + Install this example. + 0.1.0-1 + 2010-09-21 + true + +