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

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

@ -96,7 +96,29 @@
</runProgram> </runProgram>
<deleteFile> <deleteFile>
<explanation>Deleting user data</explanation> <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> <progressText>Deleting user data</progressText>
<ruleList> <ruleList>
<compareValues> <compareValues>
@ -304,8 +326,8 @@
</booleanParameter> </booleanParameter>
</parameterList> </parameterList>
</parameterGroup> </parameterGroup>
<labelParameter name="reinstall" description="Re-install current version"> <labelParameter name="reinstall" description="Upgrade current version">
<title>Re-install</title> <title>Upgrade</title>
<explanation></explanation> <explanation></explanation>
<image></image> <image></image>
</labelParameter> </labelParameter>

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

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

Loading…
Cancel
Save