Browse Source

Merge pull request #78 from pedjaman/master

Installers: All: Option re-install renamed to Upgrade
all-modes
Satinder Grewal 8 years ago
committed by GitHub
parent
commit
ab13d2395e
  1. 64
      assets/BitRock Installer Files/IgaunaApp-Linux.xml
  2. 28
      assets/BitRock Installer Files/IgaunaApp-OSX.xml
  3. 26
      assets/BitRock Installer Files/IgaunaApp-Win.xml

64
assets/BitRock Installer Files/IgaunaApp-Linux.xml

@ -110,11 +110,22 @@
</component>
</componentList>
<preInstallationActionList>
<setInstallerVariableFromScriptOutput>
<exec>xdg-user-dir</exec>
<execArgs>DESKTOP</execArgs>
<name>desktopDir</name>
<ruleList>
<programTest>
<condition>is_in_path</condition>
<name>xdg-user-dir</name>
</programTest>
</ruleList>
</setInstallerVariableFromScriptOutput>
<setInstallerVariable>
<name>previous_installation_exists</name>
<value>1</value>
<ruleList>
<fileTest condition="exists" path="/etc/${project.vendor}-${project.shortName}.ini"/>
<fileTest condition="exists" path="${user_home_directory}/.${project.vendor}-${project.shortName}.ini"/>
</ruleList>
</setInstallerVariable>
@ -125,7 +136,7 @@
<actionList>
<setInstallerVariable name="${variable}" value=""/>
<iniFileGet>
<file>/etc/${project.vendor}-${project.shortName}.ini</file>
<file>${user_home_directory}/.${project.vendor}-${project.shortName}.ini</file>
<key>${name}</key>
<section>details</section>
<variable>${variable}</variable>
@ -177,6 +188,28 @@
</compareValues>
</ruleList>
</deleteFile>
<deleteFile>
<explanation>Deleting user data</explanation>
<path>${user_home_directory}/.config/Agama</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 zcash params</explanation>
<path>${user_home_directory}/.zcash-params</path>
@ -279,23 +312,18 @@
<postInstallationActionList>
<createSymLink>
<abortOnError>0</abortOnError>
<linkName>/bin/Agama</linkName>
<linkName>${user_home_directory}/bin/Agama</linkName>
<target>${installdir}/Agama</target>
</createSymLink>
<iniFileSet>
<file>${user_home_directory}/Desktop/Agama Desktop.desktop</file>
<file>${desktopDir}/Agama Desktop.desktop</file>
<key>Categories</key>
<section>Desktop Entry</section>
<value>Office;</value>
</iniFileSet>
<changeOwnerAndGroup>
<files>${user_home_directory}/Desktop/Agama Desktop.desktop</files>
<group>users</group>
<owner>nobody</owner>
</changeOwnerAndGroup>
<copyFile>
<destination>/usr/share/applications/Agama Desktop.desktop</destination>
<origin>${user_home_directory}/Desktop/Agama Desktop.desktop</origin>
<destination>${user_home_directory}/.local/share/applications/Agama Desktop.desktop</destination>
<origin>${desktopDir}/Agama Desktop.desktop</origin>
</copyFile>
<!-- Store values of current installer in etc folder so we can find for uninstal -->
@ -304,7 +332,7 @@
<variables>name variable</variables>
<actionList>
<iniFileSet>
<file>/etc/${project.vendor}-${project.shortName}.ini</file>
<file>${user_home_directory}/.${project.vendor}-${project.shortName}.ini</file>
<key>${name}</key>
<section>details</section>
<value>${variable}</value>
@ -314,7 +342,7 @@
<platformTest negate="1" type="windows"/>
</ruleList>
</foreach>
<addFilesToUninstaller files="/etc/${project.vendor}-${project.shortName}.ini"/>
<addFilesToUninstaller files="${user_home_directory}/.${project.vendor}-${project.shortName}.ini"/>
</postInstallationActionList>
<postUninstallationActionList>
<deleteFile>
@ -328,16 +356,14 @@
<enableRollback>0</enableRollback>
<enableSslSupport>1</enableSslSupport>
<enableTimestamp>1</enableTimestamp>
<requireInstallationByRootUser>1</requireInstallationByRootUser>
<saveRelativePaths>1</saveRelativePaths>
<uninstallerName>Uninstall-Agama</uninstallerName>
<vendor>SuperNETOrg</vendor>
<finalPageActionList>
<runProgram>
<program>/bin/Agama</program>
<program>${user_home_directory}/bin/Agama</program>
<programArguments>&amp;</programArguments>
<progressText>Do you want to launch ${project.fullName} now?</progressText>
<runAs>$USER</runAs>
</runProgram>
</finalPageActionList>
<parameterList>
@ -346,7 +372,7 @@
<description>Installer.Parameter.installdir.description</description>
<explanation>Installer.Parameter.installdir.explanation</explanation>
<value></value>
<default>/opt/AgamaApp</default>
<default>${user_home_directory}/.AgamaApp</default>
<allowEmptyValue>0</allowEmptyValue>
<cliOptionName>prefix</cliOptionName>
<mustBeWritable>1</mustBeWritable>
@ -393,8 +419,8 @@
</booleanParameter>
</parameterList>
</parameterGroup>
<labelParameter name="reinstall" description="Re-install current version">
<title>Re-install</title>
<labelParameter name="reinstall" description="Upgrade current version">
<title>Upgrade</title>
<explanation></explanation>
<image></image>
</labelParameter>

28
assets/BitRock Installer Files/IgaunaApp-OSX.xml

@ -96,7 +96,29 @@
</runProgram>
<deleteFile>
<explanation>Deleting user data</explanation>
<path>${user_home_directory}/Library/Application Support/Iguana</path>
<path>${user_home_directory}/Library/Application Support/Agama</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 user data</explanation>
<path>${user_home_directory}/Library/Application Support/iguana</path>
<progressText>Deleting user data</progressText>
<ruleList>
<compareValues>
@ -304,8 +326,8 @@
</booleanParameter>
</parameterList>
</parameterGroup>
<labelParameter name="reinstall" description="Re-install current version">
<title>Re-install</title>
<labelParameter name="reinstall" description="Upgrade current version">
<title>Upgrade</title>
<explanation></explanation>
<image></image>
</labelParameter>

26
assets/BitRock Installer Files/IgaunaApp-Win.xml

@ -217,6 +217,28 @@
</compareValues>
</ruleList>
</deleteFile>
<deleteFile>
<explanation>Deleting user data</explanation>
<path>${windows_folder_appdata}/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 zcash params</explanation>
<path>${windows_folder_appdata}/ZcashParams/</path>
@ -494,8 +516,8 @@
</booleanParameter>
</parameterList>
</parameterGroup>
<labelParameter name="reinstall" description="Re-install current version">
<title>Re-install</title>
<labelParameter name="reinstall" description="Upgrade current version">
<title>Upgrade</title>
<explanation></explanation>
<image></image>
</labelParameter>

Loading…
Cancel
Save