tis-insomnium-portable icon

Insomnium

Silent install package for Insomnium

0.2.3-1

package           : tis-insomnium-portable
version           : 0.2.3-1
architecture      : x64
section           : base
priority          : optional
name              : Insomnium
categories        : 
maintainer        : Jordan ARNAUD
description       : Open-source API client for testing GraphQL, REST, WebSockets, Server-sent events and gRPC
depends           : 
conflicts         : 
maturity          : PROD
locale            : 
target_os         : darwin
min_wapt_version  : 
sources           : 
installed_size    : 
impacted_process  : 
description_fr    : Client API open-source pour tester GraphQL, REST, WebSockets, événements envoyés par le serveur et gRPC
description_pl    : Klient API o otwartym kodzie źródłowym do testowania GraphQL, REST, WebSockets, zdarzeń wysyłanych przez serwer i gRPC
description_de    : Open-Source-API-Client zum Testen von GraphQL, REST, WebSockets, Server-sent events und gRPC
description_es    : Cliente API de código abierto para probar GraphQL, REST, WebSockets, eventos enviados por el servidor y gRPC
description_pt    : Cliente de API de código aberto para testar GraphQL, REST, WebSockets, eventos enviados pelo servidor e gRPC
description_it    : Client API open-source per testare GraphQL, REST, WebSockets, eventi inviati dal server e gRPC
description_nl    : Open-source API-client voor het testen van GraphQL, REST, WebSockets, servergestuurde gebeurtenissen en gRPC
description_ru    : Клиент API с открытым исходным кодом для тестирования GraphQL, REST, WebSockets, событий, отправляемых сервером, и gRPC
audit_schedule    : 
editor            : 
keywords          : 
licence           : MIT license
homepage          : https://github.com/ArchGPT/insomnium?ref=testdev.tools&ref_type=adv&utm_campaign=TestDevTools&utm_medium=web&utm_source=TestDev.tools
package_uuid      : ac581591-e700-44f7-94b4-f1f4cd899b1c
valid_from        : 
valid_until       : 
forced_install_on : 
changelog         : 
min_os_version    : 
max_os_version    : 
icon_sha256sum    : 89607d2a2b16ee39a6003c35cdd6c0bb2f6099fc82a29066e6f08259beb5b60e
signer            : Tranquil IT
signer_fingerprint: 8c5127a75392be9cc9afd0dbae1222a673072c308c14d88ab246e23832e8c6bb
signature         : uMYLYPHl9p4r2TKQm7mXDhEUyiE9zOZW8elgowFRNvtoCh5f8ixSuoFqpyv++IJd+yS9TeMfOQMWhjs4UMxC94bwMYW/9XHt8o9QYur5fXLS6q5aBRZys3KSS1S74kNc9hbcF9fJmD6Df5ri9ilgoG01IvBVTfPHuExhdxy3AOxc/72jfGEVet4FIF8m0QadECTVrz/Yq9AYcOumNqGITt/ywOxQRZaUCPV6PwETXuUEJ/AgaPKDcwHgJCfNGCEjXcbLPqqCNjq+NQGp7ZgTsswLLHvQBwVcsqYHmaXf08q6mNDSRhxIcOES1Yd5IYoFLvb6k0RqriZzqQBzOwBKLw==
signature_date    : 2024-08-11T14:00:21.668667
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 -*-
##################################################
# This file is part of WAPT Enterprise
# All right reserved, (c) Tranquil IT Systems 2023
# For more information please refer to
# https://wapt.tranquil.it/store/licences.html
##################################################
from setuphelpers import *


def install():
    install_dmg(glob.glob("Insomnium*")[0])


def uninstall():
    remove_tree("/Applications/Insomnium.app")

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

# Declaring global variables - Warnings: 1) WAPT context is only available in package functions; 2) Global variables are not persistent between calls


def update_package():
    result = False
    proxies = get_proxies()

    if not proxies:
        proxies = get_proxies_from_wapt_console()
        
    git_repo = "ArchGPT/insomnium"
    url_api = "https://api.github.com/repos/%s/releases/latest" % git_repo   
    # Getting latest version information from official sources
    print("API used is: %s" % url_api)
    json_load = json.loads(wgets(url_api, proxies=proxies))

    for download in json_load["assets"]:
        if download["browser_download_url"].endswith('.dmg'):
            url_dl = download["browser_download_url"]
            #version = json_load["name"][10:15]
            version = json_load["name"].split(" ")[1].split("-")[0]
            filename = json_load["name"].split("-")[0]
            break

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

    if not isfile(filename):
        package_updated = True
        print(f"Downloading " + filename)
        wget(url_dl,filename,proxies=proxies)

    control.set_software_version(version)
    control.save_control_to_wapt()

d3c4cd2b4f33442a7b127b1bb72aec81c8d7b171c4309df4a4c0b18abc323cac : setup.py
15fa940ccde81d9ff52e37b7a780572e70b83e05d91158f11b83ec8411f3ff2c : update_package.py
89607d2a2b16ee39a6003c35cdd6c0bb2f6099fc82a29066e6f08259beb5b60e : WAPT/icon.png
a5a97261381e1d0ad46ee15916abec9c2631d0201f5cc50ceb0197a165a0bbbf : WAPT/certificate.crt
ee46388d3f5e41459976323da8ec893f368a1b169354fcebbf703b610d5402c9 : luti.json
3a561fa0d3413d23180d5488b0034a5bbcb2d433e4600e31d002e0ca2a52d9df : Insomnium 0.2.3
51a8d76a98c39fbe8bf4ebcdb68c930d26ea43ea39be0b4a00d48527f6539348 : WAPT/control