mirror of https://github.com/lukechilds/Agama.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
322 lines
14 KiB
322 lines
14 KiB
<project>
|
|
<shortName>AgamaApp</shortName>
|
|
<fullName>Agama</fullName>
|
|
<version>${PKG_VERSION}</version>
|
|
<licenseFile>../LICENSE</licenseFile>
|
|
<leftImage>../assets/installer_imgs/Agama_installer_wizard_image.png</leftImage>
|
|
<logoImage>../assets/installer_imgs/supernet-agama-logo.png</logoImage>
|
|
<splashImage>../assets/installer_imgs/Agama_installer_splash_image.png</splashImage>
|
|
<allowLanguageSelection>1</allowLanguageSelection>
|
|
<componentList>
|
|
<component>
|
|
<name>default</name>
|
|
<description>${project.shortName}</description>
|
|
<canBeEdited>0</canBeEdited>
|
|
<detailedDescription>All application files. Required size: ${project.component(default).requiredSize} KB</detailedDescription>
|
|
<selected>1</selected>
|
|
<show>1</show>
|
|
<folderList>
|
|
<folder>
|
|
<description>Program Files</description>
|
|
<destination>${installdir}</destination>
|
|
<name>programfiles</name>
|
|
<platforms>all</platforms>
|
|
</folder>
|
|
<folder>
|
|
<description>Program Files</description>
|
|
<destination>${installdir}</destination>
|
|
<name>programfileslinux</name>
|
|
<platforms>linux</platforms>
|
|
</folder>
|
|
<folder>
|
|
<description>Program Files</description>
|
|
<destination>${windows_folder_program_files}</destination>
|
|
<name>programfileswindows</name>
|
|
<platforms>windows</platforms>
|
|
</folder>
|
|
<folder>
|
|
<description>Program Files</description>
|
|
<destination>/Applications</destination>
|
|
<name>programfilesosx</name>
|
|
<platforms>osx</platforms>
|
|
<distributionFileList>
|
|
<distributionFile>
|
|
<origin>../build/Agama-darwin-x64/Agama.app</origin>
|
|
</distributionFile>
|
|
</distributionFileList>
|
|
</folder>
|
|
</folderList>
|
|
</component>
|
|
</componentList>
|
|
<preInstallationActionList>
|
|
<setInstallerVariable>
|
|
<name>previous_installation_exists</name>
|
|
<value>1</value>
|
|
<ruleList>
|
|
<fileTest condition="exists" path="/etc/${project.vendor}-${project.shortName}.ini"/>
|
|
</ruleList>
|
|
</setInstallerVariable>
|
|
|
|
<!-- Retreive values about previous installer so we can uninstall it -->
|
|
<foreach>
|
|
<values>version oldVersion installdir oldInstalldir</values>
|
|
<variables>name variable</variables>
|
|
<actionList>
|
|
<setInstallerVariable name="${variable}" value=""/>
|
|
<iniFileGet>
|
|
<file>/etc/${project.vendor}-${project.shortName}.ini</file>
|
|
<key>${name}</key>
|
|
<section>details</section>
|
|
<variable>${variable}</variable>
|
|
<ruleList>
|
|
<compareValues>
|
|
<logic>equals</logic>
|
|
<value1>${previous_installation_exists}</value1>
|
|
<value2>1</value2>
|
|
</compareValues>
|
|
</ruleList>
|
|
</iniFileGet>
|
|
</actionList>
|
|
<ruleList>
|
|
<platformTest negate="1" type="windows"/>
|
|
</ruleList>
|
|
</foreach>
|
|
</preInstallationActionList>
|
|
<readyToInstallActionList>
|
|
<runProgram>
|
|
<program>open</program>
|
|
<programArguments>-W ${oldInstalldir}/Agama.app/${uninstallerName}.app</programArguments>
|
|
<ruleList>
|
|
<compareValues>
|
|
<logic>equals</logic>
|
|
<value1>${previous_installation_exists}</value1>
|
|
<value2>1</value2>
|
|
</compareValues>
|
|
</ruleList>
|
|
</runProgram>
|
|
<deleteFile>
|
|
<explanation>Deleting user data</explanation>
|
|
<path>${user_home_directory}/Library/Application Support/Iguana</path>
|
|
<progressText>Deleting user data</progressText>
|
|
<ruleList>
|
|
<compareValues>
|
|
<logic>equals</logic>
|
|
<value1>${previous_installation_exists}</value1>
|
|
<value2>1</value2>
|
|
</compareValues>
|
|
<compareValues>
|
|
<logic>equals</logic>
|
|
<value1>${installation_type}</value1>
|
|
<value2>uninstall</value2>
|
|
</compareValues>
|
|
<compareValues>
|
|
<logic>equals</logic>
|
|
<value1>${delete_user_data}</value1>
|
|
<value2>1</value2>
|
|
</compareValues>
|
|
</ruleList>
|
|
</deleteFile>
|
|
<deleteFile>
|
|
<explanation>Deleting iguana config json</explanation>
|
|
<path>${user_home_directory}/Library/Application Support/Iguana/config.json</path>
|
|
<progressText>Deleting iguana config</progressText>
|
|
<ruleList>
|
|
<compareValues>
|
|
<logic>equals</logic>
|
|
<value1>${previous_installation_exists}</value1>
|
|
<value2>1</value2>
|
|
</compareValues>
|
|
<compareValues>
|
|
<logic>equals</logic>
|
|
<value1>${installation_type}</value1>
|
|
<value2>uninstall</value2>
|
|
</compareValues>
|
|
<compareValues>
|
|
<logic>equals</logic>
|
|
<value1>${delete_config_data}</value1>
|
|
<value2>1</value2>
|
|
</compareValues>
|
|
</ruleList>
|
|
</deleteFile>
|
|
<exit>
|
|
<explanation>Uninstalled</explanation>
|
|
<progressText>Uninstalled</progressText>
|
|
<ruleList>
|
|
<compareValues>
|
|
<logic>equals</logic>
|
|
<value1>${previous_installation_exists}</value1>
|
|
<value2>1</value2>
|
|
</compareValues>
|
|
<compareValues>
|
|
<logic>equals</logic>
|
|
<value1>${installation_type}</value1>
|
|
<value2>uninstall</value2>
|
|
</compareValues>
|
|
</ruleList>
|
|
</exit>
|
|
<createDirectory>
|
|
<abortOnError>0</abortOnError>
|
|
<explanation>Creating ZcashParam directory</explanation>
|
|
<path>${user_home_directory}/Library/Application Support/ZcashParams/</path>
|
|
<progressText>Creating ZcashParam directory</progressText>
|
|
<showMessageOnError>0</showMessageOnError>
|
|
</createDirectory>
|
|
<showProgressDialog>
|
|
<abortOnError>0</abortOnError>
|
|
<explanation>Zcash Params file: sprout-proving.key</explanation>
|
|
<progressText>Zcash Params file: sprout-proving.key</progressText>
|
|
<showMessageOnError>0</showMessageOnError>
|
|
<title>Downloading Zcash Params file</title>
|
|
<actionList>
|
|
<httpGet>
|
|
<abortOnError>0</abortOnError>
|
|
<explanation>Zcash Params file: sprout-proving.key</explanation>
|
|
<filename>${user_home_directory}/Library/Application Support/ZcashParams/sprout-proving.key</filename>
|
|
<progressText>Zcash Params file: sprout-proving.key</progressText>
|
|
<showMessageOnError>0</showMessageOnError>
|
|
<url>https://z.cash/downloads/sprout-proving.key</url>
|
|
</httpGet>
|
|
</actionList>
|
|
<ruleList>
|
|
<fileExists>
|
|
<negate>1</negate>
|
|
<path>${user_home_directory}/Library/Application Support/ZcashParams/sprout-proving.key</path>
|
|
</fileExists>
|
|
</ruleList>
|
|
</showProgressDialog>
|
|
<showProgressDialog>
|
|
<abortOnError>0</abortOnError>
|
|
<explanation>Zcash Params file: sprout-verifying.key</explanation>
|
|
<progressText>Zcash Params file: sprout-verifying.key</progressText>
|
|
<title>Downloading Zcash Params files</title>
|
|
<actionList>
|
|
<httpGet>
|
|
<abortOnError>0</abortOnError>
|
|
<explanation>Zcash Params file: sprout-verifying.key</explanation>
|
|
<filename>${user_home_directory}/Library/Application Support/ZcashParams/sprout-verifying.key</filename>
|
|
<progressText>Zcash Params file: sprout-verifying.key</progressText>
|
|
<showMessageOnError>0</showMessageOnError>
|
|
<url>https://z.cash/downloads/sprout-verifying.key</url>
|
|
</httpGet>
|
|
</actionList>
|
|
<ruleList>
|
|
<fileExists>
|
|
<negate>1</negate>
|
|
<path>${user_home_directory}/Library/Application Support/ZcashParams/sprout-verifying.key</path>
|
|
</fileExists>
|
|
</ruleList>
|
|
</showProgressDialog>
|
|
<changePermissions>
|
|
<files>${user_home_directory}/Library/Application Support/ZcashParams</files>
|
|
<permissions>777</permissions>
|
|
</changePermissions>
|
|
<changePermissions>
|
|
<files>${user_home_directory}/Library/Application Support/ZcashParams/*</files>
|
|
<permissions>666</permissions>
|
|
</changePermissions>
|
|
</readyToInstallActionList>
|
|
<postInstallationActionList>
|
|
<!-- Store values of current installer in etc folder so we can find for uninstal -->
|
|
<foreach>
|
|
<values>version "${project.version}" installdir "${installdir}"</values>
|
|
<variables>name variable</variables>
|
|
<actionList>
|
|
<iniFileSet>
|
|
<file>/etc/${project.vendor}-${project.shortName}.ini</file>
|
|
<key>${name}</key>
|
|
<section>details</section>
|
|
<value>${variable}</value>
|
|
</iniFileSet>
|
|
</actionList>
|
|
<ruleList>
|
|
<platformTest negate="1" type="windows"/>
|
|
</ruleList>
|
|
</foreach>
|
|
<addFilesToUninstaller files="/etc/${project.vendor}-${project.shortName}.ini"/>
|
|
</postInstallationActionList>
|
|
<compressionAlgorithm>lzham-ultra</compressionAlgorithm>
|
|
<enableRollback>0</enableRollback>
|
|
<enableSslSupport>1</enableSslSupport>
|
|
<enableTimestamp>1</enableTimestamp>
|
|
<requireInstallationByRootUser>1</requireInstallationByRootUser>
|
|
<saveRelativePaths>1</saveRelativePaths>
|
|
<uninstallerDirectory>${installdir}/Agama.app/</uninstallerDirectory>
|
|
<uninstallerName>Uninstall-Agama</uninstallerName>
|
|
<vendor>SuperNETOrg</vendor>
|
|
<finalPageActionList>
|
|
<runProgram>
|
|
<program>open</program>
|
|
<programArguments>/Applications/Agama.app</programArguments>
|
|
<progressText>Do you want to launch ${project.fullName} now?</progressText>
|
|
<runAs>$USER</runAs>
|
|
</runProgram>
|
|
</finalPageActionList>
|
|
<parameterList>
|
|
<directoryParameter>
|
|
<name>installdir</name>
|
|
<description>Installer.Parameter.installdir.description</description>
|
|
<explanation>Installer.Parameter.installdir.explanation</explanation>
|
|
<value></value>
|
|
<default>/Applications</default>
|
|
<allowEmptyValue>0</allowEmptyValue>
|
|
<cliOptionName>prefix</cliOptionName>
|
|
<mustBeWritable>1</mustBeWritable>
|
|
<mustExist>0</mustExist>
|
|
<width>30</width>
|
|
<validationActionList>
|
|
<throwError>
|
|
<text>You don't have enough disk space to install the application,
|
|
please select another installation directory</text>
|
|
<ruleList>
|
|
<checkFreeDiskSpace>
|
|
<logic>less</logic>
|
|
<path>${installdir}</path>
|
|
<size>${required_diskspace}</size>
|
|
</checkFreeDiskSpace>
|
|
</ruleList>
|
|
</throwError>
|
|
</validationActionList>
|
|
</directoryParameter>
|
|
<choiceParameterGroup>
|
|
<name>installation_type</name>
|
|
<title>Instalation type</title>
|
|
<description>Existing instalation is detected</description>
|
|
<explanation>Existing instalation is detected</explanation>
|
|
<value>uninstall</value>
|
|
<default>uninstall</default>
|
|
<parameterList>
|
|
<parameterGroup>
|
|
<name>uninstall</name>
|
|
<title>Uninstall</title>
|
|
<explanation>Uninstall</explanation>
|
|
<value></value>
|
|
<default></default>
|
|
<parameterList>
|
|
<booleanParameter name="delete_user_data" description="Delete user data" displayStyle="checkbox-left">
|
|
<explanation></explanation>
|
|
<value>0</value>
|
|
<default>0</default>
|
|
</booleanParameter>
|
|
<booleanParameter name="delete_zcash_params" description="Delete Zcash params" displayStyle="checkbox-left">
|
|
<explanation></explanation>
|
|
<value>0</value>
|
|
<default>0</default>
|
|
</booleanParameter>
|
|
</parameterList>
|
|
</parameterGroup>
|
|
<labelParameter name="reinstall" description="Re-install current version">
|
|
<title>Re-install</title>
|
|
<explanation></explanation>
|
|
<image></image>
|
|
</labelParameter>
|
|
</parameterList>
|
|
<ruleList>
|
|
<compareValues>
|
|
<logic>equals</logic>
|
|
<value1>${previous_installation_exists}</value1>
|
|
<value2>1</value2>
|
|
</compareValues>
|
|
</ruleList>
|
|
</choiceParameterGroup>
|
|
</parameterList>
|
|
</project>
|
|
|