tis-spark icon

spark

Silent install package for spark

3.0.2-2

  • package: tis-spark
  • name: spark
  • version: 3.0.2-2
  • maintainer: Administrator
  • licence: Apache License 2.0
  • target_os: windows
  • architecture: all
  • signature_date:
  • size: 103.89 Mo

package           : tis-spark
version           : 3.0.2-2
architecture      : all
section           : base
priority          : optional
name              : spark
categories        : 
maintainer        : Administrator
description       : Spark (Ignite Realtime)
depends           : 
conflicts         : 
maturity          : PROD
locale            : 
target_os         : windows
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           : Apache License 2.0
homepage          : 
package_uuid      : e3b87b14-c84c-43a5-a007-67a37afbee0a
valid_from        : 
valid_until       : 
forced_install_on : 
changelog         : https://github.com/igniterealtime/Spark/releases
min_os_version    : 
max_os_version    : 
icon_sha256sum    : bb7696e855bf00af0d85e33bb14ffd6ac917c0c4c3376a979465e2f860916922
signer            : Tranquil IT
signer_fingerprint: 8c5127a75392be9cc9afd0dbae1222a673072c308c14d88ab246e23832e8c6bb
signature         : fn9qxQk5vzyzO/Idq2sDRACEJkg/4gN2Fgq7CwaHLml/8lcxkCl/JMANIU/hU96bphwNz8asgYJGGGZWIy1nS9SkJvaJfvU2TjhjMthoDsrDH8iGRU81XfCAjJRRwS0wf1tZbAPh83SQ1+Py+mH81cg6bK0lKszsrUwAXc8w5D/hHFyAJdGTmT8UY3kT2Qhu3aQCm/wEorOQt1/10DR8YTmlS2rxg3MnNXVwB4QoLOXZwe12LRYFxBUJctsb9kqWYdJNJL4Vb58nQFA0wwAAvcWBDm4TeeuJp7k5PBKFS0O94awRj2Duy2XwY/FBW2jvNGn5kmzIA3w2x26YMLI/Lw==
signature_date    : 2024-04-16T16:00:51.235826
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

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

r"""
Usable WAPT package functions: install(), uninstall(), session_setup(), audit(), update_package()

"""
# 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('spark*.exe')[0]
    last_package_version = control.get_software_version()

    # Installing the software
    print("Installing: spark")
    install_exe_if_needed(bin_name,
        silentflags='-q',
        key='3057-7228-2063-7466',
        min_version=last_package_version
    )

    
    uninstallkey.remove('3057-7228-2063-7466')

def audit():

    if not uninstall_key_exists('3057-7228-2063-7466'):
        return "ERROR"
    else:
        return "OK"

def uninstall():
    for uninstall in installed_softwares('spark'):
        uninstall_string=(uninstall["uninstall_string"])
        run(f"{uninstall_string} -q")


    

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




def update_package():
    # Declaration of local variables
    package_updated = False
    proxies = get_proxies_from_wapt_console()
    if not proxies:
        proxies = get_proxies()
    api_url = "https://api.github.com/repos/igniterealtime/Spark/releases"
    # Get data from API
    releases_dict = wgets(api_url, proxies=proxies, as_json=True)
    exe_found = False  # Flag pour indiquer la découverte d'un fichier .exe
    for release in releases_dict:
        if exe_found:
            break
        for asset in release["assets"]:
            if asset["browser_download_url"].endswith("-with-jre.exe"):
                url_download = asset["browser_download_url"]
                filename = url_download.split('/')[-1]
                last_version = release["tag_name"][1:]
                exe_found = True  # Mettre à jour le flag pour indiquer qu'un .msi a été trouvé
                break
    

    if not isfile(filename):
        package_updated = True
        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


a356a46e8a67c6a0c846cefdaedf8db7467616be4a65637308bacee9092c0f25 : setup.py
4efdd50077a72f179ce8ac0ef97d9fb9c2939d0d85627d39e1195bc9945dc08e : update_package.py
bb7696e855bf00af0d85e33bb14ffd6ac917c0c4c3376a979465e2f860916922 : WAPT/icon.png
a5a97261381e1d0ad46ee15916abec9c2631d0201f5cc50ceb0197a165a0bbbf : WAPT/certificate.crt
15905a1dae264e2e6ec954c71c534cdd9d6832395a1d71df73ffdc48796a75a1 : luti.json
f871e94abf8c2845b6fad0f8dd2471ffaf36cbec678caaf0d7d5614668abe089 : .gitignore
ef3ba8eef5b88edc5e4ce9e13e9fa41ef2fad136cc6b518c52da79051c2a7c39 : spark_3_0_2-with-jre.exe
bc754a668e8f474c2e6e7dc71ab920a88d4a51aefc8c8ec44fcc22a3c109ec1e : WAPT/control