summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristophe Fergeau <cfergeau@redhat.com>2015-10-20 14:35:22 +0300
committerChristophe Fergeau <cfergeau@redhat.com>2015-10-21 18:44:34 +0200
commitfc9e403d7bd83f47fb0ead8c2ecce6733fc13968 (patch)
tree2b1e0017805c69cff809471f876051780f551ba3
parentda84697c07b1b7b9e7344312af701480e50a5f1a (diff)
nsis: Add support for building an oVirt installer
oVirt wants to reuse the SPICE Guest Tools code as a basis for building an installer for the oVirt Guest Tools. This commit renames the install script to win-guest-tools.nsis and add conditionals to build either an installer for SPICE Guest Tools or oVirt Guest Tools. Change-Id: I62e41f3b3bcc5d1975523614897928543c44ba1a Signed-off-by: Christophe Fergeau <cfergeau@redhat.com>
-rw-r--r--README4
-rw-r--r--win-guest-tools.nsis (renamed from spice-guest-tools.nsis)20
2 files changed, 18 insertions, 6 deletions
diff --git a/README b/README
index 856d36a..17365c2 100644
--- a/README
+++ b/README
@@ -8,7 +8,7 @@ started up/picked up correctly by Windows.
This script needs to have the various binaries/drivers it will install
available, they are not included in this archive. The various 'File'
-directives in spice-guest-tools.nsis should give you an idea of the
+directives in win-guest-tools.nsis should give you an idea of the
directory tree the script expects. There are some rough notes about this
in INSTALL as well.
@@ -20,4 +20,4 @@ from http://nsis.sourceforge.net/NSIS_Simple_Service_Plugin . The dll it ships m
NSIS plugin path, for example /usr/share/nsis/Plugins/ on my Fedora machine.
Once this is installed, all that is needed is to run makensis
-./spice-guest-tools.nsi from your Linux box, and magic will happen!
+./win-guest-tools.nsi from your Linux box, and magic will happen!
diff --git a/spice-guest-tools.nsis b/win-guest-tools.nsis
index c7444a4..08e2b58 100644
--- a/spice-guest-tools.nsis
+++ b/win-guest-tools.nsis
@@ -2,10 +2,11 @@
# @configure_input@
# To build an installer from the script you would normally do:
#
-# makensis spice-guest-tools.nsis
+# makensis -D{SPICE,OVIRT} win-guest-tools.nsis
#
-# which will generate the output file 'spice-guest-tools-$VERSION.exe' which is a Windows
-# installer containing your program.
+# which will generate the output file 'spice-guest-tools-$VERSION.exe' or
+# 'ovirt-guest-tools-setup.exe' which are Windows
+# installers containing your program.
#
#
#
@@ -39,12 +40,23 @@ SetCompressor /SOLID lzma
!include "WinVer.nsh"
!include "x64.nsh"
+!ifdef SPICE
!define FILENAME "spice-guest-tools"
!define NAME "SPICE Guest Tools"
!define PUBLISHER "The SPICE Project"
!define REGKEYNAME "SpiceGuestTools"
!define URL "http://spice-space.org"
+!else ifdef OVIRT
+!define FILENAME "ovirt-guest-tools-setup"
+!define NAME "oVirt Guest Tools"
+!define PUBLISHER "The oVirt Project"
+!define REGKEYNAME "oVirtGuestTools"
+!define URL "http://www.ovirt.org/Home"
+!else
+!error "OVIRT or SPICE symbol should passed to makensis with the -D flag"
+!endif
!define VERSION "0.103"
+
Name "${NAME}"
Caption "${NAME} Installer"
OutFile "${FILENAME}-${VERSION}.exe"
@@ -74,7 +86,7 @@ ComponentText "Select which optional components you want to install."
DirText "Please select the installation folder."
-Section "spice-guest-tools"
+Section "install"
SectionIn RO
Call StopServices