Détails du package

smp-seafile

retour Revenir à la liste des packages

smp-seafile


Version officielle sur le site de l'editeur : 8.0.5


Fichier control :

package           : smp-seafile
version           : 7.0.10-1
architecture      : all
section           : base
priority          : optional
name              : 
categories        : 
maintainer        : Simon Fonteneau
description       : Windows client for cloud file storage Seafile
depends           : 
conflicts         : 
maturity          : 
locale            : all
target_os         : windows
min_os_version    : 
max_os_version    : 
min_wapt_version  : 
sources           : 
installed_size    : 221257728
impacted_process  : seaf-daemon.exe,seafile-applet.exe
description_fr    : Client Windows pour le stockage de fichiers cloud Seafile
description_pl    : 
description_de    : 
description_es    : 
description_pt    : 
description_it    : 
description_nl    : 
description_ru    : 
audit_schedule    : 
editor            : 
keywords          : 
licence           : 
homepage          : 
package_uuid      : 528a3399-30fa-49aa-983f-3692c1d7ef4e
valid_from        : 
valid_until       : 
forced_install_on : 
changelog         : 
signer            : wapt.lesfourmisduweb.org
signer_fingerprint: 1e54425be03a2a3ea1a264b40d984c31f17a6a489a3b722acb993cbf6561e903
signature         : xnUnpeEtcsg0y95Ll3EfWR/+h9e7OrLit7eFSJX5tc+WPE2Fjqr6N28guguhqTlwz3APyg2QInS5xVX5RV+3E/mGwY/M8cM20vg1zPKcbf6HKkohZ4Ux9jL/MaC1Fy4aRQZeMQ0omJKYOD7lYE1e4JIT13g+oWHLjx2kEQBUuhkbScxPi9oC1Q5dHTj2NF+MTP4T2XxnVwmCuVHX9rifmtp3VVg90z2stQVMNIInfsUtrAlUjymKbDqqebCS7gWZLIXnImrv0zCQjk3b6Ooq6K8Dldl/PnnuBLGkRuh3ZYPVFflWMKhFeWzcXjVFjv8lowiWt0Hwa354P1nYSKvwuQ==
signature_date    : 2020-10-17T19:10:43.442270
signed_attributes : package,version,architecture,section,priority,name,categories,maintainer,description,depends,conflicts,maturity,locale,target_os,min_os_version,max_os_version,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,signer,signer_fingerprint,signature_date,signed_attributes



Fichier setup.py :

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

# registry key(s) where WAPT will find how to remove the application(s)
uninstallkey = []

def install():


    versionsoft = control['version'].split('-',1)[0]
    install_msi_if_needed("seafile-%s-en.msi" % versionsoft,killbefore = ['seaf-daemon','seafile-applet'])
    uninstallkey.remove(get_msi_properties("seafile-%s-en.msi" % versionsoft)['ProductCode'])
    remove_desktop_shortcut('Seafile')

def update_package():
    import re
    index = ensure_unicode(wgets('https://www.seafile.com/en/download/'))
    re_versions = re.compile('download.seadrive.org/seafile-([\d\.]*)-en.msi"')
    # find latest
    last_version = sorted(re_versions.findall(index))[-1]
    print(last_version)
    download_url = 'https://download.seadrive.org/seafile-%s-en.msi' % last_version
    localfile = 'seafile-%s-en.msi' % last_version
    if not isfile(localfile):
        wget(download_url,localfile)

    # recup changelog
    #from BeautifulSoup import BeautifulSoup
    #bs = BeautifulSoup(wgets('https://seacloud.cc/group/3/wiki/client-changelog'))

    # removes old msi
    msis = glob.glob('*.msi')
    for fn in msis:
        if fn != localfile:
            remove_file(fn)

    control = PackageEntry().load_control_from_wapt ('.')
    control.version = '%s-0'% last_version
    control.save_control_to_wapt('.')


def uninstall():
    import time
    try:
        for seafile in installed_softwares('seafile'):
            run(uninstall_cmd(seafile['key']),timeout=20)
    except:
        killalltasks('seafile-applet.exe')
        time.sleep(30)
        if installed_softwares('seafile'):
            error('Error found seafile')