unciv
Paquet d’installation silencieuse pour unciv
								
								4.18.4.0-1
								
							
							- package: tis-unciv
 - name: unciv
 - version: 4.18.4.0-1
 - maintainer: WAPT Team,Tranquil IT,Flavien SCHELFAUT
 - licence: MPL-2.0 license
 - target_os: windows
 - impacted_process: Unciv
 - architecture: all
 - signature_date:
 - size: 85.99 Mo
 - installed_size: 208.78 Mo
 - homepage : https://yairm210.itch.io/unciv
 - conflicts :
 
package           : tis-unciv
version           : 4.18.4.0-1
architecture      : all
section           : base
priority          : optional
name              : unciv
categories        : 
maintainer        : WAPT Team,Tranquil IT,Flavien SCHELFAUT
description       : An open source reimplementation of the most famous civilization-building game of all time - fast, small, ad-free, free forever!
depends           : 
conflicts         : tis-unciv-portable
maturity          : PROD
locale            : 
target_os         : windows
min_wapt_version  : 2.4
sources           : 
installed_size    : 208777216
impacted_process  : Unciv
description_fr    : Une réimplémentation open source du jeu de construction de civilisation le plus célèbre de tous les temps ,rapide, petit, sans publicité, gratuit pour toujours !
description_pl    : Otwarta implementacja najsłynniejszej gry cywilizacyjnej wszech czasów - szybka, mała, bez reklam i na zawsze za darmo!
description_de    : Eine Open-Source-Neuimplementierung des berühmtesten Zivilisationsbauspiels aller Zeiten ,schnell, klein, werbefrei, für immer kostenlos!
description_es    : Una reimplementación de código abierto del juego de construcción de civilizaciones más famoso de todos los tiempos: ¡rápido, pequeño, sin anuncios y gratis para siempre!
description_pt    : Uma reimplementação de código aberto do mais famoso jogo de construção de civilizações de todos os tempos - rápido, pequeno, sem anúncios e grátis para sempre!
description_it    : Una reimplementazione open source del più famoso gioco di costruzione di civiltà di tutti i tempi - veloce, piccola, senza pubblicità e gratuita per sempre!
description_nl    : Een open source herimplementatie van het beroemdste beschavingsbouwspel aller tijden - snel, klein, reclamevrij en voor altijd gratis!
description_ru    : Реализация с открытым исходным кодом самой известной игры всех времен, посвященной строительству цивилизаций, - быстрая, маленькая, без рекламы и навсегда бесплатная!
audit_schedule    : 
editor            : 
keywords          : 
licence           : MPL-2.0 license
homepage          : https://yairm210.itch.io/unciv
package_uuid      : ab3bc2c6-d529-4f90-9c2f-3c225eceb1dc
valid_from        : 
valid_until       : 
forced_install_on : 
changelog         : 
min_os_version    : 
max_os_version    : 
icon_sha256sum    : 7ede17c000253e100594e157fce7f4026010a972defea116e3c81490e7ab8fb3
signer            : Tranquil IT
signer_fingerprint: 8c5127a75392be9cc9afd0dbae1222a673072c308c14d88ab246e23832e8c6bb
signature_date    : 2025-10-10T17:02:47.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         : Ho57aT7sTe+EB7yStEr3rh75D32AmW+88es2yioiG2pAH1W096kuDDc9fGqAUEEbMYYmo6t7buq8UKMHjKqexpP9QKdDN3yMRv+6n4wWpsU1xz/J+rsNpCoLQZuMyg2rWqBwBCNph7pjhHOCs34hDfcznnTFEUbI36NGsthUfYyIruh5EYE9ez+TUsgV9JcrWp+79wkneJAz3HXa/ZkZ0qf0Vg2ib8U1nAuxFjlheqgsihHdC7cbbSwAszzyVXHCinv/TVLE/TUbyP6WzcdET/tGbg8jixD9AzANqVr+UWBldovDxmprqqB9M0DtJirdLtqqb6oXHNSzR952tBA+Kg==
                        # -*- coding: utf-8 -*-
from setuphelpers import *
def get_version(app_registry_dict):
    version = app_registry_dict['version']
    version = version.replace('-patch', '.') if 'patch' in version else version.split('-')[0]
    return str(Version(version, 4))
def install():
    killalltasks(ensure_list(control.impacted_process))
    for soft in installed_softwares('Unciv'):
        unistall_key = soft['key']
        if Version(soft['version']) < Version(control.get_software_version()):
            run(uninstall_cmd(unistall_key))
            wait_uninstallkey_absent(unistall_key)
            
    # Declaring local variables
    bin_name = glob.glob(f"Unciv.msi")[0]
    
    install_msi_if_needed(
        bin_name,
        name='^Unciv$',
        min_version=control.get_software_version(),
        get_version=get_version
    )
                            # -*- coding: utf-8 -*-
from setuphelpers import *
def update_package():
    # Declaring local variables
    package_updated = False
    proxies = get_proxies()
    if not proxies:
        proxies = get_proxies_from_wapt_console()
    app_name = control.name
    
    url_api = "https://api.github.com/repos/yairm210/Unciv/releases/latest"
    json_load = wgets(url_api, proxies=proxies, as_json=True)
    update_dict = { "windows": "Unciv.msi" }
    for download in json_load["assets"]:
        if download["name"] == update_dict[control.target_os]:
            download_url = download["browser_download_url"]
            latest_bin = download["name"]
            latest_bin_extension = latest_bin.rsplit('.', 1)[-1]
            break
    
    version = json_load["tag_name"]
    version = version.replace('-patch', '.') if 'patch' in version else version.split('-')[0]
    version = str(Version(version, 4))
    # Downloading latest binaries
    print(f"Latest {app_name} version is: {version}")
    print(f"Download URL is: {download_url}")
    if not isfile(latest_bin):
        print(f"Downloading: {latest_bin}")
        wget(download_url, latest_bin, proxies=proxies)
    else:
        print(f"Binary is present: {latest_bin}")
    # Changing version of the package
    if Version(version) > Version(control.get_software_version()):
        print(f"Software version updated (from: {control.get_software_version()} to: {Version(version)})")
        package_updated = True
    else:
        print(f"Software version up-to-date ({Version(version)})")
    for f in glob.glob(f'*.{latest_bin_extension}'):
        if f != latest_bin:
            remove_file(f)
    control.set_software_version(version)
    control.save_control_to_wapt()
    return package_updated
                            331970e205910877d93660ecfc8af5079cf0333110d91d9257ab3d644d32cc09 : Unciv.msi
38d056ab130f7bf7c481c12636a4e9959de36561d3dfcbe54c6e3571bc0c1dc3 : WAPT/certificate.crt
bcde29f19f80e141934cb01edbdd6efa0ff7bfa6704e49419e24678b6ae6a043 : WAPT/control
7ede17c000253e100594e157fce7f4026010a972defea116e3c81490e7ab8fb3 : WAPT/icon.png
d82de52e4fb07ff1bc21e2a0412dc653c3910a898393af182151a3d93b6ce645 : luti.json
9c2113d970ecbd5cc56062aa20709dc32fa29e4d1637f3df0e1fa2a4b26695d0 : setup.py
063b5890de107a97bd369142e62e2205e895db12bb5a437701a08ab9c762ff4d : update_package.py