- package: tis-chatgpt-unofficial
- name: ChatGPT
- version: 1.1.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.10 Mo
- installed_size: 8.74 Mo
- homepage : https://github.com/lencx/ChatGPT/
package : tis-chatgpt-unofficial
version : 1.1.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 : 782e19b0-9040-49b2-8e87-397dd137acca
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 : ieGex6/sDqg1LEouK/cCMZe3eLvEb/fVyHX+MNFNVm1AQix3wJiZO8zfssJ5NyFxElcdle6HjSg47HMRKsLu3hPVbF7ll1IcLpNRXG56q84OJa6fP9Q0hfQI4HLRV2g13Q3+6EGj+yR44Zh54311tznrVzJogCfzMOcVxBNOpjVzE8FZTvZ4PpTp/anttisca1QLhrLVHade338UxbX++jKk2KAvOQGyM2JGYJZ1JjtNC7LeLzaPahHuZDbPM6g7VMlVVER9SWFJeomnlhwgn7/wjUdDzaRi7DTWACy58vGmKIxWsVl2TeyLBml734nGMZ4+k1FCfc5O8BgV5unOvw==
signature_date : 2023-08-16T13:00:12.411991
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
db6d40a87f87b24049941233526a8fff362b3005a704480fa8e6fd38be0f8788 : luti.json
8442a2ed4d74230a08a3aab94b658c6250c37197519d86be7f334c57f8b76625 : ChatGPT_1.1.0_windows_x86_64.msi
c23de602bf5ae447b10e462a1282f7f3fa428bdcbcc5a99899c80477a3e8028b : WAPT/control