tis-seafile icon

Seafile

Silent install package for Seafile

9.0.18-2
Office
Office

  • package: tis-seafile
  • name: Seafile
  • version: 9.0.18-2
  • categories: Office
  • maintainer: WAPT Team,Tranquil IT,Jimmy PELÉ,Hubert TOUVET,Amelie LE JEUNE
  • editor: HaiWenHuZhi ltd.
  • licence: opensource_free,wapt_public,cpe:/a:gnu:gpl_v2
  • locale: all
  • target_os: debian,ubuntu
  • impacted_process: seafile-applet,seaf-daemon
  • architecture: x64
  • signature_date:
  • size: 191.21 Mo
  • installed_size: 282.63 Mo
  • homepage : https://www.seafile.com/

package           : tis-seafile
version           : 9.0.18-2
architecture      : x64
section           : base
priority          : optional
name              : Seafile
categories        : Office
maintainer        : WAPT Team,Tranquil IT,Jimmy PELÉ,Hubert TOUVET,Amelie LE JEUNE
description       : Seafile is an open source file storage and sharing solution
depends           : 
conflicts         : 
maturity          : PROD
locale            : all
target_os         : debian,ubuntu
min_wapt_version  : 2.3
sources           : https://www.seafile.com/en/download/
installed_size    : 282629518
impacted_process  : seafile-applet,seaf-daemon
description_fr    : Seafile est une solution de stockage et de partage de fichiers open source
description_pl    : Seafile to rozwiązanie open source do przechowywania i udostępniania plików
description_de    : Seafile ist eine Open-Source-Lösung zur Speicherung und gemeinsamen Nutzung von Dateien
description_es    : Seafile es una solución de código abierto para almacenar y compartir archivos
description_pt    : O Seafile é uma solução de armazenamento e partilha de ficheiros de código aberto
description_it    : Seafile è una soluzione open source per l'archiviazione e la condivisione di file
description_nl    : Seafile is een open source oplossing voor het opslaan en delen van bestanden
description_ru    : Seafile - это решение для хранения и обмена файлами с открытым исходным кодом
audit_schedule    : 
editor            : HaiWenHuZhi ltd.
keywords          : seafile,cloud,file,storage,sharing,solution,client
licence           : opensource_free,wapt_public,cpe:/a:gnu:gpl_v2
homepage          : https://www.seafile.com/
package_uuid      : cda2107a-4e24-4b03-90e9-fec7c69c1b52
valid_from        : 
valid_until       : 
forced_install_on : 
changelog         : https://download.seafile.com/published/seafile-manual/changelog/client-changelog.md
min_os_version    : 
max_os_version    : 
icon_sha256sum    : 2fa8a089ab65b8b5746bf57908d847606256cde5d7da32929a132f18fb7df741
signer            : Tranquil IT
signer_fingerprint: 8c5127a75392be9cc9afd0dbae1222a673072c308c14d88ab246e23832e8c6bb
signature_date    : 2026-04-15T05:09:52.000000
signed_attributes : package,version,architecture,section,priority,name,categories,maintainer,description,depends,conflicts,maturity,locale,target_os,min_wapt_version,sources,installed_size,impacted_process,description_fr,description_pl,description_de,description_es,description_pt,description_it,description_nl,description_ru,audit_schedule,editor,keywords,licence,homepage,package_uuid,valid_from,valid_until,forced_install_on,changelog,min_os_version,max_os_version,icon_sha256sum,signer,signer_fingerprint,signature_date,signed_attributes
signature         : CAy6VKlFU3SMcNsNManZw0j9Cl0jwlX/mPW6wPj5GaFDH9e8ozGBYA82pyDadnz1oThDKMY5pWjWbEyFW4vURc8hH85bjER9FREKszG7lvCWO/Fb/JHQaHLTZm0102Qu9PwPVAUitJTYcGQvZOhUAP/xoMedMgQJzFtfRszwedTS7QkqsyPsipOso2MWhTdMrUYtQTIkHmRdjl/hR6WkkCP+/yElbN2iD5JBOlIja8FFNIQtg2FLh37Q5e9W7ODuXgXoHl3vyia2aGQUdMLnoPDsbx3hC2BQA1B3b9VoJoMf8iSjOi3PNhV+6bVEr8FYZk2PX7Z0RJRRxRmYWYqqAw==

# -*- coding: utf-8 -*-
##################################################
# This file is part of WAPT Enterprise
# All right reserved, (c) Tranquil IT Systems 2023
# For more information please refer to
# https://wapt.tranquil.it/store/licences.html
##################################################
from setuphelpers import *

def install():
    #Declare variables
    install_dir = makepath('/','opt',control.package.split('-',1)[1])
    appimage = glob.glob("*.AppImage")[0]
    
    #Make install dir
    if isdir(install_dir):
        remove_tree(install_dir)
    mkdirs(install_dir)

    #Copy appimage in install dir
    run('chmod a+x ./' + appimage)
    name_appimage = appimage.split('/')[-1]
    filecopyto(appimage, makepath(install_dir, name_appimage))

    #Extract image
    run(f'"./{appimage}" --appimage-extract')

def uninstall():
    install_dir = makepath('/','opt',control.package.split('-',1)[1])
    killalltasks("seafile")
    remove_tree(install_dir)

# -*- coding: utf-8 -*-
from setuphelpers import *
from setupdevhelpers import bs_find_all

def update_package():
    # Declaring local variables
    package_updated = False
    proxies = get_proxies()
    if not proxies:
        proxies = get_proxies_from_wapt_console()
    url = "https://www.seafile.com/en/download/"

    # Getting latest version from official sources
    print(f"URL used is: {url}")
    bs_search = bs_find_all(url, "a", "class", "download-op")
    for i in bs_search:
        if "Seafile-x" in i["href"] and i["href"].endswith(".AppImage"):
            version = i.text
            download_url = i["href"]
            latest_bin = download_url.split("/")[-1]

    # Downloading latest binaries
    print(f"Latest {control.name} version is: {version}")
    print(f"Download URL is: {download_url}")
    if not isfile(latest_bin):
        print(f"Downloading: {latest_bin}")
        wget(download_url, latest_bin, proxies=proxies)
    else:
        print(f"Binary is present: {latest_bin}")

    # Deleting outdated binaries
    for f in glob.glob("*.AppImage"):
        if f != latest_bin:
            remove_file(f)

    # Changing version of the package
    if Version(version, 4) > Version(control.get_software_version(), 4):
        print("Software version updated (from: %s to: %s)" % (control.get_software_version(), Version(version)))
        package_updated = True
    else:
        print("Software version up-to-date (%s)" % Version(version))
    control.set_software_version(version)
    control.save_control_to_wapt()

    # Validating or not update-package-sources
    return package_updated

c520f2d6e8ce3b0661e9bc51dfc6d96abf1e8e3baeb01be692e3a66a2562e802 : Seafile-x86_64-9.0.18.AppImage
38d056ab130f7bf7c481c12636a4e9959de36561d3dfcbe54c6e3571bc0c1dc3 : WAPT/certificate.crt
2e32be4356f8ddc5ec66cac25cc71cac7795ee84ca657c34e6a0eac943ba55b4 : WAPT/control
2fa8a089ab65b8b5746bf57908d847606256cde5d7da32929a132f18fb7df741 : WAPT/icon.png
ee4e7677f8889689da0af4c937f85aa94bb894d2b58b1a0a502dbae5be6ae80a : luti.json
0530dcaf8b5050035b40efcce641e0085794fbc6dc1c6a227f6525b6c378e4e5 : setup.py
cf8e3254e914ee1ef17ba21db5351eb19cf824eb062fcc3819dd33637a08b889 : update_package.py