aboutsummaryrefslogtreecommitdiffstats
path: root/dist
diff options
context:
space:
mode:
authorEike Ziller <eike.ziller@theqtcompany.com>2015-10-09 11:46:14 +0200
committerEike Ziller <eike.ziller@theqtcompany.com>2015-10-09 11:33:21 +0000
commit57ae75061da05b6526987f3f7183ed387a292c97 (patch)
treed2057152d1ae21c34fefd609e50e30d8ae6faacc /dist
parent9a69a05f9b22d6851535e02c8db47f3a1c4ea4ea (diff)
Allow packaging additional 7zips in the installer
Change-Id: I435602671ef5cde46580d4ca383930951765ebde Reviewed-by: Kai Koehne <kai.koehne@theqtcompany.com>
Diffstat (limited to 'dist')
-rw-r--r--dist/installer/ifw/packages/org.qtproject.qtcreator.application/meta/installscript.qs9
1 files changed, 9 insertions, 0 deletions
diff --git a/dist/installer/ifw/packages/org.qtproject.qtcreator.application/meta/installscript.qs b/dist/installer/ifw/packages/org.qtproject.qtcreator.application/meta/installscript.qs
index 6f9d59dcec..e78f3f6dac 100644
--- a/dist/installer/ifw/packages/org.qtproject.qtcreator.application/meta/installscript.qs
+++ b/dist/installer/ifw/packages/org.qtproject.qtcreator.application/meta/installscript.qs
@@ -47,6 +47,15 @@ Component.prototype.loaded = function()
}
}
+Component.prototype.createOperationsForArchive = function(archive)
+{
+ // if there are additional plugin 7zips, these must be extracted in .app/Contents on OS X
+ if (systemInfo.productType !== "osx" || archive.indexOf('qtcreator.7z') !== -1)
+ component.addOperation("Extract", archive, "@TargetDir@");
+ else
+ component.addOperation("Extract", archive, "@TargetDir@/Qt Creator.app/Contents");
+}
+
Component.prototype.beginInstallation = function()
{
component.qtCreatorBinaryPath = installer.value("TargetDir");