Skip to content
Snippets Groups Projects
Commit f3d30dfb authored by Eike Ziller's avatar Eike Ziller
Browse files

Fix installation directory and add version to title.


Task-number: QTCREATORBUG-7991

Change-Id: I4874527fc07040dea803bf50e1e4c335d9eb6810
Reviewed-by: default avatarRobert Loehning <robert.loehning@digia.com>
Reviewed-by: default avatarTim Jenssen <tim.jenssen@digia.com>
parent d2a07dfa
No related branches found
No related tags found
No related merge requests found
<?xml version="1.0"?>
<Installer>
<Name>Qt Creator</Name>
<Version>{version}</Version>
<Title>Qt Creator {version}</Title>
<MaintenanceTitle>Qt Creator Maintenance</MaintenanceTitle>
<Publisher>Qt Project</Publisher>
<ProductUrl>http://qt-project.org</ProductUrl>
<Icon>logo.png</Icon>
<Watermark>watermark.png</Watermark>
<UninstallerName>QtCreatorUninstaller</UninstallerName>
<!-- @homeDir@ and @rootDir@ are some of the supported vars -->
<TargetDir>@homeDir@/qtcreator-{version}</TargetDir>
<AdminTargetDir>/opt/qtcreator-{version}</AdminTargetDir>
<Pages>
<Page name="LicenseAgreementPage">
<AcceptLicenseLabel>I have read and understood the terms contained in the above license agreements.</AcceptLicenseLabel>
<RejectLicenseLabel>I do not accept the terms contained in the above license agreements.</RejectLicenseLabel>
</Page>
</Pages>
</Installer>
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
<Installer> <Installer>
<Name>Qt Creator</Name> <Name>Qt Creator</Name>
<Version>{version}</Version> <Version>{version}</Version>
<Title>Qt Creator</Title> <Title>Qt Creator {version}</Title>
<MaintenanceTitle>Qt Creator Maintenance</MaintenanceTitle> <MaintenanceTitle>Qt Creator Maintenance</MaintenanceTitle>
<Publisher>Qt Project</Publisher> <Publisher>Qt Project</Publisher>
<ProductUrl>http://qt-project.org</ProductUrl> <ProductUrl>http://qt-project.org</ProductUrl>
...@@ -11,8 +11,7 @@ ...@@ -11,8 +11,7 @@
<Watermark>watermark.png</Watermark> <Watermark>watermark.png</Watermark>
<UninstallerName>QtCreatorUninstaller</UninstallerName> <UninstallerName>QtCreatorUninstaller</UninstallerName>
<!-- @homeDir@ and @rootDir@ are some of the supported vars --> <!-- @homeDir@ and @rootDir@ are some of the supported vars -->
<TargetDir>@homeDir@/QtCreator</TargetDir> <TargetDir>@rootDir@/QtCreator/qtcreator-{version}</TargetDir>
<AdminTargetDir>/opt/QtCreator</AdminTargetDir>
<Pages> <Pages>
<Page name="LicenseAgreementPage"> <Page name="LicenseAgreementPage">
......
...@@ -86,8 +86,15 @@ def main(): ...@@ -86,8 +86,15 @@ def main():
raise Exception('Archive not specified (--archive)!') raise Exception('Archive not specified (--archive)!')
installer_name = args[0] installer_name = args[0]
config_postfix = ''
if sys.platform == 'darwin': if sys.platform == 'darwin':
installer_name = installer_name + '.dmg' installer_name = installer_name + '.dmg'
if sys.platform.startswith('win'):
config_postfix = '-windows'
if sys.platform.startswith('linux'):
config_postfix = '-linux'
config_name = 'config' + config_postfix + '.xml'
try: try:
temp_dir = tempfile.mkdtemp() temp_dir = tempfile.mkdtemp()
...@@ -121,7 +128,7 @@ def main(): ...@@ -121,7 +128,7 @@ def main():
os.makedirs(data_path) os.makedirs(data_path)
shutil.copy(archive, data_path) shutil.copy(archive, data_path)
ifw_call = [os.path.join(ifw_location, 'bin', 'binarycreator'), '-c', os.path.join(out_config_dir, 'config.xml'), '-p', out_packages_dir, installer_name, '--offline-only' ] ifw_call = [os.path.join(ifw_location, 'bin', 'binarycreator'), '-c', os.path.join(out_config_dir, config_name), '-p', out_packages_dir, installer_name, '--offline-only' ]
subprocess.check_call(ifw_call, stderr=subprocess.STDOUT) subprocess.check_call(ifw_call, stderr=subprocess.STDOUT)
finally: finally:
print 'Cleaning up...' print 'Cleaning up...'
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment