tis-seafile

7.0.5-34
Windows client for cloud file storage Seafile (HaiWenHuZhi ltd.)
9769 downloads
Download

  Description 

  • package : tis-seafile
  • version : 7.0.5-34
  • architecture : all
  • categories : Office,Media
  • maintainer : Hubert TOUVET,Amelie LE JEUNE
  • description : Windows client for cloud file storage Seafile (HaiWenHuZhi ltd.)
  • locale : all
  • target_os : windows
  • min_os_version : 6.1
  • max_os_version :
  • min_wapt_version : 1.5.1
  • sources : https://srvdev.ad.tranquil.it/sources/tis-seafile-wapt/trunk
  • installed_size : 159383552
  • impacted_process : seafile-applet.exe,seaf-daemon.exe
  • description_fr : Client Windows pour les système de partage de fichiers Seafile (HaiWenHuZhi ltd.)
  • description_pl :
  • description_de :
  • description_es :
  • description_pt :
  • description_it :
  • description_nl :
  • description_ru :
  • editor : Seafile Ltd
  • licence : GPL
  • signature_date : 2020-02-27T21:41:28.751447
  • Homepage : https://www.seafile.com/

  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():
    print('installing seafile')

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

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')


def session_setup():
    print('Session setup for %s' % control.asrequirement())
    print('Disabling: Check Updates')
    registry_setstring(HKEY_CURRENT_USER,'Software\\Seafile\\Seafile Client\\WinSparkle','CheckForUpdates','0')


def update_package():
    import re

    proxies = {}
    if isfile(makepath(application_data(),'waptconsole','waptconsole.ini')):
        proxywapt = inifile_readstring(makepath(user_local_appdata(),'waptconsole','waptconsole.ini'),'global','http_proxy')
        if proxywapt :
            proxies = {'http':proxywapt,'https':proxywapt}

    index = wgets('https://www.seafile.com/en/download/',proxies=proxies)
    re_versions = re.compile('<a href="https://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,resume=True,proxies=proxies)

    # 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)

    package_version = control.version.split('-')[1]
    for fn in glob.glob('*.msi'):
        control.version = "%s-%s" % (fn.split('-')[1],package_version)
    control.save_control_to_wapt()
    return control.version

if __name__ == '__main__':
    update_package()


										

  Changelog 


https://download.seafile.com/published/seafile-manual/changelog/client-changelog.md
  manifest.sha256 
[["WAPT/icon.png","2fa8a089ab65b8b5746bf57908d847606256cde5d7da32929a132f18fb7df741"],["WAPT/certificate.crt","a5a97261381e1d0ad46ee15916abec9c2631d0201f5cc50ceb0197a165a0bbbf"],["seafile-7.0.5-en.msi","9f376e8eb1f412799d6fc910949a06311309b2be6ee482fb03b82de158b88b8b"],["WAPT/wapt.psproj","fdd9db03cb28a75c9b2af4f5154e55cce7feaa098404f37d3fe5c6cdfb483729"],["WAPT/control","155561f1e86e3a86b4a3cbee7680945c403a8b63f3828097222749c845bc3c06"],["setup.py","24bf2b0e007f5bf4554f17c6bfaf639dd0d74381f82b7466486ad158b33d9f89"],["Jenkinsfile","023e2bdc94cd8e66d6dac9da416de955471e24dc1a41be416d0ee5979dbec5f2"],["README.md","954abf9883ba8fa9977818d906edc983ec516a6c5d551675750e3da38780e7ef"],["WAPT/changelog.txt","87d65f98e35910740255e5d005636f550d4bf1da57d5a36f364e630d7c08a801"]]