tis-seadrive

2.0.22-34
SeaDrive enables you to access files on the server without syncing to local disk. It works like a network drive.
5909 downloads
Download
See build result See VirusTotal scan
tis-seadrive icon
  • package : tis-seadrive
  • name : SeaDrive
  • version : 2.0.22-34
  • categories : Utilities
  • maintainer : WAPT Team,Tranquil IT,Jimmy PELÉ
  • installed_size : 271183872
  • editor : Seafile Ltd.
  • licence : GPLv2
  • signature_date : 2022-07-31T02:22:56.463128
  • size : 92.55 Mo
  • locale : all
  • target_os : darwin
  • impacted_process : seadrive,seadrive-gui
  • architecture : all
  • Homepage : https://www.seafile.com/
package           : tis-seadrive
version           : 2.0.22-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      : fa118a8b-e8f8-4171-a0c1-6d4ea0890d27
valid_from        : 
valid_until       : 
forced_install_on : 
changelog         : https://manual.seafile.com/changelog/drive-client-changelog/
min_os_version    : 6.1
max_os_version    : 
icon_sha256sum    : 095bf254df112880418ca67754fab61e3d80467a8218bf911530a9a9aeade66b
signer            : Tranquil IT
signer_fingerprint: 8c5127a75392be9cc9afd0dbae1222a673072c308c14d88ab246e23832e8c6bb
signature         : YQ98uGGcLXkJ7JDlSWIZDPW9HOGqRMQ8FhkQroFoXTbkrLZqw9o1M8HTJ9iEKY5INo3UqhXYIMJo03oME4YWPyksJUU6EJGJAPBldyPEe+2NT4FP1fC4LVIdC83kE8s3dnH7UVujBkDj9iO67IA/DLwbGfeKMPmfCFzksw3EB+UJvhXDco9Uq0fhHsS8j/AxIX6XMNZDi34cfEQKiSkGsTZ9BjtRcB31GsCEqHAONTSw1xXOyjTvizIiiWLHxTwZMEMtB24CMVVnZuMPxpQ2CuvTye2gZdtNXJc+hSkrP7rRNWZDz+KoLmvqimmekGXYkK6IzsZ7YxriivjNOBD3fA==
signature_date    : 2022-07-31T02:22:56.463128
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
# -*- coding: utf-8 -*-
from setuphelpers import *
import platform
import bs4 as BeautifulSoup

r"""
Usable WAPT package functions: install(), uninstall(), session_setup(), audit(), update_package()

"""
# Declaring global variables - Warnings: 1) WAPT context is only available in package functions; 2) Global variables are not persistent between calls
bin_contains = "seadrive-"
app_name = "SeaDrive"


def install():
    # Declaring local variables
    package_version = control.get_software_version()
    bin_name = glob.glob("*%s*.dmg" % bin_contains)[0]

    # Installing the software
    print("Installing: %s" % bin_name)
    install_dmg(bin_name)


def uninstall():
    # Uninstalling the software
    uninstall_app(app_name)


def update_package():
    # Declaring local variables
    result = False
    proxies = get_proxies()
    if not proxies:
        proxies = get_proxies_from_wapt_console()
    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(bin_contains) and latest_bin.endswith(".dmg"):
            url_dl = bs_search["href"]
            version = bs_search.string
            break

    print("Latest %s version is: %s" % (app_name, version))
    print("Download url is: %s" % url_dl)

    # Downloading latest binaries
    if not isfile(latest_bin):
        print("Downloading: %s" % latest_bin)
        wget(url_dl, latest_bin, proxies=proxies)

    # Changing version of the package
    if Version(version) > Version(control.get_software_version()):
        print("Software version updated (from: %s to: %s)" % (control.get_software_version(), Version(version)))
        result = True
    control.version = "%s-%s" % (Version(version), control.version.split("-", 1)[-1])
    # control.set_software_version(Version(version))
    control.save_control_to_wapt()

    # Deleting outdated binaries
    remove_outdated_binaries(version)

    # Validating or not update-package-sources
    return result
5bcc78eb469d02cf0bb15309ae3f31200f5dfe17b3f7a3d0813d57e62eed3646 : setup.py
d42ff60925ce8ded9ae7d7c07e88c21f4702828f5cb0b438c5a40ac1f8f1b904 : seadrive-2.0.22.dmg
095bf254df112880418ca67754fab61e3d80467a8218bf911530a9a9aeade66b : WAPT/icon.png
a5a97261381e1d0ad46ee15916abec9c2631d0201f5cc50ceb0197a165a0bbbf : WAPT/certificate.crt
a78ef6a786f43809a14584ed5ae7039daec57efbf0878b2c6156e7cb4fb0d0fd : luti.json
11573e576bd2da9bb27d2a812b57350b6fe34c309dabc66818df77958d3f7072 : WAPT/control