tis-spotify

1.1.48.625-22
Spotify Desktop Client - Installation in user environment
1615 downloads
Download

  Description 

  • package : tis-spotify
  • version : 1.1.48.625-22
  • architecture : all
  • categories : Media
  • maintainer : WAPT Team,Tranquil IT,Jimmy PELÉ,Alexandre Gauvrit
  • description : Spotify Desktop Client - Installation in user environment
  • locale : all
  • target_os : windows
  • min_os_version : 6.1
  • max_os_version :
  • min_wapt_version : 1.7
  • sources :
  • installed_size :
  • impacted_process : Spotify
  • description_fr : Client Spotify pour Bureau - Installation dans l'environnement utilisateur
  • description_pl :
  • description_de :
  • description_es :
  • description_pt :
  • description_it :
  • description_nl :
  • description_ru :
  • editor : Spotify AB
  • licence : Proprietary
  • signature_date : 2020-12-14T11:29:29.317700
  • Homepage : https://www.spotify.com/download

  Setup.py 

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

uninstallkey = []

# Defining variables
bin_name = 'SpotifyFullSetup.exe'
silent_args = '/silent'
app_dir = makepath(programfiles,'Spotify')
app_path = makepath(app_dir,bin_name)


def install():
    # Installing the package
    if not isdir(app_dir):
        mkdirs(app_dir)
    if isfile(app_path):
        remove_file(app_path)
    filecopyto(bin_name,app_dir)


def uninstall():
    # Uninstalling the package
    if isdir(app_dir):
        remove_tree(app_dir)


def session_setup():
    # Initializing variables
    package_version = control.version.split('-')[0]
    #user_app_dir = makepath(user_appdata,'Spotify')
    split_user_reg_version = registry_readstring(HKEY_CURRENT_USER,r'SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\Spotify','DisplayVersion').split('.')
    user_reg_version = '.'.join(split_user_reg_version[:4])

    # Installing the package in user environment
    if user_reg_version == '' or package_version > user_reg_version:
        print("Installing: %s in user environment" % (bin_name))
        install_exe_if_needed(app_path
            ,silentflags=silent_args)



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

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

    # Initializing variables
    url_dl = "https://download.scdn.co/SpotifyFullSetup.exe"
    latest_bin = bin_name

    print("Download url is: %s" % url_dl)

    # Downloading latest binaries
    if isfile(bin_name):
        remove_file(bin_name)
    print('Downloading: %s' % latest_bin)
    wget(url_dl,bin_name,proxies=proxy)

    # Checking version from file
    split_version = get_file_properties(latest_bin)['ProductVersion'].split('.')
    version = '.'.join(split_version[:4])

    # Changing version of the package
    control.version = '%s-%s'%(version,int(control.version.split('-')[-1])+1)
    control.save_control_to_wapt()
    print('Changing version to: %s in WAPT\\control' % control.version)




										

  Changelog 


No changelog
  manifest.sha256 
[["setup.py","4b4abc235dfb8027057a12581ecdfc039ded8130856b46190987c4337877ce53"],["SpotifyFullSetup.exe","9eecab4a43a6c4de66643a84977eb29f95d450ac068f2e0bd77e49f3970ed898"],["WAPT/icon.png","ae600e0d4b046ee3db8d5e373a749f75516a4e39f2e7295753ace7c30682e8a6"],["WAPT/certificate.crt","a5a97261381e1d0ad46ee15916abec9c2631d0201f5cc50ceb0197a165a0bbbf"],["WAPT/control","52da3aafa8c8eb01bfac4d54ea7db9c34f693bee568234ed9e34170e00304ec9"]]