tis-chatgpt-unofficial icon

ChatGPT

Paquet d’installation silencieuse pour ChatGPT

1.0.0-0

  • package: tis-chatgpt-unofficial
  • name: ChatGPT
  • version: 1.0.0-0
  • categories: utilities
  • maintainer: tisadmin
  • editor: https://github.com/lencx/
  • licence: Apache-2.0 license
  • locale: all
  • target_os: windows
  • impacted_process: ChatGPT
  • architecture: x64
  • signature_date:
  • size: 6.02 Mo
  • installed_size: 8.74 Mo
  • homepage : https://github.com/lencx/ChatGPT/

package           : tis-chatgpt-unofficial
version           : 1.0.0-0
architecture      : x64
section           : base
priority          : optional
name              : ChatGPT
categories        : utilities
maintainer        : tisadmin
description       : ChatGPT client with customized shortcuts
depends           : 
conflicts         : 
maturity          : PROD
locale            : all
target_os         : windows
min_wapt_version  : 2.1
sources           : https://github.com/lencx/ChatGPT
installed_size    : 8744960
impacted_process  : ChatGPT
description_fr    : 
description_pl    : 
description_de    : 
description_es    : 
description_pt    : 
description_it    : 
description_nl    : 
description_ru    : 
audit_schedule    : 
editor            : https://github.com/lencx/
keywords          : 
licence           : Apache-2.0 license
homepage          : https://github.com/lencx/ChatGPT/
package_uuid      : 1ad8f787-b8ed-4dad-9795-667aaa918aba
valid_from        : 
valid_until       : 
forced_install_on : 
changelog         : https://github.com/lencx/ChatGPT/releases
min_os_version    : 
max_os_version    : 
icon_sha256sum    : 4da3e04ee2d7c3d2df8a790f6c8d4974abb1286d0bc3c24acfa9d00ad257304f
signer            : Tranquil IT
signer_fingerprint: 8c5127a75392be9cc9afd0dbae1222a673072c308c14d88ab246e23832e8c6bb
signature         : m2oTu4YLdCJKWY8xj0EFNoPlDBHDHFQBHdl1npU3MN1HADZckFiAQ6nydNKfN2HVGKBqlMfE1um3vYsrU7Whgt9g0U7jasZZPTia6XveL6e0p/KnDftnnbyGwxIjGK6eCwtbODoRxLp0T4s6F+5k9iJz/R4xt5AHiL09791IQvItWDDN22h3WRwFY86ynt3ScNOBMStGzu5jJBfGySV7o7StcvYYn/8buefe/fBtUsqJDaTIt1HYIGDn6GozzpoyUb0dnYLFUX4fOiXhEcryw4JlrALFJLrwSyqbnEd7p759EXDvmF/l5rFYCbPD9kUaoJfs7aTQJIrR5N+9Pi0L7A==
signature_date    : 2023-05-30T09:56:31.330938
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 *


def install():
    install_msi_if_needed(glob.glob("ChatGPT*.msi")[0])

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


def update_package():
    # Declaring local variables
    package_updated = False
    proxies = get_proxies()
    if not proxies:
        proxies = get_proxies_from_wapt_console()
    api_url = "https://api.github.com/repos/lencx/ChatGPT/releases/latest"
    os_dict = {"windows": ".msi", "linux": ".AppImage", "darwin": ".dmg"}
    arch_dict = {"x64": "win64.exe", "x86": "win32.exe"}

    # Getting latest version information from official sources
    print("API used is: %s" % api_url)
    json_load = json.loads(wgets(api_url, proxies=proxies))
    for to_download in json_load["assets"]:
        if os_dict[control.target_os] in to_download["name"]:
            download_url = to_download["browser_download_url"]
            version = json_load["tag_name"].split("-")[-1].replace("v", "")
            latest_bin = to_download["name"]
            break

    # Downloading latest binaries
    print("Latest %s version is: %s" % (control.name, version))
    print("Download URL is: %s" % download_url)
    if not isfile(latest_bin):
        print("Downloading: %s" % latest_bin)
        wget(download_url, latest_bin, proxies=proxies)
    else:
        print("Binary is present: %s" % latest_bin)

    # Checking version from file
    version_from_file = get_version_from_binary(latest_bin).split("-")[0]
    # if not version_from_file.startswith(version) and version_from_file != '':
    if Version(version_from_file) != Version(version) and version_from_file != "":
        print("Changing version to the version number of the binary")
        os.rename(latest_bin, latest_bin.replace(version, version_from_file))
        version = version_from_file
    else:
        print("Binary file version corresponds to online version")

    # Changing version of the package
    if Version(version) > Version(control.get_software_version()):
        print("Software version updated (from: %s to: %s)" % (control.get_software_version(), Version(version)))
        package_updated = True
    else:
        print("Software version up-to-date (%s)" % Version(version))
    control.set_software_version(version)
    control.save_control_to_wapt()

    # Deleting outdated binaries
    remove_outdated_binaries(version)

    # Validating update-package-sources
    return package_updated

5b0cdf8d371e17212f8d5987d799d043488dbe3013cc51d7e701a71834ef3327 : setup.py
679d16fb39112d32b97415934c42f52c63949a83f8bc8b07e3a7dd7a11a69cd5 : update_package.py
4da3e04ee2d7c3d2df8a790f6c8d4974abb1286d0bc3c24acfa9d00ad257304f : WAPT/icon.png
a5a97261381e1d0ad46ee15916abec9c2631d0201f5cc50ceb0197a165a0bbbf : WAPT/certificate.crt
d35a45d287ef4dc926ff32c45827df2f0d06084a2ea8ef73f8b320c88cff0cf4 : luti.json
b57d455175474df1afad6ad0871e396a0bda36915255a38e036aae6a278a5736 : ChatGPT_1.0.0_windows_x86_64.msi
87220d72f9f248dd4369e60d8b26289848d699ee38898452773d330acbef7bb3 : WAPT/control