tis-gdevelop4 icon

GDevelop

Silent install package for GDevelop

4.0.97-0
Development
Development

  • package: tis-gdevelop4
  • name: GDevelop
  • version: 4.0.97-0
  • categories: Development
  • maintainer: Tranquil IT Systems,Jimmy PELÉ
  • editor: Florian Rival (4ian)
  • licence: MIT
  • locale: all
  • target_os: windows
  • impacted_process: GDIDE.exe,GDIDE_dev.exe
  • architecture: all
  • signature_date:
  • size: 98.11 Mo
  • installed_size: 474.86 Mo
  • homepage : https://gdevelop-app.com/

package           : tis-gdevelop4
version           : 4.0.97-0
architecture      : all
section           : base
priority          : optional
name              : GDevelop
categories        : Development
maintainer        : Tranquil IT Systems,Jimmy PELÉ
description       : GDevelop 4 won't be updated anymore! - GDevelop is an open source, cross-platform game creator designed to be used by everyone - no programming skills are required to use the software. If you do not have GDevelop, download it now.
depends           : 
conflicts         : 
maturity          : PROD
locale            : all
target_os         : windows
min_wapt_version  : 1.5
sources           : https://github.com/4ian/GDevelop/releases/tag/4.0.97
installed_size    : 474861568
impacted_process  : GDIDE.exe,GDIDE_dev.exe
description_fr    : GDevelop 4 ne sera plus mis à jour ! - GDevelop est un logiciel de création de jeux open source, multiplateforme conçu pour être utilisé par tout le monde. Aucune programmation n'est requise, tout le processus de création se faisant à l'aide de l'éditeur.
description_pl    : GDevelop jest wieloplatformowym o otwartym kodzie zródlowym kreatorem gier, zaprojektowany do uzytkou przez wszystkich - do korzystania z oprogramowania nie sa wymagane umiejetnosci programistyczne. Jesli nie masz GDevelop, pobierz teraz!
description_de    : GDevelop ist eine Open Source, Cross-Platform Game Engine für Jedermann - Es sind keinerlei Programmierkenntnisse von nöten. Falls ihr GDevelop noch nicht heruntergeladen habt, tut es jetzt!
description_es    : GDevelop es un creador de juegos de código abierto, multiplataforma, diseñado para ser usado por todos - no se requieren conocimientos de programación. Si aún no tienes GDevelop, ¡puedes descargarlo ahora!
description_pt    : 
description_it    : 
description_nl    : 
description_ru    : 
audit_schedule    : 
editor            : Florian Rival (4ian)
keywords          : developement,game,games,create
licence           : MIT
homepage          : https://gdevelop-app.com/
package_uuid      : 564a21ac-e94c-4dcc-9db9-e8bf77f6835b
valid_from        : 
valid_until       : 
forced_install_on : 
changelog         : 
min_os_version    : 6.1
max_os_version    : 
icon_sha256sum    : 9a991b49dd0bed51032b75775513ec24b6c4b671bef5bf6e7c576333491dec6f
signer            : Tranquil IT
signer_fingerprint: 8c5127a75392be9cc9afd0dbae1222a673072c308c14d88ab246e23832e8c6bb
signature         : Pm9bPRscS7ipoEs/n771sYnMMZa9JabFhAWqc8ylgjHNMLaU/5qBAK8dPV2nCC8QsRE5RP6oIIYy4wSJbA6L8qgJFAjcg+RUf/b0mGtSrRPlJ6+ERXyM7DxTzUpJm9Vo95OJwTp7+bQr0wF+UmYTTMDQk87WHojLiiwKzJy+s3loD1Oti8z0mQvtJOJJ5KuhiLoLWhmbAtzbxmWzAtlFlMlEHcWclfljZ6eCuMw6Dluk9M+nOTk4zwUPtp6Z1AIu0zXaX5u8QBjfPqyTvIj9S+8jk8VJmhd37EQI4xUtYmSmLKuHPJgpOiyiE8PsmbTdneUp5gzGHVjoQW3jFl51oA==
signature_date    : 2022-01-30T12:02:32.603485
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

# -*- coding: utf-8 -*-
from setuphelpers import *

uninstallkey = []

# GDevelop_is1       GDevelop version 4.0        4.0         "C:\Program Files (x86)\GDevelop\unins000.exe"

# Declaring specific app values (TO CHANGE)
bin_name_string = "gdevelop-setup-%s.exe"
bin_name_joker = "gdevelop-setup-*.exe"
silent_arguments = "/VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP-"
uninstall_key = "GDevelop_is1"


def install():
    print("installing gdevelop")

    # Declaring specific app values
    package_version = control["version"].split("-", 1)[0]
    impacted_process = control["impacted_process"]

    install_exe_if_needed(
        bin_name_string % package_version, silentflags=silent_arguments, key=uninstall_key, min_version="4.0", killbefore=impacted_process
    )


def update_package():
    import bs4 as BeautifulSoup
    import requests, re

    # Declaring specific app values
    app_name = control["name"]
    url = control["sources"]

    # Get Proxy informations from WAPT settings
    proxies = {}
    if isfile(makepath(application_data(), "waptconsole", "waptconsole.ini")):
        proxywapt = inifile_readstring(makepath(user_local_appdata(), "waptconsole", "waptconsole.ini"), "global", "http_proxy")
        if proxywapt:
            proxies = {"http": proxywapt, "https": proxywapt}

    verify = True
    current_version = control.version.split("-", 1)[0]

    # Get version number from official website
    page = requests.get(url, headers={"User-Agent": "Mozilla/5.0 (Windows NT 6.1; Win64; x64)"}, verify=verify).text
    bs = BeautifulSoup.BeautifulSoup(page)
    bs_raw_string = str(bs.find("span", {"class": "css-truncate-target"}).text)
    version = bs_raw_string.strip()
    print(app_name + " version is: " + version)

    # Declaring binaries extension to download
    reg_bin = "(\.exe|\.msi)$"  # $ mean the end of regex chain
    end_bin = re.compile(reg_bin)

    links = bs.findAll("a", {"href": end_bin})
    part_url_dl = links[0]["href"]
    # print(part_url_dl)

    url_dl = "https://github.com" + part_url_dl
    print("Download url is: " + url_dl)

    latest_bin = bin_name_string % version

    # Deleting outdated binaries
    for actual_bin in glob.glob(bin_name_joker):
        if actual_bin != latest_bin:
            print(actual_bin + " Deleted")
            remove_file(actual_bin)

    # Downloading latest binaires
    if not isfile(latest_bin):
        print("Downloading " + url_dl)
        wget(url_dl, latest_bin, proxies=proxies)

        control.version = version + "-0"
        control.save_control_to_wapt(os.getcwd())
        print("Update package done. You can now build-upload your package")
    else:
        print("This package is already up-to-date")

6624e91f2495336fb8fbabcab4d8a3d9d5ad5d54ebe75ea177e444090dd1f77e : setup.py
9233a5599011c690dccb86632fd270edf917ab8d90c1217cff1265981707717b : gdevelop-setup-4.0.97.exe
9a991b49dd0bed51032b75775513ec24b6c4b671bef5bf6e7c576333491dec6f : WAPT/icon.png
a5a97261381e1d0ad46ee15916abec9c2631d0201f5cc50ceb0197a165a0bbbf : WAPT/certificate.crt
cb8c7692666f39bf9152e93363cba2684adbf534832d081c4a5d7aaab1921686 : luti.json
e7c73100d1c0b74ccaed2b7a619300ef7bbc68bd27533662f08eb147a77396e8 : WAPT/control