tis-whale icon

Whale

Silent install package for Whale

2.4.0-1

  • package: tis-whale
  • name: Whale
  • version: 2.4.0-1
  • categories: Utilities
  • maintainer: WAPT Team,Tranquil IT,Amel FRADJ
  • licence: opensource_free,wapt_public
  • target_os: windows
  • architecture: x64
  • signature_date:
  • size: 58.80 Mo
  • homepage : https://github.com/1000ch/whale/releases

package           : tis-whale
version           : 2.4.0-1
architecture      : x64
section           : base
priority          : optional
name              : Whale
categories        : Utilities
maintainer        : WAPT Team,Tranquil IT,Amel FRADJ
description       : This is an unofficial Trello application
depends           : 
conflicts         : 
maturity          : PROD
locale            : 
target_os         : windows
min_wapt_version  : 2.3
sources           : 
installed_size    : 
impacted_process  : 
description_fr    : Il s'agit d'une application Trello non officielle
description_pl    : Jest to nieoficjalna aplikacja Trello
description_de    : Es handelt sich um eine inoffizielle Trello-Anwendung
description_es    : Esta es una aplicación no oficial de Trello
description_pt    : Esta é uma aplicação não oficial do Trello
description_it    : Questa è un'applicazione Trello non ufficiale
description_nl    : Dit is een onofficiële Trello-toepassing
description_ru    : Это неофициальное приложение Trello
audit_schedule    : 
editor            : 
keywords          : 
licence           : opensource_free,wapt_public
homepage          : https://github.com/1000ch/whale/releases
package_uuid      : 2467ccdc-fc6e-479c-87e3-b15edf84e6a1
valid_from        : 
valid_until       : 
forced_install_on : 
changelog         : 
min_os_version    : 
max_os_version    : 
icon_sha256sum    : 9642954509fbba609857502f55013566122cfab86f5b960a1dc3a8c208019af4
signer            : Tranquil IT
signer_fingerprint: 8c5127a75392be9cc9afd0dbae1222a673072c308c14d88ab246e23832e8c6bb
signature_date    : 2024-10-23T09:06:25.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         : jbtLQoTrdqWTbpzuuYV1rj06KvcbF72vKKelhsv/rqMbJPUv1AqxGdzfe1cLfiiZ/87m7R9SqLSDBhcH5dPUR1FMRjeySuFb7ePTmNr20Hfhfz4xk8pzBf/hK2Un7M8p07CynzOMa0rgUh183UBaLyN6Xifgf7imb0eXGMEVqyN3s2HlGv4WCqzA9ATze9EYPshRI2pmex9oqJkVf3l21g6IXTun4Dnd14nRwuTIU9tzH5JM2kml2ubc2N2rUJNYdF7NHZ8PDL7+Cs8Nr7KkOpE6PBxO8QhMe4LjVvFtDx9fCZVjUHCt8m5lY0CkquUsp8nHWnKgDpN3wx22J+KwpA==

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

app_name = "whale"

app_dir = makepath(programfiles, app_name)



def install():
    bin_name = glob.glob('*.exe')[0]
    app_path = makepath(app_dir, bin_name)
    # Installing software
    killalltasks(ensure_list(control.impacted_process))
    if isdir(app_dir) and force:
        remove_tree(app_dir)
    mkdirs(app_dir)
    filecopyto(bin_name, app_path)

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


def uninstall():
    # Uninstalling software
    killalltasks(ensure_list(control.impacted_process))
    for uninstall in installed_softwares('whale'):
        uninstall_string = uninstall.get("uninstall_string", "")
        print(f"Uninstalling whale: {uninstall_string}")
        run(f"{uninstall_string} --uninstall --uninstall -s")
        wait_uninstallkey_absent(uninstall['key'],max_loop=600)
    if isdir(app_dir):
        remove_tree(app_dir)

    # Removing shortcuts
    remove_desktop_shortcut(app_name)
    remove_programs_menu_shortcut(app_name)

# -*- 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()
    
    git_repo = "1000ch/whale"
    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('.exe') :
            url_dl = download["browser_download_url"]
            version = json_load["tag_name"].replace("v","")
            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('*.exe'):
        if f != filename:
            remove_file(f)

    version =get_version_from_binary(filename)
    control.set_software_version(version)
    control.save_control_to_wapt()

38d056ab130f7bf7c481c12636a4e9959de36561d3dfcbe54c6e3571bc0c1dc3 : WAPT/certificate.crt
f4d2a3cbed58b5797d1dd07d45ed7a15c46dd275c0f8ff53822517e807712dd6 : WAPT/control
9642954509fbba609857502f55013566122cfab86f5b960a1dc3a8c208019af4 : WAPT/icon.png
a81e6cbdebda44da2f06de139456849bc86ffd8a4ad07b047de3db828136c39a : Whale.Setup.2.4.0.exe
6bbd1d76b2fc828ddf1ef9e0a4ee5f89d56a1eb2a753d17717ef5d6afecc4036 : luti.json
056fce850c6da7ed0e34ef64fb775a96cc03480785ed7687f7bea905d9213133 : setup.py
a8bdba621ae1b6bc1caf2e8ead5cf92fc61ccd9facdd4efead40ecd541baaadc : update_package.py