tis-vokoscreenng

3.3.0-0
VokoscreenNG is an easy-to-use screencast maker to record videos from computer screens, webcams, external cameras, etc.
0 downloads
Download
View on luti logo
tis-vokoscreenng icon

  Description 

  • package : tis-vokoscreenng
  • version : 3.3.0-0
  • architecture : x64
  • categories : Media
  • maintainer : Simon Fonteneau (TIS)
  • description : VokoscreenNG is an easy-to-use screencast maker to record videos from computer screens, webcams, external cameras, etc.
  • locale :
  • target_os : windows
  • min_wapt_version : 2.1
  • sources :
  • installed_size : 217722880
  • impacted_process : vokoscreenNG.exe
  • description_fr : VokoscreenNG est un créateur de screencast facile à utiliser pour enregistrer des vidéos à partir d’écrans d’ordinateur, de webcams, de caméras externes, etc.
  • description_pl :
  • description_de :
  • description_es :
  • description_pt :
  • description_it :
  • description_nl :
  • description_ru :
  • editor : Volker Kohaupt
  • licence : GPL-2.0
  • signature_date : 2022-07-04T10:27:50.419154
  • Homepage : https://linuxecke.volkoh.de/vokoscreen/vokoscreen.html

  Setup.py 

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

# registry key(s) where WAPT will find how to remove the application(s)
uninstallkey = []


def install():
    version = control.get_software_version()

    # Uninstalling older versions of the software
    for to_uninstall in installed_softwares(name=r"\bvokoscreenNG\b"):
        if Version(to_uninstall["version"]) < Version(version) or force:
            print("Removing: %s (%s)" % (to_uninstall["name"], to_uninstall["version"]))
            killalltasks(control.impacted_process.split(","))
            run(uninstall_cmd(to_uninstall["key"]))
            wait_uninstallkey_absent(to_uninstall["key"])
            time.sleep(10)

    # uninstallkey dynamique ... beurk
    install_exe_if_needed("vokoscreenNG-%s-win64.exe" % version, "in -c --al --am AllUsers=true", min_version=version, name=r"\bvokoscreenNG\b")

    # force QuietUninstallString
    install_loc_bvokoscreen = installed_softwares(name=r"\bvokoscreenNG\b")[0]["install_location"]
    exe_bvokoscreen = makepath(install_loc_bvokoscreen, "Uninstall.exe")

    nb = 0
    while not isfile(exe_bvokoscreen):
        nb = nb + 1
        if nb > 60:
            error("%s not found" % exe_bvokoscreen)
        time.sleep(1)

    time.sleep(10)
    quietuninstallstring = '"%s" pr -c' % exe_bvokoscreen

    registry_setstring(
        HKEY_LOCAL_MACHINE,
        r"SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Uninstall\%s" % uninstallkey[0],
        "QuietUninstallString",
        quietuninstallstring,
    )

    remove_desktop_shortcut("vokoscreenNG-%s" % version)


def update_package():
    proxies = {}
    if isfile(makepath(user_local_appdata(), "waptconsole", "waptconsole.ini")):
        proxywapt = inifile_readstring(makepath(user_local_appdata(), "waptconsole", "waptconsole.ini"), "global", "http_proxy")
        if proxywapt:
            proxies = {"http": proxywapt, "https": proxywapt}

    currentpath = os.path.dirname(os.path.realpath(__file__))

    url_api = "https://api.github.com/repos/vkohaupt/vokoscreenNG/releases"

    json_load = json.loads(wgets(url_api, proxies=proxies))

    found = False
    for releases in json_load:
        if found:
            break
        for download in releases["assets"]:
            if download["browser_download_url"].endswith("-win64.exe"):
                url_dl = download["browser_download_url"]
                binary = url_dl.split("/")[-1]
                found = True
                break

    realversion = binary.split("-")[1]

    allexe = glob.glob("*.exe")
    for exe in allexe:
        if exe != binary:
            remove_file(exe)

    if not isfile(binary):
        wget(url_dl, binary)

    control.version = realversion + "-0"
    control.save_control_to_wapt()

										

  Changelog 



No changelog.txt.
									
  manifest.sha256