tis-seadrive icon

SeaDrive

Paquet d’installation silencieuse pour SeaDrive

2.0.26-34

  • package: tis-seadrive
  • name: SeaDrive
  • version: 2.0.26-34
  • categories: Utilities
  • maintainer: WAPT Team,Tranquil IT,Jimmy PELÉ
  • editor: Seafile Ltd.
  • licence: GPLv2
  • locale: all
  • target_os: darwin
  • impacted_process: seadrive,seadrive-gui
  • architecture: all
  • signature_date:
  • size: 93.08 Mo
  • installed_size: 271.18 Mo
  • homepage : https://www.seafile.com/

package           : tis-seadrive
version           : 2.0.26-34
architecture      : all
section           : base
priority          : optional
name              : SeaDrive
categories        : Utilities
maintainer        : WAPT Team,Tranquil IT,Jimmy PELÉ
description       : SeaDrive enables you to access files on the server without syncing to local disk. It works like a network drive.
depends           : 
conflicts         : 
maturity          : PROD
locale            : all
target_os         : darwin
min_wapt_version  : 2.0
sources           : https://www.seafile.com/en/download/
installed_size    : 271183872
impacted_process  : seadrive,seadrive-gui
description_fr    : SeaDrive vous permet d'accéder aux fichiers sur le serveur sans synchronisation avec le disque local. Il fonctionne comme un lecteur réseau
description_pl    : SeaDrive umożliwia dostęp do plików na serwerze bez konieczności synchronizacji na dysku lokalnym. Działa jak dysk sieciowy
description_de    : Mit SeaDrive können Sie auf Dateien auf dem Server zugreifen, ohne sie mit der lokalen Festplatte zu synchronisieren. Es funktioniert wie ein Netzlaufwerk
description_es    : SeaDrive permite acceder a los archivos del servidor sin necesidad de sincronizarlos con el disco local. Funciona como una unidad de red
description_pt    : SeaDrive permite o acesso a ficheiros no servidor sem sincronização com o disco local. Funciona como uma unidade de rede
description_it    : SeaDrive consente di accedere ai file sul server senza sincronizzare il disco locale. Funziona come un'unità di rete
description_nl    : Met SeaDrive hebt u toegang tot bestanden op de server zonder ze naar de lokale schijf te synchroniseren. Het werkt als een netwerkschijf
description_ru    : SeaDrive позволяет получить доступ к файлам на сервере без синхронизации с локальным диском. Он работает как сетевой диск
audit_schedule    : 
editor            : Seafile Ltd.
keywords          : sharing,file,seafile,drive,sea
licence           : GPLv2
homepage          : https://www.seafile.com/
package_uuid      : 4829f4b9-94eb-47fa-8c33-78f4decdd4da
valid_from        : 
valid_until       : 
forced_install_on : 
changelog         : https://manual.seafile.com/changelog/drive-client-changelog/
min_os_version    : 
max_os_version    : 12.1
icon_sha256sum    : 095bf254df112880418ca67754fab61e3d80467a8218bf911530a9a9aeade66b
signer            : Tranquil IT
signer_fingerprint: 8c5127a75392be9cc9afd0dbae1222a673072c308c14d88ab246e23832e8c6bb
signature_date    : 2025-01-04T14:08:41.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         : yP2SuDoZ/TquC+8fqRJQgrJ/8wFB27J3YPBWjgbuLYtfWNHvTtIfdz7JTsy4JrVjuN7sGCwFSJQOWcRSc0rk7yAIzEO5d+UTslCn9caCqh7v8vXJcxZt3vRj8vhg0UDAvW++fNFKGB821lnfscjLlu2s+w7OBxZ/so3OFt8HolIS5SXtm1oy1GF+T2eymQfDaiN5bdOOOWKcsYPX94UE4+cb8NdowkE4nWgTh3PzmUi+eYvNK3wOX6RCVnEBuOt9ElEGKRQulg1PDNTlUtXjXNgzIWjM7oX9NnI0sPiE3PoNP1ROQq6pl6Ih/MlJMwxO8SuPkYql9mtNuZ6MlujF5Q==

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


def install():
    # Declaring local variables
    bin_name = glob.glob("*seadrive-*.dmg")[0]

    install_dmg(
        bin_name,
        key="/Applications/SeaDrive.app",
        min_version=control.get_software_version()
    )


def uninstall():
    uninstall_app("SeaDrive")
    remove_tree("/Applications/SeaDrive.app", ignore_errors=True)

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


def update_package():
    # Declaring local variables
    package_updated = False
    proxies = get_proxies_from_wapt_console()
    if not proxies:
        proxies = get_proxies()
    app_name = control.name

    url = "https://www.seafile.com/en/download/"

    # Getting latest version from official website
    for bs_search in bs_find_all(url, "a", "class", "download-op", proxies=proxies):
        latest_bin = bs_search["href"].split("/")[-1]
        if latest_bin.startswith("seadrive-") and latest_bin.endswith(".dmg"):
            download_url = bs_search["href"]
            latest_bin_extension = latest_bin.rsplit(".", 1)[-1]
            version = bs_search.string
            break

    # Downloading latest binaries
    print(f"Latest {app_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}")

    # Changing version of the package
    if Version(version) > Version(control.get_software_version()):
        print(f"Software version updated (from: {control.get_software_version()} to: {Version(version)})")
        package_updated = True
    else:
        print(f"Software version up-to-date ({Version(version)})")

    for f in glob.glob(f'*.{latest_bin_extension}'):
        if f != latest_bin:
            remove_file(f)

    control.set_software_version(version)
    control.save_control_to_wapt()

    return package_updated

38d056ab130f7bf7c481c12636a4e9959de36561d3dfcbe54c6e3571bc0c1dc3 : WAPT/certificate.crt
3f4bf5bd5a22eb497d3f0d6a1ba4bf1cf360428fdfb0888c909bb1287795bce1 : WAPT/control
095bf254df112880418ca67754fab61e3d80467a8218bf911530a9a9aeade66b : WAPT/icon.png
76ca4528e7a90a5ac157a268e65d2928263f085bed2a969787098eead6341ba1 : luti.json
e43c5711510f578be9346e09bd35df8926cd4eb980330acf2d266d7cf70aff22 : seadrive-2.0.26.dmg
ca6fddd43278a6721628dfe9bb869397a6d665bd6d4e6ce1459a552e6062e59d : setup.py
165973a34abdeb6a3510e9071e6d623cdec39d52b18d268f6a4ecd0bea6d1fb6 : update_package.py