tis-unciv-portable

4.14.12-1
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 !
2770 téléchargements
Télécharger
Voir le résultat de la construction Voir l'analyse de VirusTotal
tis-unciv-portable icon
  • package : tis-unciv-portable
  • name : unciv
  • version : 4.14.12-1
  • categories :
  • maintainer : Amel FRADJ
  • editor :
  • licence : MPL-2.0 license
  • locale :
  • target_os : windows
  • impacted_process :
  • architecture : x64
  • signature_date : 2024-12-07 19:13
  • size : 102.05 Mo
  • homepage : https://yairm210.itch.io/unciv
package           : tis-unciv-portable
version           : 4.14.12-1
architecture      : x64
section           : base
priority          : optional
name              : unciv
categories        : 
maintainer        : Amel FRADJ
description       : An open source reimplementation of the most famous civilization-building game of all time - fast, small, ad-free, free forever!
depends           : 
conflicts         : 
maturity          : PROD
locale            : 
target_os         : windows
min_wapt_version  : 
sources           : 
installed_size    : 
impacted_process  : 
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      : 6718ca5f-0d3c-4d66-831a-0af65a165dc4
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    : 2024-12-07T19:13: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         : OXE8ZSOgm6PV/S5PncpAzla4khx/QOJT3GEIUaDf1FmV1KO4gcctWbpaWnEFohWZT7YDJL9eJvJuBgvJh76oQYAXgP8tz1/tiRCNsfTMvKiSH5B7wvKyncmkHgR/ubja0CMFE28XDjpH29RG6cJ3H13Ry0FNXtLXdsxqmBTxNviwDyKWhZFnboVozdg7RGEBkz8mAECZj6USnths9PNHMpjbDWJrP5Z/xt74fOcPJyKIDuVQXZWkbJygV+CmYz7/BcumhtRgyed9hj6eRfBN+xCWxvY5OwANJ4rydQTZeKo3jrbbjiub9zLhTMC6bEhoCs7xzE2pNeqc0qkzP1UeMQ==
# -*- coding: utf-8 -*-
from setuphelpers import *

"""


"""


app_name = "unciv "
editor_dir = makepath(programfiles, "unciv")
app_dir = makepath(editor_dir, "unciv")
app_path = makepath(app_dir, "Unciv.exe")
audit_version = False


def get_installed_version(app_path):
    return get_file_properties(app_path).get("FileVersion", "")


def install():
    # Declaring local variables
    zip_name = glob.glob(f"unciv-*.zip")[0]

    unzipped_dir = "unciv"


    # Installing software
    killalltasks(ensure_list(control.impacted_process))
    if isdir(app_dir) and force:
        remove_tree(app_dir)
    mkdirs(app_dir)
    print("Extracting: %s to: %s" % (zip_name, unzipped_dir))
    unzip(zip_name, unzipped_dir)
    print('Copy unciv to %s' % app_dir)
    copytree2(unzipped_dir, app_dir, onreplace=default_overwrite)

    # Creating custom shortcuts
    create_desktop_shortcut(app_name, target=app_path)
    create_programs_menu_shortcut(app_name, target=app_path)


def audit():
    # Auditing software
    audit_status = "OK"
    installed_version = get_installed_version(app_path)
    if Version(installed_version) < Version(control.get_software_version()) and audit_version:
        print("%s is installed in version (%s) instead of (%s)" % (app_name, installed_version, control.get_software_version()))
        audit_status = "WARNING"
    elif isdir(app_dir) and not dir_is_empty(app_dir):
        print("%s (%s) is installed" % (app_name, installed_version))
        audit_status = "OK"
    else:
        print("%s is not installed" % app_name)
        audit_status = "ERROR"
    return audit_status


def uninstall():
    # Uninstalling software
    killalltasks(ensure_list(control.impacted_process))
    if isdir(app_dir):
        remove_tree(app_dir)
    if dir_is_empty(editor_dir):
        remove_tree(editor_dir)

    # Removing shortcuts
    remove_desktop_shortcut(app_name)
    remove_programs_menu_shortcut(app_name)
# -*- coding: utf-8 -*-
from setuphelpers import *
import re


def update_package():
    # Declaring local variables
    package_updated = False
    proxies = get_proxies()
    if not proxies:
        proxies = get_proxies_from_wapt_console()
    
 
    git_repo = "yairm210/Unciv"
    url_api = "https://api.github.com/repos/%s/releases/latest" % git_repo
    # Getting latest version information from official sources
    print("API used is: %s" % url_api)
    json_load = json.loads(wgets(url_api, proxies=proxies))

    for download in json_load["assets"]:
        if download["browser_download_url"].endswith("Windows64.zip") :
            url_dl = download["browser_download_url"]
            version = json_load["tag_name"].split('-')[0]
            filename = download["name"]
            break

    if not isfile(filename):
        package_updated = True
        wget(url_dl,filename,proxies=proxies)

    #nettoyer les fichiers temporaires
    for f in glob.glob('*.zip'):
        if f != filename:
            remove_file(f)
    
    control.set_software_version(version)
    control.save_control_to_wapt()
97abdf78ebcaa2da391c8436d4a4843826228c04384b9aa973df59c998dca7ea : Unciv-Windows64.zip
38d056ab130f7bf7c481c12636a4e9959de36561d3dfcbe54c6e3571bc0c1dc3 : WAPT/certificate.crt
fd7064bbb042feb8162ef35c389d03fb09618517ec84d550e90784c6346b15f4 : WAPT/control
7ede17c000253e100594e157fce7f4026010a972defea116e3c81490e7ab8fb3 : WAPT/icon.png
71445187e0f5f012290b28c246f076244833d9766293977439d7cef214aec2c7 : luti.json
b20b95c2bcf403597a67501db4b2d16232369c0e306262450e82399d9d2e1af8 : setup.py
67552d30a961cdcd3ebf5567943dcc93f76af16582376a9a60c2e78bffe84c62 : update_package.py