tis-vlc 3.0.6-2

  • package : tis-vlc
  • version : 3.0.6-2
  • architecture : x64
  • locale : all
  • description : VLC Media Player
  • maintainer : Kevin Guerineau
  • date : 2019-01-11 14:05:48
  • min_wapt_version : 1.5
  • min_os_version : 5.1
  • max_os_version :
  • impacted_process : vlc.exe

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-win64.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>")]
            filename64 = 'vlc-%s-win64.exe' % realversion

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

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

    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()

if __name__ == '__main__':
    update_sources()

    

Changelog

No changelog
    

manifest.sha256

WAPT/icon.png fb124bd9764f070fd0a2f8f05ab82fe666ee33ba830fc8a689f2dc113b7bcce4
WAPT/certificate.crt 13fb474c5c23c135a77aba592eb8821b9ecbcc463f5b7312312b87b20eac6779
WAPT/wapt.psproj df3e2fa87fea9c7bdfcc22039b9ef7303f092898882d9f3f4233f5d92f90b3c7
vlc-3.0.6-win64.exe a16cf11836f258a564a30670bcc7f1315a1860367a3fff43825e1806d23af332
setup.py 68bdc0edb23765f2b4ed66d808f2463b0dae7578da2b6b51f3ab609ab40c06ee
vlcrc cfa606189d8a7b44ae4478490c2c664698a0e41a3df1ac2daf4c2809ff675d09
WAPT/control 1411a2aaca81d9af1b8048f4c1b7a053fd7681efb79c2742a8ed6d274efb707b