diff options
| author | 2023-04-30 18:30:36 -0400 | |
|---|---|---|
| committer | 2023-04-30 18:30:36 -0400 | |
| commit | 3565aad630864ecdbe53fdaa501ea708555b3c7c (patch) | |
| tree | c743e4ad0bad39ebdb2f514c7cc52d34a257ebbe /SQLiteStudio-installer.xml | |
| parent | 1fdc150116cad39aae5c5da407c3312b47a59e3a (diff) | |
New upstream version 3.4.4+dfsg.upstream/3.4.4+dfsg
Diffstat (limited to 'SQLiteStudio-installer.xml')
| -rw-r--r-- | SQLiteStudio-installer.xml | 414 |
1 files changed, 414 insertions, 0 deletions
diff --git a/SQLiteStudio-installer.xml b/SQLiteStudio-installer.xml new file mode 100644 index 0000000..609a38f --- /dev/null +++ b/SQLiteStudio-installer.xml @@ -0,0 +1,414 @@ +<project> + <shortName>SQLiteStudio</shortName> + <fullName>SQLiteStudio</fullName> + <version>1</version> + <licenseFile>${src_prefix}/LICENSE</licenseFile> + <wrapLicenseFileText>0</wrapLicenseFileText> + <leftImage>${src_prefix}/SQLiteStudio3/guiSQLiteStudio/img/sqlitestudio_installer.png</leftImage> + <logoImage>${src_prefix}/SQLiteStudio3/guiSQLiteStudio/img/sqlitestudio_48.png</logoImage> + <componentList> + <component> + <name>default</name> + <description>Default Component</description> + <canBeEdited>1</canBeEdited> + <selected>1</selected> + <show>1</show> + <desktopShortcutList> + <shortcut> + <comment></comment> + <exec>sqlitestudio</exec> + <icon></icon> + <name>SQLiteStudio</name> + <path></path> + <platforms>all</platforms> + <runAsAdmin>0</runAsAdmin> + <runInTerminal>0</runInTerminal> + <windowsExec>${installdir}/SQLiteStudio.exe</windowsExec> + <windowsExecArgs></windowsExecArgs> + <windowsIcon></windowsIcon> + <windowsPath></windowsPath> + </shortcut> + </desktopShortcutList> + <folderList> + <folder> + <description>Program Files</description> + <destination>${installdir}</destination> + <name>programfiles</name> + <platforms>all</platforms> + <shortcutList> + <shortcut> + <comment>Uninstall</comment> + <exec>${installdir}/${uninstallerName}</exec> + <icon></icon> + <name>Uninstall ${product_fullname}</name> + <path>${installdir}</path> + <platforms>all</platforms> + <runAsAdmin>0</runAsAdmin> + <runInTerminal>0</runInTerminal> + <windowsExec>${installdir}/${uninstallerName}.exe</windowsExec> + <windowsExecArgs></windowsExecArgs> + <windowsIcon></windowsIcon> + <windowsPath>${installdir}</windowsPath> + </shortcut> + </shortcutList> + </folder> + <folder> + <description>Program Files</description> + <destination>${installdir}</destination> + <name>programfileslinux64</name> + <platforms>linux-x64</platforms> + <distributionFileList> + <distributionFile> + <allowWildcards>1</allowWildcards> + <origin>${bin_prefix}/*</origin> + </distributionFile> + </distributionFileList> + </folder> + <folder> + <description>Program Files</description> + <destination>${installdir}</destination> + <name>programfileslinux32</name> + <platforms>linux</platforms> + <distributionFileList> + <distributionFile> + <allowWildcards>1</allowWildcards> + <origin>${bin_prefix}/*</origin> + </distributionFile> + </distributionFileList> + </folder> + <folder> + <description>Program Files</description> + <destination>${installdir}</destination> + <name>programfileswindows64</name> + <platforms>windows-x64</platforms> + <distributionFileList> + <distributionFile> + <allowWildcards>1</allowWildcards> + <origin>${bin_prefix}/*</origin> + </distributionFile> + </distributionFileList> + </folder> + <folder> + <description>Program Files</description> + <destination>${installdir}</destination> + <name>programfileswindows32</name> + <platforms>windows</platforms> + <distributionFileList> + <distributionFile> + <allowWildcards>1</allowWildcards> + <origin>${bin_prefix}/*</origin> + </distributionFile> + </distributionFileList> + </folder> + <folder> + <description>Program Files</description> + <destination>${installdir}</destination> + <name>programfilesosx</name> + <platforms>osx</platforms> + <distributionFileList> + <distributionFile> + <allowWildcards>1</allowWildcards> + <origin>${bin_prefix}/SQLiteStudio.app</origin> + </distributionFile> + </distributionFileList> + </folder> + </folderList> + <startMenuShortcutList> + <startMenuShortcut> + <comment>Uninstall ${product_fullname}</comment> + <name>Uninstall ${product_fullname}</name> + <runAsAdmin>0</runAsAdmin> + <runInTerminal>0</runInTerminal> + <windowsExec>${installdir}/${uninstallerName}.exe</windowsExec> + <windowsExecArgs></windowsExecArgs> + <windowsIcon></windowsIcon> + <windowsPath>${installdir}/</windowsPath> + </startMenuShortcut> + <startMenuShortcut> + <comment>Run ${product_shortname}</comment> + <name>${product_shortname}</name> + <runAsAdmin>0</runAsAdmin> + <runInTerminal>0</runInTerminal> + <windowsExec>${installdir}/${product_shortname}.exe</windowsExec> + <windowsExecArgs></windowsExecArgs> + <windowsIcon>${installdir}/appicon.ico</windowsIcon> + <windowsPath></windowsPath> + </startMenuShortcut> + </startMenuShortcutList> + </component> + </componentList> + <preBuildActionList> + <setInstallerVariable> + <name>src_prefix</name> + <value>${env(INSTALLER_SRC_PREFIX)}</value> + <ruleList> + <compareText logic="does_not_equal" text="${env(INSTALLER_SRC_PREFIX)}" value=""/> + </ruleList> + </setInstallerVariable> + <setInstallerVariable> + <name>src_prefix</name> + <value>C:/projects/sqlitestudio</value> + <ruleList> + <compareText logic="equals" text="${env(INSTALLER_SRC_PREFIX)}" value=""/> + </ruleList> + </setInstallerVariable> + <setInstallerVariable> + <name>bin_prefix</name> + <value>${env(INSTALLER_BIN_PREFIX)}</value> + <ruleList> + <compareText logic="does_not_equal" text="${env(INSTALLER_BIN_PREFIX)}" value=""/> + </ruleList> + </setInstallerVariable> + <setInstallerVariable> + <name>bin_prefix</name> + <value>C:/projects/sqlitestudio/output/SQLiteStudio</value> + <ruleList> + <compareText logic="equals" text="${env(INSTALLER_BIN_PREFIX)}" value=""/> + </ruleList> + </setInstallerVariable> + </preBuildActionList> + <readyToInstallActionList> + <setInstallerVariable> + <name>desktop_prefix</name> + <persist>1</persist> + <value>/usr/share/applications</value> + <ruleList> + <compareText logic="equals" text="${install_for}" value="all"/> + <platformTest type="linux"/> + </ruleList> + </setInstallerVariable> + <setInstallerVariable> + <name>desktop_prefix</name> + <persist>1</persist> + <value>~/.local/share/applications</value> + <ruleList> + <compareText logic="equals" text="${install_for}" value="local"/> + <platformTest type="linux"/> + </ruleList> + </setInstallerVariable> + <setInstallerVariableFromScriptOutput> + <name>running_user</name> + <exec>logname</exec> + <ruleList> + <platformTest type="linux"/> + </ruleList> + </setInstallerVariableFromScriptOutput> + </readyToInstallActionList> + <postInstallationActionList> + <actionGroup> + <explanation>File association</explanation> + <actionList> + <associateWindowsFileExtension> + <extensions>.db .db3 .sqlite .sqlite3 .sdb .s3db</extensions> + <friendlyName>SQLite</friendlyName> + <icon>${installdir}/appicon.ico</icon> + <mimeType>application/vnd.sqlite3</mimeType> + <progID>SQLiteStudio.GUI.3</progID> + <commandList> + <command> + <makeDefault>1</makeDefault> + <runProgram>${installdir}\SQLiteStudio.exe</runProgram> + <runProgramArguments>"%1"</runProgramArguments> + <verb>Open</verb> + </command> + </commandList> + <ruleList> + <platformTest type="windows"/> + </ruleList> + </associateWindowsFileExtension> + <actionGroup> + <explanation>Linux</explanation> + <actionList> + <writeFile> + <encoding>utf-8</encoding> + <path>${desktop_prefix}/SQLiteStudio.desktop</path> + <text> +[Desktop Entry] +Version=1.0 +Encoding=UTF-8 +Name=SQLiteStudio +GenericName=SQLiteStudio +Comment=SQLiteStudio +Icon=${installdir}/assets/appicon.png +Exec=${installdir}/sqlitestudio +Terminal=false +Type=Application +Categories=Application;Development;Database +MimeType=application/vnd.sqlite3 + </text> + </writeFile> + <runProgram> + <program>xdg-mime</program> + <programArguments>default SQLiteStudio.desktop application/vnd.sqlite3</programArguments> + </runProgram> + </actionList> + <ruleList> + <platformTest type="linux"/> + </ruleList> + </actionGroup> + </actionList> + <ruleList> + <isTrue value="${file_assoc}"/> + </ruleList> + </actionGroup> + </postInstallationActionList> + <preUninstallationActionList> + <removeWindowsFileAssociation> + <extensions>.db .db3 .sqlite .sqlite3 .sdb .s3db</extensions> + <mimeType>application/vnd.sqlite3</mimeType> + <progID>SQLiteStudio.GUI.3</progID> + <ruleList> + <platformTest type="windows"/> + </ruleList> + </removeWindowsFileAssociation> + <deleteFile> + <path>${desktop_prefix}/SQLiteStudio.desktop</path> + <ruleList> + <platformTest type="linux"/> + </ruleList> + </deleteFile> + </preUninstallationActionList> + <compressionAlgorithm>lzma-ultra</compressionAlgorithm> + <createOsxBundleDmg>1</createOsxBundleDmg> + <disableSplashScreen>1</disableSplashScreen> + <enableRollback>1</enableRollback> + <enableTimestamp>1</enableTimestamp> + <vendor>sqlitestudio.pl</vendor> + <windowsExecutableIcon>${src_prefix}/SQLiteStudio3/guiSQLiteStudio/img/sqlitestudio_opt.ico</windowsExecutableIcon> + <windowsARPRegistryPrefix>${project.fullName}</windowsARPRegistryPrefix> + <productDisplayIcon>${installdir}\appicon.ico</productDisplayIcon> + <finalPageActionList> + <runProgram> + <program>${installdir}/SQLiteStudio.exe</program> + <programArguments>&</programArguments> + <progressText>Launch ${project.fullName} now.</progressText> + <ruleList> + <platformTest type="windows"/> + </ruleList> + </runProgram> + <runProgram> + <program>${installdir}/sqlitestudio</program> + <programArguments>&</programArguments> + <progressText>Launch ${project.fullName} now.</progressText> + <ruleList> + <platformTest type="linux"/> + <compareText logic="equals" text="${install_for}" value="local"/> + </ruleList> + </runProgram> + <runProgram> + <program>${installdir}/sqlitestudio</program> + <programArguments>&</programArguments> + <runAs>${running_user}</runAs> + <progressText>Launch ${project.fullName} now.</progressText> + <ruleList> + <platformTest type="linux"/> + <compareText logic="equals" text="${install_for}" value="all"/> + </ruleList> + </runProgram> + <runProgram> + <program>${installdir}/${product_shortname}.app/Contents/MacOS/SQLiteStudio</program> + <programArguments>&</programArguments> + <progressText>Launch ${project.fullName} now.</progressText> + <ruleList> + <platformTest type="osx"/> + </ruleList> + </runProgram> + </finalPageActionList> + <parameterList> + <parameterGroup> + <name>install_options</name> + <title>Installation options</title> + <explanation></explanation> + <value></value> + <default></default> + <insertBefore>installdir</insertBefore> + <parameterList> + <parameterGroup> + <name>install_for_grp</name> + <explanation>Install the application for:</explanation> + <value></value> + <default></default> + <parameterList> + <choiceParameter> + <name>install_for</name> + <description></description> + <explanation></explanation> + <value></value> + <default></default> + <allowEmptyValue>0</allowEmptyValue> + <displayType>radiobuttons</displayType> + <ordering>default</ordering> + <width>40</width> + <optionList> + <option text="all users (requires root privileges)" value="all"> + <description></description> + <image></image> + </option> + <option text="local user only" value="local"> + <description></description> + <image></image> + </option> + </optionList> + </choiceParameter> + </parameterList> + <ruleList> + <platformTest type="linux"/> + </ruleList> + <validationActionList> + <throwError text="You are not running the installer as an administrator!"> + <ruleList> + <isFalse value="${installer_is_root_install}"/> + <compareText logic="equals" text="${install_for}" value="all"/> + </ruleList> + </throwError> + </validationActionList> + </parameterGroup> + <booleanParameter> + <name>file_assoc</name> + <description>Associate SQLite file extensions with SQLiteStudio</description> + <explanation></explanation> + <value>1</value> + <default>1</default> + <ask>yes</ask> + <ruleList> + <platformTest negate="1" type="osx"/> + </ruleList> + </booleanParameter> + </parameterList> + <ruleList> + <platformTest negate="1" type="osx"/> + </ruleList> + </parameterGroup> + <directoryParameter> + <name>installdir</name> + <description>Installer.Parameter.installdir.description</description> + <explanation>Installer.Parameter.installdir.explanation</explanation> + <value></value> + <default>${platform_install_prefix}/${product_shortname}</default> + <allowEmptyValue>0</allowEmptyValue> + <cliOptionName>prefix</cliOptionName> + <mustBeWritable>1</mustBeWritable> + <mustExist>0</mustExist> + <width>40</width> + <preShowPageActionList> + <actionGroup> + <actionList> + <setInstallerVariable> + <name>platform_install_prefix</name> + <value>/opt</value> + </setInstallerVariable> + <setInstallerVariable> + <name>installdir</name> + <value>/opt/${product_shortname}</value> + </setInstallerVariable> + </actionList> + <ruleList> + <compareText logic="equals" text="${install_for}" value="all"/> + <platformTest type="linux"/> + </ruleList> + </actionGroup> + </preShowPageActionList> + </directoryParameter> + </parameterList> +</project> + |
