tis-unciv icon

unciv

Paquet d’installation silencieuse pour unciv

4.17.3.0-1

  • package: tis-unciv
  • name: unciv
  • version: 4.17.3.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: 88.27 Mo
  • installed_size: 208.78 Mo
  • homepage : https://yairm210.itch.io/unciv
  • conflicts :

package           : tis-unciv
version           : 4.17.3.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      : 2fcb91fc-3b7b-424b-913f-dc7fb16826c3
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-07-11T00:01:59.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         : djWo0G9o3ATvJJWSuCLaPBt2R16Md9kfyUhaWfGGg4CXjRU+cq0FSOIslQmY6kqC0W7VPT/MSNrWCRIqWQcznrXJCFUg4uUNRPd7aitDNh3NBuxeV/LtHzIkwGPV2a2COYGIunOWSBQPsesRn8XzQOAcRNVWyooukNlgIm8Rl2S2Yn2iyTmDouz0TXCxabur36yZKtLbaHw+7tTTGcagjX0i1UvnQpbRgZacK5y5tpzJPa/Lu33Rep4le2gTbEBdV6yATd5YBNs1WFAX5NXApPa1nKvaNDkE8zatceva0UPNLytoMw2tm/qgCndpiM9gVOO7u9Xo6r8uUk32YL9cOg==

# -*- 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

5c9ae8978b6084c57b1b3ea373d740e717d7b825c4f67bbd6004019992508d57 : Unciv.msi
38d056ab130f7bf7c481c12636a4e9959de36561d3dfcbe54c6e3571bc0c1dc3 : WAPT/certificate.crt
598bab2145f6410b7bf7ca3c50a9b3e7bdeda9e4adebad480c5c4b0b439fa589 : WAPT/control
7ede17c000253e100594e157fce7f4026010a972defea116e3c81490e7ab8fb3 : WAPT/icon.png
5fb3970cada9e230e185c0ba74bd71d2682f1dfecd897a329e7b037db570ab22 : luti.json
9c2113d970ecbd5cc56062aa20709dc32fa29e4d1637f3df0e1fa2a4b26695d0 : setup.py
063b5890de107a97bd369142e62e2205e895db12bb5a437701a08ab9c762ff4d : update_package.py