tis-just-portable icon

just

Silent install package for just

1.40.0-1

  • package: tis-just-portable
  • name: just
  • version: 1.40.0-1
  • maintainer: Amel FRADJ
  • licence: CC0-1.0 license
  • target_os: windows
  • architecture: x64
  • signature_date:
  • size: 1.73 Mo
  • homepage : just.systems

package           : tis-just-portable
version           : 1.40.0-1
architecture      : x64
section           : base
priority          : optional
name              : just
categories        : 
maintainer        : Amel FRADJ
description       : justis a convenient way of recording and executing project-specific commands
depends           : 
conflicts         : 
maturity          : PROD
locale            : 
target_os         : windows
min_wapt_version  : 
sources           : 
installed_size    : 
impacted_process  : 
description_fr    : justest un moyen pratique d'enregistrer et d'exécuter des commandes spécifiques au projet
description_pl    : justis to praktyczny sposób rejestrowania i wykonywania poleceń specyficznych dla projektu
description_de    : justest eine praktische Möglichkeit, projektspezifische Befehle zu speichern und auszuführen
description_es    : justis es una forma práctica de registrar y ejecutar comandos específicos del proyecto
description_pt    : justis é uma forma prática de registar e executar comandos específicos do projeto
description_it    : è un modo pratico per registrare ed eseguire comandi specifici per il progetto
description_nl    : justis een praktische manier om projectspecifieke commando's vast te leggen en uit te voeren
description_ru    : justis - это практичный способ записи и выполнения команд, специфичных для конкретного проекта
audit_schedule    : 
editor            : 
keywords          : 
licence           : CC0-1.0 license
homepage          : just.systems
package_uuid      : f1fbc17b-8386-4479-99a9-cea8e45cf6b6
valid_from        : 
valid_until       : 
forced_install_on : 
changelog         : 
min_os_version    : 
max_os_version    : 
icon_sha256sum    : e7f513b04e2450c171d1f26274e74b775f6e165350397a652b891fb33303f769
signer            : Tranquil IT
signer_fingerprint: 8c5127a75392be9cc9afd0dbae1222a673072c308c14d88ab246e23832e8c6bb
signature_date    : 2025-03-15T04:00:14.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         : PF/C5pg7bXK2IkjhTOmOj4KZxFH53uzGci8AWpoBI9U51YyGvUwjFaaxaijYqZtV+QeOeLO/ku1CSot+TYcIVlBafsacXH8OY+y3y9snoCXhWwL9JnxDvvyY+DVaKp3lCFRqhJGTrJVG5VHvzk5kpx0QYfsQuetVH2BTiyT0UC4uJBhQicucCd4hlXflHMFmMjEmQ/3KWTY+2LdM4xXmtVcZj5XS1CE4nU8XlV4aIUHqHyV1gpY8F4/NZZob3md1vvsO+WLRneqjbtT/3xpDF1II9iAvV6VhKFslj+iYAfDf+lfvmyYO9nGvmFnzBYH80WbS8Lu8qBoOJTdbFVnQOA==

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

"""


"""


app_name = "just "
editor_dir = makepath(programfiles, "just")
app_dir = makepath(editor_dir, "just")
app_path = makepath(app_dir, "just.exe")
#icon_path = makepath(app_dir, "resources", "app", "build", "crushee.ico")   #tis-crushee\windows\crushee\resources\resources\build
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"just-*.zip")[0]

    unzipped_dir = "just"


    # 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 cx cli to %s' % app_dir)
    copytree2(unzipped_dir, app_dir, onreplace=default_overwrite)

  


    add_to_system_path(app_dir)

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)

   

# -*- 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()
    dict_arch = {
        "x64" :"-x86_64-pc-windows-msvc.zip"
    }
    git_repo = "casey/just"
    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(".zip") and dict_arch[control.architecture] in download["browser_download_url"]:
            url_dl = download["browser_download_url"]
            version = json_load["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("*.zip"):
        if f != filename:
            remove_file(f)
    
    control.set_software_version(version)
    control.save_control_to_wapt()

38d056ab130f7bf7c481c12636a4e9959de36561d3dfcbe54c6e3571bc0c1dc3 : WAPT/certificate.crt
ab5492293f70ad01658cd3ab692b95821106e35091ce2dfea48c321da19bc1a2 : WAPT/control
e7f513b04e2450c171d1f26274e74b775f6e165350397a652b891fb33303f769 : WAPT/icon.png
50d7c9b3ef3e38169bb62020cf8b091ac55e989c862fb0dde8af5a9b2505526a : just-1.40.0-x86_64-pc-windows-msvc.zip
5329feef236007fd65aba4363d2c7a181c4e4359e37b297922ebed866eae26df : luti.json
f2dc1984014e30fe3dc4eaee0714f635767e852015801f425b316a7c33008d3c : setup.py
9f9297ba006ace92a00f1c78f69fee23329ca47c8ddae0d425dcfa62958dfe52 : update_package.py