tis-openwebstart icon

openwebstart

Silent install package for openwebstart

1.11.0-1

  • package: tis-openwebstart
  • name: openwebstart
  • version: 1.11.0-1
  • maintainer: Amel FRADJ
  • licence: GNU General Public License, version 2, with the Classpath Exception
  • target_os: windows
  • architecture: x64
  • signature_date:
  • size: 59.27 Mo
  • homepage : https://openwebstart.com/

package           : tis-openwebstart
version           : 1.11.0-1
architecture      : x64
section           : base
priority          : optional
name              : openwebstart
categories        : 
maintainer        : Amel FRADJ
description       : OpenWebStart is an open source reimplementation of the Java Web Start technology that provides the most commonly used features of Java Web Start and the JNLP standard, so that you can continue using applications based on Java Web Start and JNLP without any change.
depends           : 
conflicts         : 
maturity          : PROD
locale            : 
target_os         : windows
min_wapt_version  : 
sources           : 
installed_size    : 
impacted_process  : 
description_fr    : OpenWebStart est une réimplémentation open source de la technologie Java Web Start qui fournit les fonctionnalités les plus couramment utilisées de Java Web Start et du standard JNLP, afin que vous puissiez continuer à utiliser des applications basées sur Java Web Start et JNLP sans aucun changement.
description_pl    : OpenWebStart to otwarta implementacja technologii Java Web Start, która zapewnia najczęściej używane funkcje Java Web Start i standard JNLP, dzięki czemu można nadal korzystać z aplikacji opartych na Java Web Start i JNLP bez zmian.
description_de    : OpenWebStart ist eine Open-Source-Neuimplementierung der Java Web Start-Technologie, die die am häufigsten verwendeten Funktionen von Java Web Start und dem JNLP-Standard bereitstellt, sodass Sie Anwendungen, die auf Java Web Start und JNLP basieren, weiterhin ohne Änderungen verwenden können.
description_es    : OpenWebStart es una reimplementación de código abierto de la tecnología Java Web Start que proporciona las funciones más utilizadas de Java Web Start y el estándar JNLP, para que pueda seguir utilizando aplicaciones basadas en Java Web Start y JNLP sin ningún cambio.
description_pt    : OpenWebStart é uma reimplementação de código aberto da tecnologia Java Web Start que fornece os recursos mais comumente usados ​​do Java Web Start e do padrão JNLP, para que você possa continuar a usar aplicativos baseados em Java Web Start e JNLP sem quaisquer alterações.
description_it    : OpenWebStart è una reimplementazione open source della tecnologia Java Web Start che fornisce le funzionalità più comunemente utilizzate di Java Web Start e dello standard JNLP, in modo da poter continuare a utilizzare le applicazioni basate su Java Web Start e JNLP senza modifiche.
description_nl    : 
description_ru    : 
audit_schedule    : 
editor            : 
keywords          : 
licence           : GNU General Public License, version 2, with the Classpath Exception
homepage          : https://openwebstart.com/
package_uuid      : 971b9a21-fbfd-4deb-ab16-1921494b47a8
valid_from        : 
valid_until       : 
forced_install_on : 
changelog         : 
min_os_version    : 
max_os_version    : 
icon_sha256sum    : e75ac6dcd8a99a4a984d2b1ecc4045d0297a5367fb5fa2fce3480d02ddd8f1c3
signer            : Tranquil IT
signer_fingerprint: 8c5127a75392be9cc9afd0dbae1222a673072c308c14d88ab246e23832e8c6bb
signature_date    : 2024-12-02T18:00:54.000000
signed_attributes : package,version,architecture,section,priority,name,categories,maintainer,description,depends,conflicts,maturity,locale,target_os,min_wapt_version,sources,installed_size,impacted_process,description_fr,description_pl,description_de,description_es,description_pt,description_it,description_nl,description_ru,audit_schedule,editor,keywords,licence,homepage,package_uuid,valid_from,valid_until,forced_install_on,changelog,min_os_version,max_os_version,icon_sha256sum,signer,signer_fingerprint,signature_date,signed_attributes
signature         : xoPXzMMHRMro33Lz/Xp+N1Otqh16zcMTVw8vDXTOrLjDYk5YtBxxNhKXajEZIXKU2N+ObIfo4TaypDzPY+n3+J0qugDk8yHalsBVeCbrrPl7vhTT5ymPwNWS3gQ+3p9LTa4hx5idgNKJ5dsvy6ZE6RcGSYJBMHPRxarHFW1dQoLMERBjqVsAeSyrQ3vxC0aQwTc5iiHkXA8HPolsqnihY5YCcqzEmcNge/GlLxbzVsBRrkpx2uXBDlSu0A3RPISU4FMGd30c+r0m2gRf4VCtpQnHvj6v6SBWhoPyLNKj7Wdidpyttv7HynpywAm7jImlrgjFWP19Btz9rAiRnPZnJg==

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

r"""
Usable WAPT package functions: install(), uninstall(), session_setup(), audit(), update_package()
{
   "key":"9615-4721-3936-4657",
   "name":"OpenWebStart 1.9.1",
   "version":"1.9.1",
   "install_date":"",
   "install_location":"C:\\Program Files\\OpenWebStart",
   "uninstall_string":"\"C:\\Program Files\\OpenWebStart\\uninstall.exe\"",
   "publisher":"Karakun AG",
   "system_component":0,
   "win64":true
  }
"""
# Declaring global variables - Warnings: 1) WAPT context is only available in package functions; 2) Global variables are not persistent between calls


def install():
    # Declaring local variables
    bin_name = glob.glob('OpenWebStart_windows-x64_*.exe')[0]
    # Installing the software

    install_exe_if_needed(bin_name,
        silentflags='-q',
        key='9615-4721-3936-4657',
        min_version = control.get_software_version(),
    )
    uninstallkey.clear()
    
def uninstall():

    killalltasks(['OpenWebStart_windows-x64_*.exe'])
    for uninstall in installed_softwares('OpenWebStart'):
        if not uninstall_key_exists(uninstall['key']):
            continue
        uninstall_string = uninstall.get("uninstall_string", "")
        print(f"Uninstalling OpenWebStart: {uninstall_string}")
        run(f"{uninstall_string} -q")
        wait_uninstallkey_absent(uninstall['key'],max_loop=600)


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


def update_package():
    # Declaring local variables
    package_updated = False
    proxies = get_proxies()
    if not proxies:
        proxies = get_proxies_from_wapt_console()
    dict_arch = {"x64":"_windows-x64","x86":"_windows-x32"}
    url_api = "https://api.github.com/repos/karakun/OpenWebStart/releases/latest"

     # Get data from API
    releases_dict = json.loads(wgets(url_api, proxies=proxies))
    exe_found = False  # Flag pour indiquer la découverte d'un fichier .exe
    #target_extension = control.target_os + ".exe"
    for release in releases_dict:
        if exe_found:
            break
        for asset in releases_dict["assets"]:
            if asset["browser_download_url"].endswith('.exe') and dict_arch[control.architecture] in asset["browser_download_url"] :
                url_download = asset["browser_download_url"]
                last_version = releases_dict["name"].split("v")[-1]
                filename= url_download.split('/')[-1]
                exe_found = True  # Mettre à jour le flag pour indiquer qu'un .exe a été trouvé
                break


   
    if not isfile(filename):
        wget(url_download,filename,proxies=proxies)

    #nettoyer les fichiers temporaires
    for f in glob.glob('*.exe'):
        if f != filename:
            remove_file(f)

    control.set_software_version(last_version)
    control.save_control_to_wapt()

    return package_updated

54be75a66e85540a7022a8e0bacd0731b74c48fc501cf9fa76c9244aaef23ed0 : OpenWebStart_windows-x64_1_11_0.exe
38d056ab130f7bf7c481c12636a4e9959de36561d3dfcbe54c6e3571bc0c1dc3 : WAPT/certificate.crt
d43191a559ab4aa20d13ba8ecb457709d8767e06026c0e8324b4a4b4ff95b5aa : WAPT/control
e75ac6dcd8a99a4a984d2b1ecc4045d0297a5367fb5fa2fce3480d02ddd8f1c3 : WAPT/icon.png
d7d43b2d390efe6409c7d4a32999657915a82d0a34434c090728f083b8b02d6e : luti.json
237fcbc59171f8ddce67c2dd7777a3824b9edf4618370adcd05d34ad24f24778 : setup.py
00900befe23f154b12bcbcb730af6ca0ea1ce0b53e1919af4192bafce86c24c9 : update_package.py