tis-seafile

7.0.6-1
Windows client for cloud file storage Seafile
9773 downloads
Download

  Description 

  • package : tis-seafile
  • version : 7.0.6-1
  • architecture : all
  • categories : Office,Media
  • maintainer : WAPT Team,Jimmy PELÉ,Hubert TOUVET,Amelie LE JEUNE
  • description : Windows client for cloud file storage Seafile
  • locale : all
  • target_os : windows
  • min_os_version : 6.1
  • max_os_version :
  • min_wapt_version : 1.5
  • sources : https://www.seafile.com/en/download/
  • installed_size : 216985600
  • impacted_process : seafile-applet.exe,seaf-daemon.exe
  • description_fr : Client Windows pour les système de partage de fichiers Seafile
  • description_pl :
  • description_de :
  • description_es :
  • description_pt :
  • description_it :
  • description_nl :
  • description_ru :
  • editor : Seafile Ltd
  • licence : GPL
  • signature_date : 2020-03-09T10:09:59.707000
  • Homepage : https://www.seafile.com/

  Setup.py 

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

uninstallkey = []

# Declaring specific app values (TO CHANGE)
bin_name_string = 'seafile-%s-en.msi'


def install():
    # Specific app values
    package_version = control.version.split('-')[0]

    # Getting the used storage on programfiles before installation (place it on the top)
    get_disk_free_space_before = get_disk_free_space(programfiles)

    # Installing the package
    install_msi_if_needed(bin_name_string % package_version
        ,min_version=package_version)

    #uninstallkey.remove(get_msi_properties("seafile-%s-en.msi" % version)['ProductCode'])
    remove_desktop_shortcut('Seafile')

    # Return used storage of the program. (place it on the bottom)
    get_disk_free_space_after = get_disk_free_space(programfiles)
    free_space_after_diff = get_disk_free_space_before - get_disk_free_space_after
    print("Storage used: " + str(free_space_after_diff))


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(60)
        if installed_softwares('seafile'):
            error('Error found seafile')


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


def update_package():
    print('Download/Update package content from upstream binary sources')
    import requests

    # Update transition from BeautifulSoup 3 to 4
    try:
        import bs4 as BeautifulSoup
    except:
        import BeautifulSoup

    # Getting proxy informations from WAPT settings
    proxy = {}
    if isfile(makepath(application_data(),'waptconsole','waptconsole.ini')):
        proxywapt = inifile_readstring(makepath(user_local_appdata(),'waptconsole','waptconsole.ini'),'global','http_proxy')
        if proxywapt :
            proxy = {'http':proxywapt,'https':proxywapt}		

    # Specific app values
    app_name = control.name
    url = control.sources

    # Getting latest version from official website
    page = requests.get(url).text
    bs = BeautifulSoup.BeautifulSoup(page)
    #bs = BeautifulSoup.BeautifulSoup(page,features="html.parser") # For bs4 only
    bs_raw_string = bs.find('a',{'class':'download-op'})
    version = bs_raw_string.text
    print(version)
    
    url_dl = bs_raw_string['href']
    latest_bin = bin_name_string % version

    print('Latest ' + app_name + ' version is: ' + version)
    print('Download url is: ' + url_dl)

    # Downloading latest binaries
    if not isfile(latest_bin):
        print('Downloading: ' + latest_bin)
        wget(url_dl,latest_bin,proxies=proxy)
            
		# Change version of the package
        from waptpackage import PackageEntry
        print('Writing ' + version + '-0 in WAPT\\control')
        pe = PackageEntry()
        pe.load_control_from_wapt(os.getcwd())

        pe.version = version + '-0'
        pe.save_control_to_wapt(os.getcwd())
        print('Update package done. You can now build-upload your package')
    else:
        print('This package is already up-to-date') 

    # Deleting outdated binaries
    for bin_in_dir in glob.glob('*.exe') or glob.glob('*.msi'):
        if bin_in_dir != latest_bin :
            print('Outdated binary: ' + bin_in_dir + ' Deleted')
            remove_file(bin_in_dir)


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"],["WAPT/wapt.psproj","fdd9db03cb28a75c9b2af4f5154e55cce7feaa098404f37d3fe5c6cdfb483729"],["WAPT/control","5ea0c95553c50c7cf5c4fd5280b4277590771b30c05df9dcaceafa61c70c2e10"],["seafile-7.0.6-en.msi","c2aca191506ce8e371f82a0b4daac0116bcadd00b8ce8ff430937ab1703daf7e"],["setup.py","0b2784ccccd905355ec9b3bcc0cf0b345d24d37f9b92a55c809f94c09ed47b84"],["Jenkinsfile","023e2bdc94cd8e66d6dac9da416de955471e24dc1a41be416d0ee5979dbec5f2"],["README.md","954abf9883ba8fa9977818d906edc983ec516a6c5d551675750e3da38780e7ef"],["WAPT/changelog.txt","87d65f98e35910740255e5d005636f550d4bf1da57d5a36f364e630d7c08a801"]]