tis-dropbox 35.4.20-4

  • package : tis-dropbox
  • version : 35.4.20-4
  • description : Dropbox (Dropbox, Inc.)
  • maintainer : Hubert TOUVET
  • date : 2018-02-27 18:58:56

setup.py

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

uninstallkey = []

def install():
    # if you want to modify the keys depending on environment (win32/win64... params..)
    pe = PackageEntry().load_control_from_wapt ('.')
    dropbox_version = pe.version.split('-',1)[0]
    install_exe_if_needed("Dropbox %s Offline Installer.exe" % dropbox_version, '/S',key='Dropbox',min_version=dropbox_version,killbefore='dropbox.exe')

def update_package():
    import re,requests,urlparse,glob
    url = requests.head('https://www.dropbox.com/download?plat=win&type=full').headers['Location']
    filename = urlparse.unquote(url.rsplit('/',1)[1])

    if not isfile(filename):
        print('Downloading %s from %s'%(filename,url))
        wget(url,filename)

    # removes old exe
    if isfile(filename):
        exes = glob.glob('Dropbox*.exe')
        for fn in exes:
            if fn != filename:
                remove_file(fn)

    control = PackageEntry().load_control_from_wapt ('.')
    control.version = '%s-%s'%(re.findall('Dropbox (.*)\ Offline Installer.exe',filename)[0],int(control.version.split('-',1)[1])+1)
    control.save_control_to_wapt('.')

if __name__ == '__main__':
    update_package()
    

Changelog

No changelog
    

manifest.sha256

[["WAPT/icon.png", "3dfe21d79173342d078aed25cd8f9ecaf36466861d23bd55ad18e07af23c02a5"], ["WAPT/certificate.crt", "79e5388683c0b6cb03f4f81e4e58e3a11463b2b6cf169dd9c453098027dcfaa4"], ["WAPT/wapt.psproj", "795d36d10109ca85357285f79090fac2be856e5830ea31fa913cc55cb825807b"], ["Dropbox 35.4.20 Offline Installer.exe", "a0a2181e45901841abe0462c3dc97fb346e28a2e1a99a55b13a19601e0829f7e"], ["setup.py", "131bfdcf4501c556d28f6f847d9afa7480feadb55670f15428e0d02a16e4d773"], ["WAPT/control", "349b479d95b563d43fffe27934082d522764fb0c6dd96662eb52a25ed398bf6f"]]