Détails du package smp-googleearth_7.3.2.5495-1_x64.wapt
retour Revenir à la liste des packages

smp-googleearth

ATTENTION CE DÉPÔT n'est plus compatible 1.3 vous devez migrer en 1.5.1.21 !

Fichier control :

package           : smp-googleearth
version           : 7.3.2.5495-1
architecture      : x64
section           : base
priority          : optional
maintainer        : Les fourmis du web
description       : Google Earth for Windows
depends           : 
conflicts         : 
maturity          : 
locale            : 
target_os         : 
min_os_version    : 
max_os_version    : 
min_wapt_version  : 
sources           : 
installed_size    : 
impacted_process  : 
description_fr    : 
description_pl    : 
description_de    : 
description_es    : 
audit_schedule    : 
editor            : 
keywords          : 
licence           : 
homepage          : 
package_uuid      : 5da7ccbd-0b87-4b7e-afc0-45fdb6d8366e
signer            : wapt.lesfourmisduweb.org
signer_fingerprint: 8da83ebdac1a25e820b186510d049f47407b11835b0664fdc5bacd3595b1671d
signature         : nSFTDSs3w6e/4ghmblLb9L/SVAmiKfT457HUQL+G4CJrkyocwVmuQAJO1YRbzxhpmPJimbqkjfp1qQWqKIt+6Bi+RwaXI0spVKg8yEmmuggUyhbGwdrctIYqPl8FL/aQoVfpq6z4RzYTmPoiGxRcU7sbDs0zVJat+cuBZFILmQrqOw2oBlFsxoE6kM37KslWDyar9YC44+WY7APt8Dj6Dba+EkPrGX2ZeGI3qCUQTXfs0trQ/8bNEiJPC1NPyHQHxQEhb2wERBVNMH5ySnDxl/P1rIxCG/4jHcRYj1tsNxna+zznrKIkR+grxoYaitoeKQ3jMHhBYN8ZDCyd60stDA==
signature_date    : 20181105-214404
signed_attributes : package,version,architecture,section,priority,maintainer,description,depends,conflicts,maturity,locale,target_os,min_os_version,max_os_version,min_wapt_version,sources,installed_size,impacted_process,description_fr,description_pl,description_de,description_es,audit_schedule,editor,keywords,licence,homepage,package_uuid,signer,signer_fingerprint,signature_date,signed_attributes






Fichier setup.py :

#!/usr/bin/python
# -*- coding: utf-8 -*-

from setuphelpers import *

uninstallkey=[]

def install():
    install_msi_if_needed('GoogleEarthSetup.msi',killbefore=['googleearth.exe'])
    remove_desktop_shortcut('Google Earth Pro')



def update_package():

    wget('https://dl.google.com/tag/s/appguid%3D%7B74AF07D8-FB8F-4d51-8AC7-927721D56EBB%7D%26iid%3D%7B78F4DCC2-2356-1949-3E7D-CA58A34BA41F%7D%26lang%3Dfr%26browser%3D3%26usagestats%3D0%26appname%3DGoogle%2520Earth%26needsadmin%3DTrue%26brand%3DGGGE/earth/client/GoogleEarthSetup.exe','GoogleEarthSetup.exe')
    run('GoogleEarthSetup.exe')
    killalltasks('googleearth.exe')

    for uninstall in installed_softwares('Google Earth'):
        vers = uninstall['version']
        print vers

    #Search msi and copy msi file if version is good
    remove_file('GoogleEarthSetup.exe')
    with disable_file_system_redirection():
        for msi in glob.glob(r'C:\Windows\Installer\*.msi'):
            if get_msi_properties(msi)['ProductName'] == 'Google Earth Pro':
                if  Version(get_msi_properties(msi)['ProductVersion']) == Version(vers):
                        remove_file('GoogleEarthSetup.msi')
                        filecopyto(msi,'GoogleEarthSetup.msi')




    # change version of package
    from waptpackage import PackageEntry
    pe = PackageEntry()
    pe.load_control_from_wapt(os.getcwd())
    pe.version = get_msi_properties('GoogleEarthSetup.msi')['ProductVersion'] +'-0'
    pe.save_control_to_wapt(os.getcwd())




if __name__ == '__main__':
    update_package()