Tranquil IT recrute Tranquil IT recrute

tis-vlc

Version : 3.0.5-2

Download
  • package : tis-vlc
  • editor : VideoLAN
  • version : 3.0.5-2
  • licence : LGPL-2.1+
  • architecture : x86
  • locale : all
  • description : VLC Media Player
  • description_fr : VLC Media Player
  • min_os_version : 5.1
  • max_os_version :
  • min_wapt_version : 1.5
  • installed_size : 168906752
  • impacted_process : vlc.exe
  • signature_date : 20181228-101256
  • maintainer : Tranquil IT

setup.py

from setuphelpers import *

uninstallkey = []
vlcrc = makepath(programfiles,'VideoLAN','VLC','vlcrc')

def install():

    diskfreespacebefore = get_disk_free_space(programfiles)

    print("installing VLC")
    versionpaquet = control['version'].split('-',1)[0]
    install_exe_if_needed('vlc-%s-win32.exe' % versionpaquet,silentflags='/S --no-qt-privacy-ask --no-qt-updates-notif',key='VLC media player',min_version=versionpaquet,killbefore=['vlc.exe'])
    filecopyto("vlcrc",vlcrc)
    remove_desktop_shortcut('VLC media player')

    diskfreespaceafter = get_disk_free_space(programfiles)

    difffreespace = diskfreespacebefore - diskfreespaceafter
    print(ur"Espace disque necessaire pour l'installation : " + str(difffreespace))


def session_setup():
    print("Setting default preferences for VLC")
    user_vlcrc = makepath(user_appdata,'vlc','vlcrc')
    if not isfile(user_vlcrc):
        filecopyto(vlcrc,user_vlcrc)
    else:
        fichier = open(user_vlcrc,"r")
        data = fichier.read()
        fichier.close()

        if '#qt-notification=1' in data :
            data = data.replace('#qt-notification=1','qt-notification=0')

        if '#qt-updates-notif=1' in data :
            data = data.replace('#qt-updates-notif=1','qt-updates-notif=0')

        if 'qt-privacy-ask=1' in data :
            data = data.replace('qt-privacy-ask=1','qt-privacy-ask=0')

        fichier = open(user_vlcrc, "w")
        fichier.write(data)
        fichier.close()


def update_sources():
    htmlSource = wgets("http://www.videolan.org/vlc/download-windows.html").splitlines()

    for line in htmlSource :
        if 'downloadOS' in line :
            realversion = line[line.find("") + 12 :line.find("</span>")]
            filename32 = 'vlc-%s-win32.exe' % realversion


    exes = glob.glob('*.exe')
    for fn in exes:
        if fn != filename32 :
            print 'remove' + fn
            remove_file(fn)

    if not isfile(filename32):
        print('Download' + filename32)
        wget('https://get.videolan.org/vlc/'+ realversion +'/win32/' + filename32, filename32)

    print ('Write ' + realversion + '-0 in WAPT\\control')
    from waptpackage import PackageEntry
    pe = PackageEntry()
    pe.load_control_from_wapt(os.getcwd())
    pe.version = realversion +'-0'
    pe.save_control_to_wapt(os.getcwd())

    print('The update is complete, you can now test and then launch a build upload.')

if __name__ == '__main__':
    update_sources()

			

Changelog

"""{% trans %}No changelog.{% endtrans %}"""
			

manifest.sha256

[["WAPT/icon.png", "fb124bd9764f070fd0a2f8f05ab82fe666ee33ba830fc8a689f2dc113b7bcce4"], ["WAPT/certificate.crt", "13fb474c5c23c135a77aba592eb8821b9ecbcc463f5b7312312b87b20eac6779"], ["WAPT/wapt.psproj", "df3e2fa87fea9c7bdfcc22039b9ef7303f092898882d9f3f4233f5d92f90b3c7"], ["vlc-3.0.5-win32.exe", "71b11a14e48e6a1a3263d131d92a888f8e10e8970702866339eb02ed5adf850c"], ["setup.py", "861312bb3f56822baf78fce3c0695bd5d05e6177e48e57a31acdc9ade672f0b5"], ["vlcrc", "cfa606189d8a7b44ae4478490c2c664698a0e41a3df1ac2daf4c2809ff675d09"], ["WAPT/control", "9171fa5c6c67e4a5805a53f0a46a5032f8462b854b638b88706aa2bc0467dfab"]]