tis-vlc 2.2.8-2

  • package : tis-vlc
  • version : 2.2.8-2
  • architecture : all
  • locale :
  • description : vlc media player
  • maintainer : Simon Fonteneau <blog@lesfourmisduweb.org>
  • date : 2018-02-27 19:08:55
  • min_os_version :
  • max_os_version :

setup.py

from setuphelpers import *

uninstallkey = []

def install():

  print("installing VLC exe")

  versionpaquet = control['version'].split('-',1)[0]

  if iswin64():
            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'])
  else:
            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'])

  remove_desktop_shortcut('VLC media player')













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

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


     if not isfile(filename32):
        print('Download' + filename32)
        wget('http://ftp.rezopole.net/vlc/vlc/'+ realversion +'/win32/' + filename32, filename32)
     if not isfile(filename64):
        print('Download ' + filename64)
        wget('http://ftp.rezopole.net/vlc/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()

    

Changelog

No changelog
    

manifest.sha256

WAPT/icon.png fb124bd9764f070fd0a2f8f05ab82fe666ee33ba830fc8a689f2dc113b7bcce4
WAPT/certificate.crt 79e5388683c0b6cb03f4f81e4e58e3a11463b2b6cf169dd9c453098027dcfaa4
WAPT/wapt.psproj c5a1697bf6e134989a9870764995725626a8f5055b640e541b569d1a927363fc
vlc-2.2.8-win64.exe e3dcf2e7c2cb6ed741e78e1bbdd198875ec626a261711c7580aec5c95c8edac2
vlc-2.2.8-win32.exe 3956020408c1666c168985a5afd01310dc5976cca67b458f9d70414d36f2608d
setup.py edae106cbbf47c6d5154ee7318cc83af197e7f16059181ee13e471c7f30fe7d5
WAPT/control 30bf2464c3df1c2766ab6012390173d764a8c9f26d60ba06d63ca39599ae6210