tis-jan icon

Jan

Paquet d’installation silencieuse pour Jan

0.6.10-4

Les paquets PREPROD sont des paquets construits via LUTI. Ils restent généralement 5 jours en PREPROD, après quoi un scan VirusTotal est effectué.
Si le paquet réussit ce dernier contrôle, il est promu en PROD et publié sur le store.

  • package: tis-jan
  • name: Jan
  • version: 0.6.10-4
  • categories: Utilities
  • maintainer: WAPT Team,Tranquil IT,Jimmy PELÉ
  • target_os: windows
  • impacted_process: Jan.exe
  • architecture: x64
  • signature_date:
  • size: 47.45 Mo
  • installed_size: 2.89 Go
  • depends:

package           : tis-jan
version           : 0.6.10-4
architecture      : x64
section           : base
priority          : optional
name              : Jan
categories        : Utilities
maintainer        : WAPT Team,Tranquil IT,Jimmy PELÉ
description       : Jan - Bring AI to your Desktop
depends           : tis-7zip
conflicts         : 
maturity          : PREPROD
locale            : 
target_os         : windows
min_wapt_version  : 2.4
sources           : 
installed_size    : 2888863744
impacted_process  : Jan.exe
description_fr    : Jan - L'IA sur votre bureau
description_pl    : Jan - Przenieś sztuczną inteligencję na swój pulpit
description_de    : Jan - Bringen Sie AI auf Ihren Desktop
description_es    : Jan - Lleve la IA a su escritorio
description_pt    : Jan - Traga a IA para o seu ambiente de trabalho
description_it    : Jan - Porta l'intelligenza artificiale sul tuo desktop
description_nl    : Jan - Breng AI naar je desktop
description_ru    : Jan - Привнесите искусственный интеллект на рабочий стол
audit_schedule    : 
editor            : 
keywords          : 
licence           : 
homepage          : 
package_uuid      : 13b6c380-8781-4061-8380-ca3282593184
valid_from        : 
valid_until       : 
forced_install_on : 
changelog         : 
min_os_version    : 
max_os_version    : 
icon_sha256sum    : 5f9aa2aaa342d6a7468a65ff28ae30917eb3c88ee0e9cf27734175d5dc0a73ce
signer            : test
signer_fingerprint: b82fc8ef4a4475c0f69ac168176c2bfc58f572eb716c4eadd65e4785c155dd8e
signature_date    : 2025-09-18T09:35:15.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         : MVHKVXh/q/0iiBAnnmcJbazlLxR7/Hj5tLJTTop7AvppsC1/eNldAlYwBPBq1rlal1aKOZYIx5TYzMGR/R3mGejrI17NliPEJ/27iPkHDdbCHZ6ylj7hVsKxvan9GVZAeTIKoQdLoJzGwCXzcokNRiBn68ZoV31sfFn6XPxGl2USvqP6GcOs+Mr0gS6uf4G5MMn6zxXJ7qqVMPHmuMwQlYzxo4VzAhOOxwFRRirg4GmqEbnqPJRkv7yxXKgG0vO38pVhJywWPu0wD9rQkeHowl3EVE2DIr1E0I86mAetn5ZJEX08/lrO3DgMZcAmm7LPHc5gVLF34MMFqy0bEXERpg==

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

app_name = "Jan"
app_dir = makepath(programfiles64, "Jan")
app_path = makepath(programfiles64, "Jan", "Jan.exe")

def get_installed_version(app_path):
    return get_file_properties(app_path).get("FileVersion", "")

def install():
    bin_name = glob.glob("Jan_*.exe")[0]
    bin_path = makepath(basedir, "Jan")
    unzip_with_7zip(bin_name, app_dir)

    create_desktop_shortcut(app_name, target=app_path)
    create_programs_menu_shortcut(app_name, target=app_path)

def session_setup():
    jan_dir_path_user = makepath(user_appdata, "Jan")
    jan_config_path_user = makepath(jan_dir_path_user, "config.json")

    current_conf = {}
    if isfile(jan_config_path_user):
        current_conf = json_load_file(jan_config_path_user)
    
    current_conf["migrated_version"] = control.get_software_version()

    if not isdir(jan_dir_path_user):
        mkdirs(jan_dir_path_user)
        
    json_write_file(jan_config_path_user, current_conf)

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)

    # Removing shortcuts
    remove_desktop_shortcut(app_name)
    remove_programs_menu_shortcut(app_name)

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


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/janhq/jan/releases/latest"

    # Getting latest version information from official sources
    print("API used is: %s" % api_url)
    json_load = wgets(api_url, proxies=proxies, as_json=True)
    version = json_load["tag_name"].replace("v", "")

    update_dict = {
        "windows-x64": f"Jan_{version}_x64-setup.exe",
    }

    os_type = control.target_os + "-" + ensure_list(control.architecture)[0]

    for to_download in json_load["assets"]:
        if to_download["name"] == update_dict[os_type]:
            download_url = to_download["browser_download_url"]
            latest_bin = to_download["name"]
            latest_bin_extension = latest_bin.rsplit('.', 1)[-1]
            break

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

    expected_issuer = "Menlo Research Pte. Ltd."
    sign_name = waptlicences.check_msi_signature(latest_bin)[0]
    if sign_name != expected_issuer:
        error(f'Bad issuer {sign_name} != {expected_issuer} ')

    # Changing version of the package
    if Version(version) > Version(control.get_software_version()):
        print(f"Software version updated (from: {control.get_software_version()} to: {Version(version)})")
        package_updated = True
    else:
        print(f"Software version up-to-date ({Version(version)})")

    for f in glob.glob(f'*.{latest_bin_extension}'):
        if f != latest_bin:
            remove_file(f)

    control.set_software_version(version)
    control.save_control_to_wapt()

    return package_updated

6b2e056fec7c27e1fe7a9ecf18965e1112db90eaae55307ebff9a25e3851e5e9 : Jan_0.6.10_x64-setup.exe
01ca7fe94636e5a08fcb73849d3b5df25d51e2c82f4dd1a08f01798b25899819 : WAPT/certificate.crt
7efca2e69c67919e8a880861e96b19095c3ef0657a54e1e80d53a48bee49092e : WAPT/control
5f9aa2aaa342d6a7468a65ff28ae30917eb3c88ee0e9cf27734175d5dc0a73ce : WAPT/icon.png
2f6fb713b2d0955c6ec06e4ddaabf114537ffb792036eb5985dae1c3e41f8a91 : luti.json
a5226b0ee13f453c3c02bfbd39b35d0b979b31ff760ff98727193b0aa1aa775b : setup.py
836175a278442dbce454c2503a69d4d9998d7b4639f89392e7b82626707a3ae9 : update_package.py