tis-spotify

1.1.19.480-13
Spotify Desktop client - in AppData
1722 downloads
Download

  Description 

  • package : tis-spotify
  • version : 1.1.19.480-13
  • architecture : all
  • categories :
  • maintainer : TIS, Alexandre Gauvrit
  • description : Spotify Desktop client - in AppData
  • locale :
  • target_os : windows
  • min_os_version : 6.1
  • max_os_version :
  • min_wapt_version : 1.7
  • sources :
  • installed_size : 76000000
  • impacted_process : Spotify.exe
  • description_fr : Spotify client pour bureau - Installation AppData
  • description_pl :
  • description_de :
  • description_es :
  • description_pt :
  • description_it :
  • description_nl :
  • description_ru :
  • editor : Spotify AB
  • licence : Proprietary
  • signature_date : 2020-02-27T21:41:42.571713
  • Homepage : https://www.spotify.com/download

  Setup.py 

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

uninstallkey = []

spoti_path = makepath(programfiles,'Spotify')

def install():
    print('installing %s' % control.asrequirement())
    mkdirs(spoti_path)
    filecopyto('SpotifyFullSetup.exe',spoti_path)

def uninstall():
    print('uninstalling %s' % control.asrequirement())
    remove_tree(spoti_path)

def session_setup():
    print('Session setup for %s' % control.asrequirement())
    try:
        run('"%s" /Silent' % makepath(spoti_path,'SpotifyFullSetup.exe'))
    except:
        print('error admin maybe')
        pass

def update_package():
    url = "https://download.scdn.co/SpotifyFullSetup.exe"
    control = PackageEntry().load_control_from_wapt ('.')
    exe_name = "SpotifyFullSetup.exe"
    remove_file(exe_name)

    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}

    wget(url,exe_name,proxies=proxies)

    raw_version = get_file_properties(exe_name)["ProductVersion"].split(".",4)
    soft_version = ".".join(get_file_properties(exe_name)["ProductVersion"].split(".",4)[:4])
    print("Latest version is {}".format(soft_version))

    control.version = soft_version+"-10"
    control.save_control_to_wapt('.')


if __name__ == '__main__':
    update_package()

										

  Changelog 


No changelog
  manifest.sha256 
[["WAPT/icon.png","c951f93135b1ef20b2a4bab0a70ce99578f2a430cd75e2446848c91fc2586858"],["WAPT/certificate.crt","a5a97261381e1d0ad46ee15916abec9c2631d0201f5cc50ceb0197a165a0bbbf"],["WAPT/wapt.psproj","510d3af6fcf8f2eae5db684bb830ea9845576e76872b9b10854efaea6e4a4cd8"],["SpotifyFullSetup.exe","082ff50781cdf88291f0169544deea0f2bb0997e3d3b5d8860863ae18d15c897"],["setup.py","7d3c450a607902ba1af143e1226e870f4e885cd69846efa154aaddc54c31504f"],["WAPT/control","539ff7480ca0320905f26d59987b2f78cdf68b2e78538aa4c8cbb1b3d50b0e6e"],["Jenkinsfile","54e5f5b903f9666bc53163cb7db7928f52d116f868371bcc52bcce9f74ee3acc"]]