tis-obs-studio 20.0.1-1

  • package : tis-obs-studio
  • version : 20.0.1-1
  • description : OBS Studio Live streaming video audio (obsproject.com)
  • maintainer : Hubert TOUVET
  • date : 2017-10-11 11:06:02
  • signer : TRANQUIL IT SYSTEMS
  • signature_date : 20171011-110601
  • min_os_version :
  • min_wapt_version :
  • Depends :

setup.py

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

uninstallkey = []

def install():
    pe = PackageEntry().load_control_from_wapt ('.')
    software_version = pe.version.split('-',1)[0]
    print('installing OBS Studio %s' % software_version)
    install_exe_if_needed('OBS-Studio-%s-Full-Installer.exe' % software_version,"/S","OBS Studio",min_version=software_version)

def update_package():
    import BeautifulSoup,requests,re
    from zipfile import *
    from waptpackage import PackageEntry
    verify=True
    pe = PackageEntry()
    pe.load_control_from_wapt(os.getcwd())
    current_version = pe['version'].split('-',1)[0]

    obs_base_url = "https://github.com/jp9000/obs-studio/releases/latest"
    software_name = "OBS-Studio"

    page = requests.get(obs_base_url,headers={'User-Agent':'Mozilla/5.0 (Windows NT 6.1; Win64; x64)'},verify=verify).text
    bs = BeautifulSoup.BeautifulSoup(page)

    bs_raw_string = str(bs.find('h1',{'class':'release-title'}).find('a').text)
    software_version = re.findall('OBS Studio (.*)',str(bs_raw_string))[0]

    print "Current %s WAPT package version is : %s" % (software_name,current_version)
    print "Latest %s version available is : %s" % (software_name,current_version)

    if Version(current_version) < Version(software_version):
        print("Mumble package is not up-to-date, updating")
        print("Cleanup current MSI files")

        filename = "OBS-Studio-%s-Full-Installer.exe" % software_version

        for exe in glob.glob('*.exe'):
            if exe != filename:
                remove_file(exe)

        print("Downloading latest version")
        download_url = 'https://github.com/jp9000/obs-studio/releases/download/%s/OBS-Studio-%s-Full-Installer.exe' % (software_version,software_version)
        wget(download_url,filename)

        pe.version = software_version + '-0'
        pe.save_control_to_wapt(os.getcwd())
    else:
        print("No update needed, package already up to date")


if __name__ == "__main__":
    update_package()

    

manifest

[["WAPT/icon.png", "c0bf7116c6dbbdb7a98d77eb68f12a9f5ad46f71"], ["WAPT/certificate.crt", "0db563dc9077b268ca07ba834322d0fc5e21f8e5"], ["WAPT/wapt.psproj", "557e60050809687d56525e6ac46df9c0e02ccae6"], ["OBS-Studio-20.0.1-Full-Installer.exe", "c1c5f6679f9ff56930a6a3bbaa0708fdc2e82aed"], ["setup.py", "32a5f59024d5870bb071aac090f10b3c56d7636d"], ["WAPT/control", "2338f1a40a1564b816801b9fa15fc643e4012513"]]
    

Forum feed

WAPT Packages / Paquets WAPT • Re: dotnetfx4.7 ne fonctionne pas
Bonjour,

DotNetFX 4.7 n'est plus un redistributable comme les précédentes version mais une KB désormais c'est pourquoi il n'apparait pas dans "Ajouts/Suppressions de Programmes" (appwiz.cpl)

Pour observer la version installée :

CODE :

Get-ChildItem "HKLM:SOFTWARE\Microsoft\NET Framework Setup\NDP\v4\Full\" | Get-ItemPropertyValue -Name Release | ForEach-Object { $_ -ge 394802 } 
https://docs.microsoft.com/en-us/dotnet ... alled#ps_a

Statistiques: Posté par agauvrit — 12 janvier 2018, 11:34