tis-unciv icon

unciv

Paquet d’installation silencieuse pour unciv

4.17.16.0-1

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

package           : tis-unciv
version           : 4.17.16.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      : 768ed9b9-55c8-45e8-90fb-4306120a507f
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-08-27T11:00:27.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         : QNfq80x5VMgM+DRsqp5Cu4EcakiA0ZXjJ064U0840HQ2o9o6Chx2KjxavVhMwAq3VjwMf97UySh3FrDoLYV04EUu0J+51AM2QBz3irp18hQx6n3hc2rjKJn/5+7UMjBHQ3xc/j0042Gze1PKJgIRlVc8SLKrHZ1Euk/aC0O0PqkqUskoPLwA33I+5+VTrwV+s1gi730WDnxihXtspUaDtKqQjMivBLWpPl12RVnSYvG61DlAjupnCq5Gl715w37mwpqpF9Pt+0M5NgHHamhuxiqQ2he8l35BfT5IXau9z7Q/9oc1Ufu0xPOn4Og7DdrRKd6LvHuyZDpvFkcFds02dA==

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

f3299f49fec29d9b6c7a3c2f06171a50976d0464387068e366ddf054d00a80f6 : Unciv.msi
38d056ab130f7bf7c481c12636a4e9959de36561d3dfcbe54c6e3571bc0c1dc3 : WAPT/certificate.crt
d9b6c7b2f5e5ee1c30e3853068244c286c8d9744b9c316171fb5ffe03a8560c3 : WAPT/control
7ede17c000253e100594e157fce7f4026010a972defea116e3c81490e7ab8fb3 : WAPT/icon.png
dc541f367f9328b9a85b748d9ba41a2d53e468760cc9fa7ba79c7f917ec96818 : luti.json
9c2113d970ecbd5cc56062aa20709dc32fa29e4d1637f3df0e1fa2a4b26695d0 : setup.py
063b5890de107a97bd369142e62e2205e895db12bb5a437701a08ab9c762ff4d : update_package.py