Difference between revisions of "Gajim"

From WPKG | Open Source Software Deployment and Distribution
Jump to: navigation, search
(Updated the install script)
(It seems with the latest version of wpkg.js you can't next variables within variables. This was something that seemed to work on earlier versions. I updated the script to eliminate those.)
 
Line 3: Line 3:
 
The goal of Gajim is to provide a full featured and easy to use Jabber client. It is released under the GNU General Public License.
 
The goal of Gajim is to provide a full featured and easy to use Jabber client. It is released under the GNU General Public License.
  
Gajim is available on Windows with an installer which provide Gtk, python libs and Gajim. Download available here [http://www.gajim.org/downloads/gajim-0.12.5-1.exe Windows-installer]
+
Gajim is available on Windows with an installer which provide Gtk, python libs and Gajim. Download available here [https://gajim.org/downloads/1.9/Gajim-1.9.0-64bit.exe Windows-installer]
  
 
<source lang="xml">
 
<source lang="xml">
Line 18: Line 18:
 
             priority="10">
 
             priority="10">
  
         <variable name="PKG_VERSION"        value="1.8.4" />
+
         <variable name="PKG_VERSION"        value="1.9.0" />
 
         <variable name="PKG_NAME"          value="Gajim" />
 
         <variable name="PKG_NAME"          value="Gajim" />
        <variable name="PKG_SOURCE"        value="%SOFTWARE%\gajim\%PKG_NAME%-%PKG_VERSION%-64bit.exe"/>
 
        <variable name="PKG_DESTINATION"    value="%ProgramFiles%\%PKG_NAME%\" />
 
 
         <variable name="PKG_INSTALL_SWITCH" value="/S" />
 
         <variable name="PKG_INSTALL_SWITCH" value="/S" />
         <variable name="PKG_REMOVE_SWITCH"  value="/S _?=%PKG_DESTINATION%" />
+
         <variable name="PKG_REMOVE_SWITCH"  value="/S _?=%ProgramFiles%\Gajim\" />
  
 
         <check type="uninstall" condition="versiongreaterorequal" path="%PKG_NAME% %PKG_VERSION% (64-Bit)" value="%PKG_VERSION%" />
 
         <check type="uninstall" condition="versiongreaterorequal" path="%PKG_NAME% %PKG_VERSION% (64-Bit)" value="%PKG_VERSION%" />
         <install cmd='"%PKG_SOURCE%" %PKG_INSTALL_SWITCH% ' />
+
         <install cmd='"%SOFTWARE%\gajim\Gajim-%PKG_VERSION%-64bit.exe" %PKG_INSTALL_SWITCH% ' />
  
 
         <upgrade include="install" />
 
         <upgrade include="install" />
  
         <remove cmd='"%PKG_DESTINATION%\uninstall.exe" %PKG_REMOVE_SWITCH%' />
+
         <remove cmd='"%ProgramFiles%\Gajim\uninstall.exe" %PKG_REMOVE_SWITCH%' />
         <remove cmd='%ComSpec% /C if exist "%PKG_DESTINATION%\uninstall.exe" del "%PKG_DESTINATION%\uninstall.exe"' />
+
         <remove cmd='%ComSpec% /C if exist "%ProgramFiles%\Gajim\uninstall.exe" del "%ProgramFiles%\Gajim\uninstall.exe"' />
         <remove cmd='%ComSpec% /C if exist "%PKG_DESTINATION%" rmdir "%PKG_DESTINATION%"' />
+
         <remove cmd='%ComSpec% /C if exist "%ProgramFiles%\Gajim\" rmdir "%ProgramFiles%\Gajim\"' />
 
     </package>
 
     </package>
 
</packages:packages>
 
</packages:packages>

Latest revision as of 21:31, 10 June 2024

This is a silent installer for Gajim.

The goal of Gajim is to provide a full featured and easy to use Jabber client. It is released under the GNU General Public License.

Gajim is available on Windows with an installer which provide Gtk, python libs and Gajim. Download available here Windows-installer

<?xml version="1.0" encoding="UTF-8"?>

<packages:packages
        xmlns:packages="http://www.wpkg.org/packages" xmlns:wpkg="http://www.wpkg.org/wpkg" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
        xsi:schemaLocation="http://www.wpkg.org/packages ../../xsd/packages.xsd" >

    <package id="gajim"
            name="Gajim"
            revision="%PKG_VERSION%"
            reboot="false"
            priority="10">

        <variable name="PKG_VERSION"        value="1.9.0" />
        <variable name="PKG_NAME"           value="Gajim" />
        <variable name="PKG_INSTALL_SWITCH" value="/S" />
        <variable name="PKG_REMOVE_SWITCH"  value="/S _?=%ProgramFiles%\Gajim\" />

        <check type="uninstall" condition="versiongreaterorequal" path="%PKG_NAME% %PKG_VERSION% (64-Bit)" value="%PKG_VERSION%" />
        <install cmd='"%SOFTWARE%\gajim\Gajim-%PKG_VERSION%-64bit.exe" %PKG_INSTALL_SWITCH% ' />

        <upgrade include="install" />

        <remove cmd='"%ProgramFiles%\Gajim\uninstall.exe" %PKG_REMOVE_SWITCH%' />
        <remove cmd='%ComSpec% /C if exist "%ProgramFiles%\Gajim\uninstall.exe" del "%ProgramFiles%\Gajim\uninstall.exe"' />
        <remove cmd='%ComSpec% /C if exist "%ProgramFiles%\Gajim\" rmdir "%ProgramFiles%\Gajim\"' />
    </package>
</packages:packages>

If you want to modify some options in your gajim (add a default server ...), you must write a wpkg package or a batch script to edit %USERPROFILE%\Application Data\Gajim\Config .

The script should looks like :

echo. >>"%USERPROFILE%\Application Data\Gajim\Config"
echo accounts.your-gajim-account-name.http_auth = ask>> "%USERPROFILE%\Application Data\Gajim\Config"
echo accounts.your-gajim-account-name.autopriority_invisible = 10>> "%USERPROFILE%\Application Data\Gajim\Config"
echo accounts.your-gajim-account-name.msgwin-width = 480>> "%USERPROFILE%\Application Data\Gajim\Config"
echo accounts.your-gajim-account-name.dont_ack_subscription = False>> "%USERPROFILE%\Application Data\Gajim\Config"
echo accounts.your-gajim-account-name.restore_last_status = False>> "%USERPROFILE%\Application Data\Gajim\Config"
echo accounts.your-gajim-account-name.time_for_ping_alive_answer = 60>> "%USERPROFILE%\Application Data\Gajim\Config"
echo accounts.your-gajim-account-name.msgwin-height = 440>> "%USERPROFILE%\Application Data\Gajim\Config"
echo accounts.your-gajim-account-name.zeroconf_jabber_id = >> "%USERPROFILE%\Application Data\Gajim\Config"
echo accounts.your-gajim-account-name.subscribe_activity = True>> "%USERPROFILE%\Application Data\Gajim\Config"