mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-03-22 06:45:37 +08:00
389 lines
16 KiB
XML
389 lines
16 KiB
XML
<project>
|
|
<shortName>swift</shortName>
|
|
<fullName>swift</fullName>
|
|
<version></version>
|
|
|
|
<!-- <version>0.7.0</version> -->
|
|
<licenseFile>../../dist/bin/LICENSE</licenseFile>
|
|
<htmlLicenseFile>../../dist/bin/LICENSE.html</htmlLicenseFile>
|
|
<leftImage>../images/leftimage.png</leftImage>
|
|
<logoImage>../images/logo.png</logoImage>
|
|
<splashImage>../images/splashscreen.png</splashImage>
|
|
<wmImage>../images/logo.png</wmImage>
|
|
<componentList>
|
|
<include>
|
|
<file>swift.xml</file>
|
|
</include>
|
|
<include>
|
|
<file>qt5-binaries.xml</file>
|
|
</include>
|
|
<include>
|
|
<file>vcredist-x86.xml</file>
|
|
</include>
|
|
<include>
|
|
<file>vcredist-x64.xml</file>
|
|
</include>
|
|
<include>
|
|
<file>csl2xsb.xml</file>
|
|
</include>
|
|
</componentList>
|
|
<functionDefinitionList>
|
|
<actionDefinition>
|
|
<name>checkForRunningSwift</name>
|
|
<actionList>
|
|
<showProgressDialog>
|
|
<title>Waiting for swift to be closed</title>
|
|
<actionList>
|
|
<while>
|
|
<progressText>It seems that some swift application is still in use.
|
|
It must be closed before the installation can proceed</progressText>
|
|
<actionList>
|
|
<wait><ms>50</ms></wait>
|
|
</actionList>
|
|
<conditionRuleList>
|
|
<ruleGroup>
|
|
<ruleEvaluationLogic>or</ruleEvaluationLogic>
|
|
<ruleList>
|
|
<processTest>
|
|
<logic>is_running</logic>
|
|
<name>swiftcore.exe</name>
|
|
</processTest>
|
|
<processTest>
|
|
<logic>is_running</logic>
|
|
<name>swiftguistd.exe</name>
|
|
</processTest>
|
|
<processTest>
|
|
<logic>is_running</logic>
|
|
<name>swiftlauncher.exe</name>
|
|
</processTest>
|
|
<processTest>
|
|
<logic>is_running</logic>
|
|
<name>swiftdata.exe</name>
|
|
</processTest>
|
|
</ruleList>
|
|
</ruleGroup>
|
|
<platformTest>
|
|
<type>windows</type>
|
|
</platformTest>
|
|
</conditionRuleList>
|
|
</while>
|
|
</actionList>
|
|
</showProgressDialog>
|
|
</actionList>
|
|
</actionDefinition>
|
|
<actionDefinition>
|
|
<name>killDBusDaemon</name>
|
|
<actionList>
|
|
<kill>
|
|
<name>dbus-daemon.exe</name>
|
|
<ruleList>
|
|
<processTest>
|
|
<logic>is_running</logic>
|
|
<name>dbus-daemon.exe</name>
|
|
</processTest>
|
|
<platformTest>
|
|
<type>windows</type>
|
|
</platformTest>
|
|
</ruleList>
|
|
</kill>
|
|
</actionList>
|
|
</actionDefinition>
|
|
</functionDefinitionList>
|
|
<preInstallationActionList>
|
|
<checkForRunningSwift />
|
|
<killDBusDaemon />
|
|
<!-- TODO Linux/MacOS: Save and load last install dir -->
|
|
<setInstallerVariable>
|
|
<name>installBaseDir</name>
|
|
<value>${platform_install_prefix}</value>
|
|
</setInstallerVariable>
|
|
<actionGroup>
|
|
<actionList>
|
|
<readFile>
|
|
<name>installBaseDir</name>
|
|
<path>${windows_folder_local_appdata}/org.swift-project/lastinstallpath-${architecture}bit.txt</path>
|
|
</readFile>
|
|
<setInstallerVariableFromRegEx>
|
|
<name>installBaseDir</name>
|
|
<pattern>^(.*)[\\\/](.*?)$</pattern>
|
|
<substitution>\1</substitution>
|
|
<text>${installBaseDir}</text>
|
|
</setInstallerVariableFromRegEx>
|
|
</actionList>
|
|
<ruleList>
|
|
<platformTest>
|
|
<type>windows</type>
|
|
</platformTest>
|
|
<fileTest>
|
|
<condition>readable</condition>
|
|
<path>${windows_folder_local_appdata}/org.swift-project/lastinstallpath-${architecture}bit.txt</path>
|
|
</fileTest>
|
|
</ruleList>
|
|
</actionGroup>
|
|
<setInstallerVariable>
|
|
<name>installdir</name>
|
|
<value>${installBaseDir}/${project.shortName}-${project.version}-${architecture}bit</value>
|
|
<ruleList>
|
|
<platformTest>
|
|
<type>windows</type>
|
|
</platformTest>
|
|
</ruleList>
|
|
</setInstallerVariable>
|
|
</preInstallationActionList>
|
|
<postInstallationActionList>
|
|
<runProgram>
|
|
<program>osascript</program>
|
|
<programArguments>-l AppleScript ${installdir}/bin/create_dbus_machineid.scpt</programArguments>
|
|
<ruleList>
|
|
<platformTest>
|
|
<type>osx</type>
|
|
</platformTest>
|
|
</ruleList>
|
|
</runProgram>
|
|
<createDirectory>
|
|
<path>${user_home_directory}/Library/LaunchAgents</path>
|
|
<ruleList>
|
|
<platformTest>
|
|
<type>osx</type>
|
|
</platformTest>
|
|
</ruleList>
|
|
</createDirectory>
|
|
<writeFile>
|
|
<path>${user_home_directory}/Library/LaunchAgents/org.freedesktop.dbus-session.plist</path>
|
|
<encoding>utf-8</encoding>
|
|
<text><![CDATA[
|
|
<?xml version="1.0" encoding="UTF-8"?>
|
|
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
|
<plist version="1.0">
|
|
<dict>
|
|
<key>Label</key>
|
|
<string>org.freedesktop.dbus-session.plist</string>
|
|
|
|
<key>ProgramArguments</key>
|
|
<array>
|
|
<string>${installdir}/bin/dbus-daemon</string>
|
|
<string>--nofork</string>
|
|
<string>--config-file=${installdir}/share/dbus-1/session.conf</string>
|
|
</array>
|
|
|
|
<key>Sockets</key>
|
|
<dict>
|
|
<key>unix_domain_listener</key>
|
|
<dict>
|
|
<key>SecureSocketWithKey</key>
|
|
<string>DBUS_LAUNCHD_SESSION_BUS_SOCKET</string>
|
|
</dict>
|
|
</dict>
|
|
</dict>
|
|
</plist>]]></text>
|
|
<ruleList>
|
|
<platformTest>
|
|
<type>osx</type>
|
|
</platformTest>
|
|
</ruleList>
|
|
</writeFile>
|
|
<runProgram>
|
|
<program>launchctl</program>
|
|
<programArguments>load -w ${user_home_directory}/Library/LaunchAgents/org.freedesktop.dbus-session.plist</programArguments>
|
|
<ruleList>
|
|
<platformTest>
|
|
<type>osx</type>
|
|
</platformTest>
|
|
</ruleList>
|
|
</runProgram>
|
|
<createDirectory>
|
|
<path>${windows_folder_local_appdata}/org.swift-project</path>
|
|
<ruleList>
|
|
<platformTest>
|
|
<type>windows</type>
|
|
</platformTest>
|
|
</ruleList>
|
|
</createDirectory>
|
|
<writeFile>
|
|
<path>${windows_folder_local_appdata}/org.swift-project/lastinstallpath-${architecture}bit.txt</path>
|
|
<text>${installdir}</text>
|
|
<ruleList>
|
|
<platformTest>
|
|
<type>windows</type>
|
|
</platformTest>
|
|
</ruleList>
|
|
</writeFile>
|
|
<writeFile>
|
|
<explanation>Create readme</explanation>
|
|
<path>${installdir}/readme.txt</path>
|
|
<show>0</show>
|
|
<text>swift pilot client version ${versionFull}
|
|
|
|
https://swift-project.org/</text>
|
|
</writeFile>
|
|
<addFilesToUninstaller>
|
|
<files>${installdir}/readme.txt</files>
|
|
<show>0</show>
|
|
</addFilesToUninstaller>
|
|
<runProgram>
|
|
<program>${installdir}/bin/swiftlauncher</program>
|
|
<programArguments>-i --bootstrapurl https://datastore.swift-project.org/shared/ &</programArguments>
|
|
<progressText>Run swift launcher wizard</progressText>
|
|
<ruleList>
|
|
<platformTest>
|
|
<negate>1</negate>
|
|
<type>osx</type>
|
|
</platformTest>
|
|
<isFalse value="${skipwizard}" />
|
|
</ruleList>
|
|
</runProgram>
|
|
<runProgram>
|
|
<program>open</program>
|
|
<programArguments>${Installdir}/bin/swiftlauncher.app --args -i --bootstrapurl https://datastore.swift-project.org/shared/ &</programArguments>
|
|
<progressText>Run swift launcher wizard</progressText>
|
|
<ruleList>
|
|
<platformTest>
|
|
<type>osx</type>
|
|
</platformTest>
|
|
<isFalse value="${skipwizard}" />
|
|
</ruleList>
|
|
</runProgram>
|
|
</postInstallationActionList>
|
|
<preUninstallationActionList>
|
|
<checkForRunningSwift />
|
|
<killDBusDaemon />
|
|
<runProgram>
|
|
<program>launchctl</program>
|
|
<programArguments>remove org.freedesktop.dbus-session.plist</programArguments>
|
|
<runAs>${env(USER)}</runAs>
|
|
<ruleList>
|
|
<platformTest>
|
|
<type>osx</type>
|
|
</platformTest>
|
|
</ruleList>
|
|
</runProgram>
|
|
<deleteFile>
|
|
<path>${user_home_directory}/Library/LaunchAgents/org.freedesktop.dbus-session.plist</path>
|
|
<ruleList>
|
|
<platformTest>
|
|
<type>osx</type>
|
|
</platformTest>
|
|
</ruleList>
|
|
</deleteFile>
|
|
<deleteFile>
|
|
<path>${installdir}/share/dbus-1/machine-id</path>
|
|
<ruleList>
|
|
<platformTest>
|
|
<type>osx</type>
|
|
</platformTest>
|
|
</ruleList>
|
|
</deleteFile>
|
|
</preUninstallationActionList>
|
|
<allowComponentSelection>1</allowComponentSelection>
|
|
<compressionAlgorithm>lzma</compressionAlgorithm>
|
|
|
|
<!-- Generate a DMG for MacOS 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>../images/swiftinstaller.icns</osxApplicationBundleIcon>
|
|
<osxApplicationBundleIdentifier>org.swift-project.macinstaller</osxApplicationBundleIdentifier>
|
|
<!-- Create 64bit installers -->
|
|
<osxPlatforms>osx-x86_64</osxPlatforms>
|
|
<osxUninstallerApplicationBundleIcon>../images/swiftinstaller.icns</osxUninstallerApplicationBundleIcon>
|
|
<outputDirectory>.</outputDirectory>
|
|
<productDisplayIcon>${installdir}/share/icons/swiftinstaller.ico</productDisplayIcon>
|
|
<productDisplayName>${product_fullname} ${project.version} (${architecture}bit)</productDisplayName>
|
|
<requestedExecutionLevel>highestAvailable</requestedExecutionLevel>
|
|
<saveRelativePaths>1</saveRelativePaths>
|
|
<startMenuGroupName>swift ${project.version} (${architecture}bit)</startMenuGroupName>
|
|
<vendor>swift Project</vendor>
|
|
<windowsExecutableIcon>../images/swiftinstaller.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>
|
|
<!-- <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>
|
|
<htmlFile>../../dist/bin/LICENSE.html</htmlFile>
|
|
</licenseFile>
|
|
</licenseFileList>
|
|
<parameterList>
|
|
<parameterGroup>
|
|
<name>install</name>
|
|
<title>Installation</title>
|
|
<parameterList>
|
|
<directoryParameter>
|
|
<name>installdir</name>
|
|
<description>Installer.Parameter.installdir.description</description>
|
|
<explanation>Installer.Parameter.installdir.explanation</explanation>
|
|
<value></value>
|
|
<default>${platform_install_prefix}/${project.shortName}-${project.version}-${architecture}bit</default>
|
|
<allowEmptyValue>0</allowEmptyValue>
|
|
<cliOptionName>prefix</cliOptionName>
|
|
<mustBeWritable>yes</mustBeWritable>
|
|
<mustExist>0</mustExist>
|
|
<width>40</width>
|
|
</directoryParameter>
|
|
<stringParameter name="versionFull" value="" ask="0">
|
|
<default></default>
|
|
<allowEmptyValue>1</allowEmptyValue>
|
|
</stringParameter>
|
|
<stringParameter name="architecture" value="64" ask="0">
|
|
<description></description>
|
|
<explanation></explanation>
|
|
<default></default>
|
|
<allowEmptyValue>1</allowEmptyValue>
|
|
<width>40</width>
|
|
</stringParameter>
|
|
<booleanParameterGroup>
|
|
<name>advanced</name>
|
|
<title>Advanced options</title>
|
|
<description>Enable advanced options</description>
|
|
<parameterList>
|
|
<booleanParameter>
|
|
<name>skipwizard</name>
|
|
<description>Don't run configuration wizard (swift must be configured manually!)</description>
|
|
<displayStyle>checkbox-left</displayStyle>
|
|
<value>0</value>
|
|
</booleanParameter>
|
|
</parameterList>
|
|
</booleanParameterGroup>
|
|
</parameterList>
|
|
</parameterGroup>
|
|
</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>
|
|
|