tis-minetest-portable

5.10.0-3
Minetest an open source voxel game engine
976 downloads
Download
See build result See VirusTotal scan
tis-minetest-portable icon
  • package : tis-minetest-portable
  • name : minetest
  • version : 5.10.0-3
  • categories :
  • maintainer : Jordan ARNAUD
  • installed_size :
  • editor :
  • licence : Unknown, LGPL-2.1 licenses found
  • signature_date : 2024-11-17T09:04:06.000000
  • size : 12.63 Mo
  • locale :
  • target_os : darwin
  • impacted_process :
  • architecture : x64
  • Homepage : www.minetest.net/
package           : tis-minetest-portable
version           : 5.10.0-3
architecture      : x64
section           : base
priority          : optional
name              : minetest
categories        : 
maintainer        : Jordan ARNAUD
description       : Minetest an open source voxel game engine
depends           : 
conflicts         : 
maturity          : PROD
locale            : 
target_os         : darwin
min_wapt_version  : 2.3
sources           : 
installed_size    : 
impacted_process  : 
description_fr    : Minetest, un moteur de jeu voxel open source
description_pl    : Minetest - silnik gier voxel o otwartym kodzie źródłowym
description_de    : Minetest eine quelloffene Voxel-Spiel-Engine
description_es    : Minetest, un motor de juegos voxel de código abierto
description_pt    : Minetest, um motor de jogo voxel de código aberto
description_it    : Minetest, un motore di gioco voxel open source
description_nl    : Minetest een open source voxel game-engine
description_ru    : Minetest - игровой движок с открытым исходным кодом для воксельных игр
audit_schedule    : 
editor            : 
keywords          : 
licence           : Unknown, LGPL-2.1 licenses found
homepage          : www.minetest.net/
package_uuid      : c72b3aca-a917-4de7-95f0-a6df05205f0a
valid_from        : 
valid_until       : 
forced_install_on : 
changelog         : 
min_os_version    : 
max_os_version    : 
icon_sha256sum    : ee2cd1b17c9e0906567e79e2a418c07c8e72fc5c3b950eacc971deafd205d557
signer            : Tranquil IT
signer_fingerprint: 8c5127a75392be9cc9afd0dbae1222a673072c308c14d88ab246e23832e8c6bb
signature_date    : 2024-11-17T09:04:06.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         : FgdEU1enzQAsq7ytypfIlK38jpCTWoabY9iaeEzNYM61pnIrmE1sOaotpSeFy/hWWjzxJ+holcgNIShv1crcsMT/3Bv7+1tvle+mZzA7WC1j8ACGC6b2+B0+jWodvfOyM39RRmvl2KFPN9k1wJif2vRtpGx3wwkem+t8UVpF6THoye9R1Sgh82zPwp8HY+mktL+pR9FVVoSvLX/yZziXuPkOgoVdqz6o3pJ24CSdMjfTyBMLeg4VjfMfIEdfhh6V6zep6wvJLI356Ql1TQZFtQbY1gp7rmkQRGtpJSnjhD/H8ozWT6lvFiKgRxPjmK1+nyDa3ZU+Pa3zwwk6COgQWg==
# -*- coding: utf-8 -*-
##################################################
# This file is part of WAPT Enterprise
# All right reserved, (c) Tranquil IT Systems 2023
# For more information please refer to
# https://wapt.tranquil.it/store/licences.html
##################################################
from setuphelpers import *


def install():
    ver = control.version.split("-")[0]
    bin_name = f"luanti-{ver}-macos.zip"

    run("mkdir /tmp/luanti")
    run(f"unzip {bin_name} -d /tmp/luanti")
    if not isdir("/Applications/luanti.app"):
        mkdirs("/Applications/luanti.app")
        run("mv /tmp/luanti/luanti.app/* /Applications/luanti.app")
        remove_tree("/tmp/luanti")
    else:
        run("rm -rf /Applications/luanti.app")
        mkdirs("/Applications/luanti.app")
        run("mv /tmp/luanti/luanti.app/* /Applications/luanti.app")
        remove_tree("/tmp/luanti")

def uninstall():
    remove_tree("/Applications/luanti.app")
# -*- coding: utf-8 -*-
from setuphelpers import *
from setupdevhelpers import *
import json

# Declaring global variables - Warnings: 1) WAPT context is only available in package functions; 2) Global variables are not persistent between calls


def update_package():
    result = False
    proxies = get_proxies()

    if not proxies:
        proxies = get_proxies_from_wapt_console()
    dict_arch ={
        "x64":"macos.zip",
    }
    git_repo = "minetest/minetest"
    url_api = "https://api.github.com/repos/%s/releases" % 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))
    url_dl = None
    # Itérer sur chaque release pour trouver la dernière version correspondante
    for release in json_load:
        if "assets" in release:
            for download in release["assets"]:
                if download["browser_download_url"].endswith('.zip') and dict_arch[control.architecture] in download["browser_download_url"]:
                    url_dl = download["browser_download_url"]
                    version = release["tag_name"]
                    filename= download["name"]
                    break
        if url_dl:
            break  # Sortir de la boucle externe si la bonne version est trouvée

    if not isfile(filename):
        package_updated = True
        print(filename)
        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()
38d056ab130f7bf7c481c12636a4e9959de36561d3dfcbe54c6e3571bc0c1dc3 : WAPT/certificate.crt
162d1efa9c7d267721a315599c6ff5c36d14a33a06bfabcb7d6abd41b35ee6f8 : WAPT/control
ee2cd1b17c9e0906567e79e2a418c07c8e72fc5c3b950eacc971deafd205d557 : WAPT/icon.png
2c68b1c67750a857bccb2d19ee0a7a912e921f9d2f52c79507d7ce2232f59567 : luanti-5.10.0-macos.zip
e9a370cd0e3838fca15bbacf0314b65c9ca3b413690dac2d2d0cd98e48464d91 : luti.json
4a11c21f97d5d1410788cd72621f440fbe90791db31f0b2838e671315e7f0fe5 : setup.py
557df37d032bc11a4055e59bdea564bd8b0d3868c663031aff282f572431c637 : update_package.py