tis-line-portable icon

LINE

Paquet d’installation silencieuse pour LINE

1.0.0.21-1

  • package: tis-line-portable
  • name: LINE
  • version: 1.0.0.21-1
  • categories: Messaging
  • maintainer: WAPT Team,Tranquil IT,Amel FRADJ,
  • licence: opensource_free,wapt_private
  • target_os: windows
  • architecture: all
  • signature_date:
  • size: 348.44 Ko

package           : tis-line-portable
version           : 1.0.0.21-1
architecture      : all
section           : base
priority          : optional
name              : LINE
categories        : Messaging
maintainer        : WAPT Team,Tranquil IT,Amel FRADJ,
description       : Free SMS messaging application, free voice call
depends           : 
conflicts         : 
maturity          : PROD
locale            : 
target_os         : windows
min_wapt_version  : 2.3
sources           : 
installed_size    : 
impacted_process  : 
description_fr    : Application de messagerie SMS gratuite, appel vocal gratuit
description_pl    : Bezpłatna aplikacja do przesyłania wiadomości SMS, bezpłatne połączenia głosowe
description_de    : Kostenlose SMS-Anwendung, kostenloser Sprachanruf
description_es    : Aplicación gratuita de mensajería SMS, llamadas de voz gratuitas
description_pt    : Aplicação de mensagens SMS gratuita, chamada de voz gratuita
description_it    : Applicazione di messaggistica SMS gratuita, chiamata vocale gratuita
description_nl    : Gratis sms-berichten, gratis telefoongesprekken
description_ru    : Бесплатное приложение для обмена SMS-сообщениями, бесплатные голосовые звонки
audit_schedule    : 
editor            : 
keywords          : 
licence           : opensource_free,wapt_private
homepage          : 
package_uuid      : 5da09ee1-a4b5-41f7-944d-3f78f0d120df
valid_from        : 
valid_until       : 
forced_install_on : 
changelog         : 
min_os_version    : 
max_os_version    : 
icon_sha256sum    : 783b23bb1c2a180c59c3f9a79c7d23cf86d1733dd66cbce145ba37b960fb15fa
signer            : Tranquil IT
signer_fingerprint: 8c5127a75392be9cc9afd0dbae1222a673072c308c14d88ab246e23832e8c6bb
signature_date    : 2024-12-09T09:03:17.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         : Ybx/u4ZpSsQXw/NfyzutwZhpxQjE/s8xTjNMT00a1w9+mymGb45cY+bdctO9LtMD9eftc3PqOE+3YDqOkw8iOHgzkPQTR7q8wZgvzxuU9EkARjfIxD51g4VHU7T/gOi3rYESYJQhLTGivntMp48oUf/pcpMg1IvH3VlWLnUwOo303YxrMg/ke/AdwcE7O2aYjjaRk8Eq71qjA2eRvi4IfLynQvojJOs13dCNImBn9R0qe0/YOUZ8e6ajMLPT4U8/17nbBEo7YBPlifaDJRFgKurFzSqLHMqvS8khqvAcll74ERKZWWCXOq0L0zPJ+BNHxejJlrlfBPaHTFAZKQwe7A==

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


app_name = "Internxt"
app_dir = r"C:\Users\Administrator\AppData\Local\LINE\bin"


def install():
    # Trouver le premier fichier .exe dans le répertoire courant
    bin_name = glob.glob("*.exe")

    if not bin_name:
        raise FileNotFoundError("Aucun fichier .exe trouvé pour l'installation.")

    bin_name = bin_name[0]
    app_path = makepath(app_dir, bin_name)

    # Tuer tous les processus impactés avant l'installation
    killalltasks(ensure_list(control.impacted_process))

    # Supprimer l'installation existante si 'force' est vrai
    if isdir(app_dir) and force:
        remove_tree(app_dir)

    mkdirs(app_dir)
    filecopyto(bin_name, app_path)

    # Exécuter l'installateur avec le drapeau silencieux
    try:
        run(f'"{app_path}" /S')
    except Exception as e:
        print(f"Erreur lors de l'exécution de l'installateur : {e}")


def uninstall():
    # Killing any impacted processes before uninstallation
    killalltasks(ensure_list(control.impacted_process))

    # Command to uninstall internxt silently
    uninstall_cmd = r'"C:\Users\Administrator\AppData\Local\LINE\bin\Uninstall LineUnInst.exe" /S'

    try:
        # Attempt to run the uninstaller with the silent flag
        result = run(uninstall_cmd, accept_returncodes=[0, 3010, 1641])
        print(f"Uninstall command result: {result}")
    except Exception as e:
        print(f"Failed to uninstall internxt: {e}")

    if isdir(app_dir):
        remove_tree(app_dir)

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


def update_package():
    # Declaring local variables
    package_updated = False

    proxies = get_proxies_from_wapt_console()
    if not proxies:
        proxies = get_proxies()

    download_url = "https://desktop.line-scdn.net/win/new/LineInst.exe"
    latest_bin = download_url.split("/")[-1]

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

    # Deleting outdated binaries
    for f in glob.glob("*.exe"):
        if f != latest_bin:
            remove_file(f)

    version = get_version_from_binary(latest_bin)
    # Mettre à jour le package
    control.set_software_version(version)
    control.save_control_to_wapt()

35018e18982188fc5f485f462e7a77fade7e0cb632faf632e163622815b9e90a : LineInst.exe
38d056ab130f7bf7c481c12636a4e9959de36561d3dfcbe54c6e3571bc0c1dc3 : WAPT/certificate.crt
709974b1714f6e301e4bf0bbb91963be0b0d831d39b764dfcec03ee47a309e6f : WAPT/control
783b23bb1c2a180c59c3f9a79c7d23cf86d1733dd66cbce145ba37b960fb15fa : WAPT/icon.png
9dcdf4b568e18d458ffa055e386f181770070e4dbad605e3e3a6e57da44fd672 : luti.json
7f5119091005bf3aec306baaa3402c42b5b64940230a772d1fb255ed0781b9a3 : setup.py
50571d3d3ce67628e0bcb18a7dfa87171f84a20854a35957b36a7f26c8754f7a : update_package.py