tis-firebird

4.0.2.2816-3
Firebird is a relational database offering many ANSI SQL standard features that runs on Linux, Windows, MacOS and a variety of Unix platforms
2103 downloads
Download
See build result See VirusTotal scan
tis-firebird icon
  • package : tis-firebird
  • name : Firebird
  • version : 4.0.2.2816-3
  • categories : System and network
  • maintainer : WAPT Team,Tranquil IT,Hubert TOUVET,Gaëtan SEGAT
  • editor : Projet Firebird
  • licence : Interbase Public Licence
  • locale :
  • target_os : windows
  • impacted_process : isql
  • architecture : x64
  • signature_date : 2022-08-28 19:00
  • size : 25.60 Mo
  • installed_size : 68.45 Mo
  • homepage : https://firebirdsql.org/
package           : tis-firebird
version           : 4.0.2.2816-3
architecture      : x64
section           : base
priority          : optional
name              : Firebird
categories        : System and network
maintainer        : WAPT Team,Tranquil IT,Hubert TOUVET,Gaëtan SEGAT
description       : Firebird is a relational database offering many ANSI SQL standard features that runs on Linux, Windows, MacOS and a variety of Unix platforms
depends           : 
conflicts         : 
maturity          : PROD
locale            : 
target_os         : windows
min_wapt_version  : 2.0
sources           : https://github.com/FirebirdSQL/firebird/releases
installed_size    : 68448256
impacted_process  : isql
description_fr    : Firebird est une base de données relationnelle offrant de nombreuses fonctionnalités standard ANSI SQL et fonctionnant sur Linux, Windows, MacOS et une variété de plateformes Unix
description_pl    : 
description_de    : 
description_es    : 
description_pt    : 
description_it    : 
description_nl    : 
description_ru    : 
audit_schedule    : 
editor            : Projet Firebird
keywords          : database
licence           : Interbase Public Licence
homepage          : https://firebirdsql.org/
package_uuid      : 7bccb449-4919-4c00-862b-be992f226169
valid_from        : 
valid_until       : 
forced_install_on : 
changelog         : https://github.com/FirebirdSQL/firebird/releases
min_os_version    : 
max_os_version    : 
icon_sha256sum    : a5ff5ab2391e5fa9f441b9bc658720e00e7f38df9fd5cef5b905d85311717327
signer            : Tranquil IT
signer_fingerprint: 8c5127a75392be9cc9afd0dbae1222a673072c308c14d88ab246e23832e8c6bb
signature         : SyibBYa3IuQ65vEk5dszm2MLRU8Ny8n0F+zc/kHneXfoayncWiAqIMPE2OhoBUWYEt7FyQYp9jHllIjjBYpx4G5fdN8q0871iZJebL2SmXgHlLU9zyfFEQD3fzhH0SHv8dcCp/gO26XloMdGUSd3ZzWvRfNrYhoHhYyDeSKY/oHbBqSB2H/7PwrqGIlLIT4EEJOvYQLZtjkL1TIDap1JwBkChnEonjeFwDqZk3bjKOQdWVtmo6IyVM36tm6Sk+fPMccHRjiNcvm2TRNFsU6M8aPrGc+297NqRyeEuXUs1Ryo1gMZ3K0tfrypANXvSY0agcAKj/YP75ztoGFmumSI8Q==
signature_date    : 2022-08-28T19:00:29.686703
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 *


def install():
    # Declaring local variables
    bin_name = glob.glob("Firebird*.exe")[0]
    version = control.get_software_version()
    version_key = "_".join([version.split(".")[0], version.split(".")[1]])

    # Installing the software
    install_exe_if_needed(
        bin_name,
        silentflags="/SILENT /VERYSILENT /SP-",
        key=f"FBDBServer_{version_key}_x64_is1",
        min_version=version,
    )


def uninstall():
    # Remove CRT librairies
    for uninstall in installed_softwares("MSI"):
        if "Firebird" in uninstall["publisher"]:
            print("Uninstall %s" % uninstall["name"])
            cmd = uninstall_cmd(uninstall["key"])
            run(cmd)

    # Remove Firebird tree
    for tree in glob.glob(makepath(programfiles, "*")):
        if "Firebird" in tree:
            remove_tree(tree)
# -*- coding: utf-8 -*-
from setuphelpers import *
import json


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
    api_url = "https://api.github.com/repos/FirebirdSQL/firebird/releases/latest"
    bin_contains = "Firebird-"
    bin_ends = "x64.exe"

    # Getting latest version information from official sources
    print("API used is: %s" % api_url)
    json_load = json.loads(wgets(api_url, proxies=proxies))
    for download in json_load["assets"]:
        if bin_contains in download["name"] and bin_ends in download["name"]:
            download_url = download["browser_download_url"]
            version = json_load["tag_name"].split("-")[-1].replace("v", "")
            latest_bin = download["name"]
            break

    # Downloading latest binaries
    print("Latest %s version is: %s" % (app_name, version))
    print("Download URL is: %s" % download_url)
    if not isfile(latest_bin):
        print("Downloading: %s" % latest_bin)
        wget(download_url, latest_bin, proxies=proxies)
    else:
        print("Binary is present: %s" % latest_bin)

    # Checking version from file
    version_from_file = get_version_from_binary(latest_bin).split("-")[0]
    if Version(version_from_file) != Version(version) and version_from_file != "":
        version = version_from_file
    else:
        print("Binary file version corresponds to online version")

    # Changing version of the package
    if Version(version) > Version(control.get_software_version()):
        print("Software version updated (from: %s to: %s)" % (control.get_software_version(), Version(version)))
        package_updated = True
    else:
        print("Software version up-to-date (%s)" % Version(version))
    control.set_software_version(version)
    control.save_control_to_wapt()

    # Deleting outdated binaries
    remove_outdated_binaries(version)

    # Validating update-package-sources
    return package_updated
584f4fcc542b4b601c6aca37bc928b00382bb7273c3981b482a4da407b6ed249 : setup.py
dc0d4dd6e11a635789c97c44d96b3ac7140afa50a681be63c35eccf6f3945b77 : Firebird-4.0.2.2816-0-x64.exe
7fb93cf5c1a6a4fbb68acc5de726d1a77289374ef9ac3a5f040eac7d5ef446a6 : update_package.py
a5ff5ab2391e5fa9f441b9bc658720e00e7f38df9fd5cef5b905d85311717327 : WAPT/icon.png
a5a97261381e1d0ad46ee15916abec9c2631d0201f5cc50ceb0197a165a0bbbf : WAPT/certificate.crt
b6289191a553da7b00201049752869fd8fce3e75bdc325fc4688366efe0053c1 : WAPT/changelog.txt
2a2186856b51e0a386a9a7e4ca02567ae03462542120975b5a12b63fc0256677 : luti.json
5d267401381a2b9780616d964ded05b8af71f9ffc1b037dd1307068f06af6eaf : WAPT/control
4.0.2.2816
===
split update package
improve code