opencpn
Silent install package for opencpn
5.8.4-1
Utilities
Utilities
- package: tis-opencpn
- name: opencpn
- version: 5.8.4-1
- categories: Utilities
- maintainer: WAPT Team,Tranquil IT, Ingrid TALBOT
- editor: OpenCPN Development Team
- licence: opensource_free,wapt_public
- locale: all
- target_os: windows
- impacted_process: opencpn-cmd,opencpn
- architecture: all
- signature_date:
- size: 46.10 Mo
- installed_size: 115.53 Mo
- homepage : https://opencpn.org/
package : tis-opencpn
version : 5.8.4-1
architecture : all
section : base
priority : optional
name : opencpn
categories : Utilities
maintainer : WAPT Team,Tranquil IT, Ingrid TALBOT
description : OpenCPN Chart Plotter Navigation
depends :
conflicts :
maturity : PROD
locale : all
target_os : windows
min_wapt_version : 2.3
sources : https://github.com/OpenCPN/OpenCPN/releases
installed_size : 115529998
impacted_process : opencpn-cmd,opencpn
description_fr : Navigation sur traceur de cartes OpenCPN
description_pl : Nawigacja za pomocą plotera nawigacyjnego OpenCPN
description_de : OpenCPN Kartenplotter Navigation
description_es : OpenCPN Chart Plotter Navegación
description_pt : Navegação OpenCPN Chart Plotter
description_it : Navigazione con plotter cartografico OpenCPN
description_nl : OpenCPN Kaartplotter Navigatie
description_ru : Картплоттерная навигация OpenCPN
audit_schedule :
editor : OpenCPN Development Team
keywords : navigation
licence : opensource_free,wapt_public
homepage : https://opencpn.org/
package_uuid : e1eeec12-29e0-4230-92ac-c8459b1715a5
valid_from :
valid_until :
forced_install_on :
changelog : https://github.com/OpenCPN/OpenCPN/blob/master/data/changelog
min_os_version : 6.1
max_os_version :
icon_sha256sum : d642b35ce6441158dc071677fb958ad01830271d373c332d64e48dec67f80834
signer : Tranquil IT
signer_fingerprint: 8c5127a75392be9cc9afd0dbae1222a673072c308c14d88ab246e23832e8c6bb
signature : pwKWHe1aZXpxAYAaCc1Lab42RmJZYggILzEiQNur+7rSpRZHK5kjomu67t8P7aDU51d3RDTrZ+z5r+GqqSAALlViuojyqot9JhEheEWzs3GqPR+3joWjog2qO+ItziLfTEyiYcilkOIwe6CXbyv+dddDvEeFl2q8jgpa9yaosneQopnx9yu1SSRd1IStvGFeZhDc7idBuzwSHcMjbvtgRwPKInBy3soPeQ8xRMgLRd4p1BN3ovo9VwQ1IXWY0lGkk+gUs/xL7IDwyvGd2IDH05GzMzDBRENmvINu5CFPGH2Du2K7d2PSNf6D+s0SBnG6ZEbr3STQ1DlgZt5nrHs2Jg==
signature_date : 2023-09-18T15:01:37.879441
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():
bin_name = glob.glob("opencpn_*_setup.exe")[0]
bin_version = bin_name.split("_")[1].split("+")[0]
bin_key = bin_name.rsplit("_")[-2].rsplit(".")[-1]
app_uninstallkey = "OpenCPN " + bin_version + "+" + bin_key
install_exe_if_needed(
bin_name,
silentflags="/S",
key= app_uninstallkey,
min_version="",
timeout=600,
accept_returncodes=[0, 3010, 1223],
)
# Adding QuietUninstallString
quiet_uninstall_string = installed_softwares(uninstallkey=app_uninstallkey)[0]["uninstall_string"] + " /S"
register_uninstall(app_uninstallkey, quiet_uninstall_string=quiet_uninstall_string)
# -*- coding: utf-8 -*-
from setuphelpers import *
from setupdevhelpers import *
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/OpenCPN/OpenCPN/releases/latest"
download_dict = {
"windows-all": "setup.exe",
}
download_str = download_dict[control.target_os + "-" + ensure_list(control.architecture)[0]]
# Getting latest version information from official sources
print("API used is: %s" % api_url)
json_load = wgets(api_url, proxies=proxies, as_json=True)
version = json_load["tag_name"].split("_")[1]
for to_download in json_load["assets"]:
if download_dict[control.target_os + "-" + ensure_list(control.architecture)[0]] in to_download["name"]:
download_url = to_download["browser_download_url"]
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)
# Deleting outdated binaries
remove_outdated_binaries(latest_bin)
# arch_list = ensure_list(control.architecture)
# remove_outdated_binaries(version, filename_contains=("x64" if "x64" in arch_list else "x86" if "x86" in arch_list else []))
# Changing version of the package
if Version(version, 4) > Version(control.get_software_version(), 4):
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()
# Validating update-package-sources
return package_updated
# # Changing version of the package and validating update-package-sources
# return complete_control_version(control, version)
eff3f9a83ed60446194f50667694ce490e42422aa62665ac1d63577b9e2d0170 : setup.py
63d46ce5d223cef8b02fcd0c17347f8d809ebd582ec36d604c23d445fd1fbab0 : update_package.py
d642b35ce6441158dc071677fb958ad01830271d373c332d64e48dec67f80834 : WAPT/icon.png
a5a97261381e1d0ad46ee15916abec9c2631d0201f5cc50ceb0197a165a0bbbf : WAPT/certificate.crt
e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855 : WAPT/changelog.txt
52709bccbe9be317547d1a5c2de2f46a112d358027816642562b216dc0313aa5 : luti.json
36007b4a803529f82d3de83d1ed4fd4782a21d9affd78a5c81daf1e096c57bfe : opencpn_5.8.4-0+627.1637c28_setup.exe
a97dc825627b0bcaf096af14208950e9a2eedd938befc1de9daef69a9e54a4bd : WAPT/control