- package: tis-celestia
- name: Celestia
- version: 1.6.2.2-3
- categories: Utilities
- maintainer: WAPT Team,Jérémie MOTTE,Pierre COSSON
- editor: Celestia Development Team.
- locale: all
- target_os: windows
- impacted_process: celestia
- architecture: all
- signature_date:
- size: 37.15 Mo
- installed_size: 71.35 Mo
- homepage : https://celestia.space/
package : tis-celestia
version : 1.6.2.2-3
architecture : all
section : base
priority : optional
name : Celestia
categories : Utilities
maintainer : WAPT Team,Jérémie MOTTE,Pierre COSSON
description : The free space simulation that lets you explore our universe in three dimensions.
depends :
conflicts :
maturity : PROD
locale : all
target_os : windows
min_wapt_version : 2.1
sources : http://srvtemplates.ad.tranquil.it/binary_cache/celestia-win32-1.6.1.exe
installed_size : 71348224
impacted_process : celestia
description_fr :
description_pl :
description_de :
description_es :
description_pt :
description_it :
description_nl :
description_ru :
audit_schedule :
editor : Celestia Development Team.
keywords :
licence :
homepage : https://celestia.space/
package_uuid : f0de96c7-48a1-4363-b545-a904d189acf5
valid_from :
valid_until :
forced_install_on :
changelog :
min_os_version :
max_os_version :
icon_sha256sum : 308930b71cd665f104415c0dc043674da02ff64911eeec373f14d5ebfeee62bb
signer : Tranquil IT
signer_fingerprint: 8c5127a75392be9cc9afd0dbae1222a673072c308c14d88ab246e23832e8c6bb
signature : bnO9gkEhwS1JpkF01u5eoZnQC7Yezd+RiDclIiB6yozX9MNaxDrjWjrn9djc3W1cPHxXmOalncChjVTUXRRzLngMC3lgpwD0zkwaiDJg2k9r07R1qSYHcHYfScT9kEZyRYOiHRt45GwRzJAtGhUFhClRcJhXiownK+8iuRW9ep8d1uZDCW8Tb+UO6eFqAM4T1obDb9N0ZR/0igPM9BdiQZFRhpqtvG198zj8T3ymwAV43n2KoraUArWs4+EZp5wjM2Xg1I0+lSrQXQpej+shzWnS4w88H9uQQdaUuT3RUUTfqNfETrh7qKbgUpWsL1CfS6fjppKKl6rcKWY+vphU9w==
signature_date : 2022-12-20T14:00:10.713247
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
from setuphelpers import *
import time
def install():
install_exe_if_needed(
glob.glob("celestia*.exe")[0],
silentflags="/VERYSILENT",
min_version=control.get_software_version(),
key="Celestia_is1",
)
def uninstall():
time.sleep(15)
# -*- 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/CelestiaProject/Celestia/releases/latest"
os_dict = {"windows": "win.exe", "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
65c2f816475d5daf883bd7890e00620818a18a2885dffa0f329bb4ad4bafb06f : setup.py
e4773efa942a145300a26dce2f7d66ad9e2f2785d55a3bef2ffd6060d2573564 : celestia-1.6.2.2-win.exe
20b76bd014d388460ac1fa0625a032d7396fce647dc16a794e1ac6a575b17302 : update_package.py
308930b71cd665f104415c0dc043674da02ff64911eeec373f14d5ebfeee62bb : WAPT/icon.png
a5a97261381e1d0ad46ee15916abec9c2631d0201f5cc50ceb0197a165a0bbbf : WAPT/certificate.crt
bbf464cb89cc4e8c1696c0d01d23fd947458a0fd97e3738575ba84bc97722011 : WAPT/changelog.txt
e1638c57970b4c8be27855077aa9e80d83a1541309e7a79717808ed03ea2bc21 : luti.json
01306eae021d7675ce8b0a5fb677296823cff58b4bfd4ab3a99519819154b355 : WAPT/control
-3
update package from github and proper usage of uninstallkey