aboutsummaryrefslogtreecommitdiffstats
path: root/tests/manual
diff options
context:
space:
mode:
authorJake Petroules <jake.petroules@petroules.com>2013-10-21 16:43:46 -0400
committerJoerg Bornemann <joerg.bornemann@digia.com>2013-10-23 11:17:08 +0200
commit3f0aeb76451682cdc1bd0569611b2ba7f45dcf9e (patch)
tree7f331f0c85455b09daaf76da4291ce004555485c /tests/manual
parent3dc1ae22c8943128f2f142b08ce6645718eea35c (diff)
Add support for building NSIS setup packages.
Task-number: QBS-16 Task-number: QBS-414 Change-Id: I79eae2a04a238c00e89cdd368230a3a60fedccb7 Reviewed-by: Leena Miettinen <riitta-leena.miettinen@digia.com> Reviewed-by: Denis Shienkov <denis.shienkov@gmail.com> Reviewed-by: Joerg Bornemann <joerg.bornemann@digia.com>
Diffstat (limited to 'tests/manual')
-rwxr-xr-xtests/manual/nsis/hello.bat1
-rwxr-xr-xtests/manual/nsis/hello.nsi17
-rwxr-xr-xtests/manual/nsis/hello.qbs9
3 files changed, 27 insertions, 0 deletions
diff --git a/tests/manual/nsis/hello.bat b/tests/manual/nsis/hello.bat
new file mode 100755
index 000000000..3af583cd8
--- /dev/null
+++ b/tests/manual/nsis/hello.bat
@@ -0,0 +1 @@
+echo Hello world!
diff --git a/tests/manual/nsis/hello.nsi b/tests/manual/nsis/hello.nsi
new file mode 100755
index 000000000..bee6f20c8
--- /dev/null
+++ b/tests/manual/nsis/hello.nsi
@@ -0,0 +1,17 @@
+!ifdef Win64
+ Name "Qbs Hello - ${qbs.architecture} (64-bit)"
+!else
+ Name "Qbs Hello - ${qbs.architecture} (32-bit)"
+!endif
+
+OutFile "you-should-not-see-a-file-with-this-name.exe"
+InstallDir "$DESKTOP\Qbs Hello"
+RequestExecutionLevel user
+
+Page directory
+Page instfiles
+
+Section ""
+ SetOutPath "$INSTDIR"
+ File "${batchFile}"
+SectionEnd
diff --git a/tests/manual/nsis/hello.qbs b/tests/manual/nsis/hello.qbs
new file mode 100755
index 000000000..36b9b2636
--- /dev/null
+++ b/tests/manual/nsis/hello.qbs
@@ -0,0 +1,9 @@
+import qbs
+
+NSISSetup {
+ name: "Qbs Hello"
+ targetName: "qbs-hello-" + qbs.architecture
+ files: ["hello.nsi", "hello.bat"]
+ nsis.defines: ["batchFile=hello.bat"]
+ nsis.compression: "lzma-solid"
+}