tis-nextchat icon

NextChat

Silent install package for NextChat

2.15.7-4

  • package: tis-nextchat
  • name: NextChat
  • version: 2.15.7-4
  • categories: Utilities
  • maintainer: WAPT Team,Tranquil IT,Ingrid TALBOT
  • licence: opensource_free,cpe:/a:gnu:gpl_v3,wapt_public
  • locale: all
  • target_os: windows
  • impacted_process: NextChat
  • architecture: x64
  • signature_date:
  • size: 6.89 Mo
  • installed_size: 11.71 Mo
  • homepage : https://nextchat.dev/

package           : tis-nextchat
version           : 2.15.7-4
architecture      : x64
section           : base
priority          : optional
name              : NextChat
categories        : Utilities
maintainer        : WAPT Team,Tranquil IT,Ingrid TALBOT
description       : NextChat, previously known as ChatGPT Next Web, is a chatbot application that enables users to access advanced AI models from OpenAI and Google AI
depends           : 
conflicts         : 
maturity          : PROD
locale            : all
target_os         : windows
min_wapt_version  : 2.3
sources           : 
installed_size    : 11707436
impacted_process  : NextChat
description_fr    : ChatGPT Next Web, désormais connu sous le nom de NextChat, est une application de chatbot qui permet aux utilisateurs d'accéder à des modèles d'IA avancés provenant d'OpenAI et de Google AI
description_pl    : ChatGPT Next Web, obecnie znany jako NextChat, to aplikacja chatbot, która umożliwia użytkownikom dostęp do zaawansowanych modeli AI z OpenAI i Google AI
description_de    : ChatGPT Next Web, jetzt bekannt als NextChat, ist eine Chatbot-Anwendung, die Nutzern den Zugang zu fortgeschrittenen KI-Modellen von OpenAI und Google AI ermöglicht
description_es    : ChatGPT Next Web, ahora conocido como NextChat, es una aplicación de chatbot que permite a los usuarios acceder a modelos avanzados de IA de OpenAI y Google AI
description_pt    : ChatGPT Next Web, agora conhecido como NextChat, é uma aplicação chatbot que permite aos utilizadores aceder a modelos avançados de IA da OpenAI e da Google AI
description_it    : ChatGPT Next Web, ora noto come NextChat, è un'applicazione di chatbot che consente agli utenti di accedere a modelli avanzati di intelligenza artificiale di OpenAI e Google AI
description_nl    : ChatGPT Next Web, nu bekend als NextChat, is een chatbot-applicatie die gebruikers toegang geeft tot geavanceerde AI-modellen van OpenAI en Google AI
description_ru    : ChatGPT Next Web, теперь известный как NextChat, - это приложение-чатбот, которое позволяет пользователям получить доступ к передовым моделям искусственного интеллекта от OpenAI и Google AI
audit_schedule    : 
editor            : 
keywords          : 
licence           : opensource_free,cpe:/a:gnu:gpl_v3,wapt_public
homepage          : https://nextchat.dev/
package_uuid      : 770e5d5c-b2ac-4fd9-8fee-4b2668cc57fe
valid_from        : 
valid_until       : 
forced_install_on : 
changelog         : 
min_os_version    : 10.0
max_os_version    : 
icon_sha256sum    : f7b9a8e01d26f3bd892403e751af01cf816961d703653245f184e240a0f40681
signer            : Tranquil IT
signer_fingerprint: 8c5127a75392be9cc9afd0dbae1222a673072c308c14d88ab246e23832e8c6bb
signature_date    : 2024-11-10T13:04:23.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         : JG1l6T4DCX/TK04XETqu3BrzgnIl0R59inx1z/F/fAJcR01fUtuuXJO0Q80lWYYOC/HxawWTMclgeOd2fxDgzUraUYbgMiY66nwXKQqNLw5bZNpK5Kp2NdvDjzTVI+3jbsMMW/+8Dtco85vlCx1xuhuYq37he4k4o3mV54eZLLnkNo7D5l8PLYTwCKka7kFkxmO0V04tiu4QH6UgJCujKXU8vJLiOX8SwMDcRqbQeraY8mPGbN8UsAUdLOrBPNuGY2wkVDYBTggHmBqsx9OlpIKPg4dbFBJ2RK+F678uyW5zCfli618X7rpT2JuvVj4RfgIaMUdU6OnCDocnUzeBVA==

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


def install():
    bin_name = glob.glob("NextChat_*_x64_en-US.msi")[0]
    install_msi_if_needed(
        bin_name,
        min_version=control.get_software_version(),
        timeout=600,
    )

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


def update_package():
    # Declaring local variables
    package_updated = False
    proxies = get_proxies_from_wapt_console()
    if not proxies:
        proxies = get_proxies()
    
    update_dict = {"windows": ".msi"}
    api_url = "https://api.github.com/repos/ChatGPTNextWeb/ChatGPT-Next-Web/releases/latest"

    # Get data from API
    releases_dict = json.loads(wgets(api_url, proxies=proxies))
    msi_found = False  # Flag pour indiquer la découverte d'un fichier .msi
    for release in releases_dict:
        if msi_found:
            break
        for asset in releases_dict["assets"]:
            if asset["browser_download_url"].endswith(".msi") and update_dict[control.target_os] in asset["browser_download_url"]:
                url_download = asset["browser_download_url"]
                latest_bin = url_download.split("/")[-1]
                version = latest_bin.split("_")[1]
                msi_found = True  # Mettre à jour le flag pour indiquer qu'un msi a été trouvé
                break

    # Deleting binaries
    for f in glob.glob("*.msi"):
        if f != latest_bin:
            remove_file(f)

    # Downloading latest binaries
    print("Download URL is: %s" % url_download)
    if not isfile(latest_bin):
        print("Downloading: %s" % latest_bin)
        wget(url_download, latest_bin, proxies=proxies)
    else:
        print("Binary is present: %s" % latest_bin)

    version = get_version_from_binary(latest_bin)

    control.set_software_version(version)
    control.save_control_to_wapt()


45ae1cd289e2e8e5af58c037bd067ee86db66ec38918aa1e3a6b50224d896e93 : NextChat_2.15.7_x64_en-US.msi
38d056ab130f7bf7c481c12636a4e9959de36561d3dfcbe54c6e3571bc0c1dc3 : WAPT/certificate.crt
d0bdabc788422cfb8c34c369d8747d050c114960c3c3158322eacde1964f3a89 : WAPT/control
f7b9a8e01d26f3bd892403e751af01cf816961d703653245f184e240a0f40681 : WAPT/icon.png
5daae0e8157054bd5787d7f27b1e5721470386a267c7e3329a09070dfbcbb529 : luti.json
2726ac38aa868317ffd2bcb88354f5bad6c9379265d15455fb5890abbf0e749e : setup.py
9df000e59e23709bd6f65b44287b50627ad5cebcd04710a1a39d7bba9a6c4faf : update_package.py