Files
pilotclient/installer/installbuilder/project.xml
Roland Winklmeier 64b52f7026 [Installer] Run swift in background after installation
Summary:
After installation, swiftlauncher is executed in wizard mode. However, installer
kept running in the background until the launcher was closed. Instead,
run swift in background which allows the installer to quit.

Reviewers: kbasan, msutcliffe

Reviewed By: msutcliffe

Differential Revision: https://dev.swift-project.org/D19
2017-05-05 23:08:42 +01:00

156 lines
5.7 KiB
XML

<project>
<shortName>swift</shortName>
<fullName>swift</fullName>
<!-- <version>0.7.0</version> -->
<licenseFile>../../dist/bin/LICENSE</licenseFile>
<leftImage>../images/leftimage.png</leftImage>
<logoImage>../images/logo.png</logoImage>
<splashImage>../images/splashscreen.png</splashImage>
<requireInstallationByRootUser>1</requireInstallationByRootUser>
<componentList>
<include>
<file>swift.xml</file>
</include>
<include>
<file>qt5-binaries.xml</file>
</include>
<include>
<file>autoupdater.xml</file>
</include>
<include>
<file>vcredist.xml</file>
</include>
</componentList>
<postInstallationActionList>
<writeFile>
<path>${installdir}/update.ini</path>
<text>[Update]
url = http://127.0.0.1:8080/update.xml
version_id = 061
update_download_location = ${system_temp_directory}
check_for_updates = 1
</text>
</writeFile>
<createDirectory>
<path>/usr/local/var/lib/dbus</path>
<ruleList>
<platformTest>
<type>osx</type>
</platformTest>
</ruleList>
</createDirectory>
<runProgram>
<program>bin/dbus-uuidgen</program>
<programArguments>--ensure=/usr/local/var/lib/dbus/machine-id</programArguments>
<workingDirectory>${installdir}</workingDirectory>
<ruleList>
<platformTest>
<type>osx</type>
</platformTest>
</ruleList>
</runProgram>
</postInstallationActionList>
<preUninstallationActionList>
<deleteFile>
<path>${installdir}/update.ini</path>
</deleteFile>
</preUninstallationActionList>
<allowComponentSelection>1</allowComponentSelection>
<compressionAlgorithm>lzma</compressionAlgorithm>
<!-- Generate a DMG for OSX Installer -->
<createOsxBundleDmg>1</createOsxBundleDmg>
<!-- <allowedLanguages>en fr es it de ja nl ru zh_CN no pt_BR</allowedLanguages> -->
<enableRollback>0</enableRollback>
<enableTimestamp>1</enableTimestamp>
<!-- <osxApplicationBundleIcon>TODO</osxApplicationBundleIcon>
<wmImage>TODO</wmImage> -->
<osxApplicationBundleIdentifier>org.swift-project.macinstaller</osxApplicationBundleIdentifier>
<outputDirectory>.</outputDirectory>
<productDisplayIcon>../images/icon.ico</productDisplayIcon>
<saveRelativePaths>1</saveRelativePaths>
<vendor>swift Project</vendor>
<windowsExecutableIcon>../images/icon.ico</windowsExecutableIcon>
<!-- <windowsResourceOriginalFilename>TODO</windowsResourceOriginalFilename>
<windowsResourceFileDescription>TODO</windowsResourceFileDescription>
Code signing parameters -->
<windowsSigningTimestampServer>http://timestamp.digicert.com</windowsSigningTimestampServer>
<customLanguageFileList>
<!-- <language>
<code>en</code>
<encoding>utf-8</encoding>
<file>${build_project_directory}/lang/alf-en.po</file>
</language> -->
</customLanguageFileList>
<finalPageActionList>
<runProgram>
<program>${installdir}/bin/swiftlauncher</program>
<programArguments>-i --bootstrapurl https://datastore.swift-project.org/shared/ &amp;</programArguments>
<progressText>Run swift launcher wizard</progressText>
<ruleList>
<platformTest>
<negate>1</negate>
<type>osx</type>
</platformTest>
</ruleList>
</runProgram>
<runProgram>
<program>${Installdir}/bin/swiftlauncher.app/Contents/MacOS/swiftlauncher</program>
<programArguments>-i --bootstrapurl https://datastore.swift-project.org/shared/ &amp;</programArguments>
<progressText>Run swift launcher wizard</progressText>
<ruleList>
<platformTest>
<type>osx</type>
</platformTest>
</ruleList>
</runProgram>
<launchBrowser>
<url>http://www.swift-project.org</url>
<progressText>Visit the swift project page</progressText>
</launchBrowser>
</finalPageActionList>
<licenseFileList>
<licenseFile>
<code>en</code>
<encoding>utf-8</encoding>
<file>../../dist/bin/LICENSE</file>
</licenseFile>
</licenseFileList>
<parameterList>
<directoryParameter>
<name>installdir</name>
<description>Installer.Parameter.installdir.description</description>
<explanation>Installer.Parameter.installdir.explanation</explanation>
<value></value>
<default>${platform_install_prefix}/${product_shortname}-${product_version}</default>
<allowEmptyValue>0</allowEmptyValue>
<cliOptionName>prefix</cliOptionName>
<mustBeWritable>1</mustBeWritable>
<mustExist>0</mustExist>
<width>30</width>
</directoryParameter>
</parameterList>
<platformOptionsList>
<platformOptions>
<height>430</height>
<platform>osx</platform>
</platformOptions>
<platformOptions>
<height>430</height>
<platform>linux</platform>
</platformOptions>
<platformOptions>
<height>430</height>
<platform>linux-x64</platform>
</platformOptions>
<platformOptions>
<height>430</height>
<platform>linux-ia64</platform>
</platformOptions>
</platformOptionsList>
</project>