tis-torrent-file-editor-portable icon

torrent file editor

Silent install package for torrent file editor

1.0.0-1

  • package: tis-torrent-file-editor-portable
  • name: torrent file editor
  • version: 1.0.0-1
  • maintainer: Amel FRADJ
  • licence: GPL-3.0 license
  • target_os: windows
  • architecture: x86
  • signature_date:
  • size: 6.61 Mo
  • homepage : https://torrent-file-editor.github.io/

package           : tis-torrent-file-editor-portable
version           : 1.0.0-1
architecture      : x86
section           : base
priority          : optional
name              : torrent file editor
categories        : 
maintainer        : Amel FRADJ
description       : Torrent File EditorCross-platform application for creating and editing .torrent and uTorrent .dat files
depends           : 
conflicts         : 
maturity          : PROD
locale            : 
target_os         : windows
min_wapt_version  : 
sources           : https://github.com/torrent-file-editor/torrent-file-editor
installed_size    : 
impacted_process  : 
description_fr    : Torrent File EditorApplication multiplateforme destinée à créer et éditer des fichiers .torrent et uTorrent .dat
description_pl    : Torrent File EditorPlatformowa aplikacja do tworzenia i edytowania plików .torrent i .dat uTorrent
description_de    : Torrent File EditorPlattformübergreifende Anwendung zum Erstellen und Bearbeiten von .torrent- und uTorrent .dat-Dateien
description_es    : Torrent File EditorUna aplicación multiplataforma para crear y editar archivos .torrent y uTorrent .dat
description_pt    : Torrent File EditorUma aplicação multiplataforma para criar e editar ficheiros .torrent e uTorrent .dat
description_it    : Editor di file TorrentUn'applicazione multipiattaforma per la creazione e la modifica di file .torrent e uTorrent .dat
description_nl    : Torrent File EditorEen cross-platform toepassing voor het maken en bewerken van .torrent- en uTorrent .dat-bestanden
description_ru    : Редактор торрент-файловКроссплатформенное приложение для создания и редактирования файлов .torrent и uTorrent .dat
audit_schedule    : 
editor            : 
keywords          : 
licence           : GPL-3.0 license
homepage          : https://torrent-file-editor.github.io/
package_uuid      : f41d5fc5-c2f3-4408-b923-dfa6c214055f
valid_from        : 
valid_until       : 
forced_install_on : 
changelog         : 
min_os_version    : 
max_os_version    : 
icon_sha256sum    : 428b5f74581042b92994dbd7a79ae1311812bfe6ce0a3ac9938832954571e973
signer            : Tranquil IT
signer_fingerprint: 8c5127a75392be9cc9afd0dbae1222a673072c308c14d88ab246e23832e8c6bb
signature_date    : 2024-10-13T10:02:26.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         : U1kDFMVuchXQHhyEKG8+O8jcrgx/MhSFQTzjZyRnnyLXsYxt0uVuYd6GjuPMvDdHPa9jvlm02Ltv0bLkJHZToT6oEqo3zknCUwIqrclTv4p31y2tRVZf/8GBciZZKdxjtyCuoAmbaN280iCrIY0hD/N3CgSoqbRigr8wJmgS5pm2y4iPTBJYHRfTJCpAff3Eisig8ZXOgV5qFIlFRxdc0D9sf/Ena1F5rI8tqd44EjJ3TN7IXPfyCOKnWKQNV7NcYAes1yl/nu/ayna0Z45J2CAEyqzNI048Bs12sKnkw5QV/D7TmaBlJblLanhxgwbSBiYhn6Dbb1Ph6q7s+TMZfg==

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

app_name = "torrent-file-editor"

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('torrent-file-editor'):
        uninstall_string = uninstall.get("uninstall_string", "")
        print(f"Uninstalling torrent-file-editor : {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 *
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" : "-x64.exe",
        "x86" : "-x32.exe" 
    }
    git_repo = "torrent-file-editor/torrent-file-editor"
    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") and dict_arch[control.architecture] in download["browser_download_url"] :
            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).replace("v","")
    control.set_software_version(version)
    control.save_control_to_wapt()

38d056ab130f7bf7c481c12636a4e9959de36561d3dfcbe54c6e3571bc0c1dc3 : WAPT/certificate.crt
9f5ea30a85e44265504d5ba073fb7c717250ba3a415a84ca1b38098d99cc1cb3 : WAPT/control
428b5f74581042b92994dbd7a79ae1311812bfe6ce0a3ac9938832954571e973 : WAPT/icon.png
70fc647434163399e83160f8aa5905083180aac9bd3b24b6683bdb1c661d581d : luti.json
eecc944a5b0dc5cbd6ad4a69a9a206739cccb63c3a56efc5ea9d1163bb93191e : setup.py
c129667c6e428af088bda5ef378e3009ccadefc0c42012b935554e789060dd5c : torrent-file-editor-1.0.0-x32.exe
7a0aa175a5bf63a79f00ea1f00abc1f5d9ab11463e86f7c2d8bca2ab43d833e3 : update_package.py