tis-torrent-file-editor-portable icon

torrent file editor

Silent install package for torrent file editor

0.3.18-1

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

package           : tis-torrent-file-editor-portable
version           : 0.3.18-1
architecture      : x64
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      : 82e158bc-4d93-44de-acec-8da929eebf4b
valid_from        : 
valid_until       : 
forced_install_on : 
changelog         : 
min_os_version    : 
max_os_version    : 
icon_sha256sum    : 428b5f74581042b92994dbd7a79ae1311812bfe6ce0a3ac9938832954571e973
signer            : Tranquil IT
signer_fingerprint: 8c5127a75392be9cc9afd0dbae1222a673072c308c14d88ab246e23832e8c6bb
signature         : AixQGW3cFwFBWnIukI1uABwJv1gSHR8tALFYaTtul/jD+pu1ZE0FOGDgB05orcTOH4MvlsTFy2DQ2KkIZNmR6Th0K+ap1KHts3JJsx6LBIFJ4V9IstetEOsDZS+R/7ku0e1Y9RyLK4ySL90E5IC6GjkwrxZNAwwJcUzVpVNK4GNh12zFg9R0x5MCv+7MIFhO3AQeBfEpAeQUYJdR3TVsntokAo0NExsDR0Cly1deRBjLhZTFYD838MyvzNHS4wYvutazHu5hq3YLZ0+9h5Sm+PVM5UaVrAtGrdZLhiZoR0FuieB29TN8NlycFrY+N2XTuiSEQRh4M1DH1LyPD6NqrQ==
signature_date    : 2024-06-23T14:00:11.172123
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

# -*- 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()

eecc944a5b0dc5cbd6ad4a69a9a206739cccb63c3a56efc5ea9d1163bb93191e : setup.py
5b8fdcea8a08ae2059110a68514b57e0ad8789bdc6b476f58688028816efcd7f : torrent-file-editor-0.3.18-x64.exe
7a0aa175a5bf63a79f00ea1f00abc1f5d9ab11463e86f7c2d8bca2ab43d833e3 : update_package.py
428b5f74581042b92994dbd7a79ae1311812bfe6ce0a3ac9938832954571e973 : WAPT/icon.png
a5a97261381e1d0ad46ee15916abec9c2631d0201f5cc50ceb0197a165a0bbbf : WAPT/certificate.crt
50d95021b54fd6f9e95c762f49f69192feebc1c00e31e18716176b7c999c1e1e : luti.json
5e824eadbdedbd6fd971c0cc1e4da33f571961f625c6a829bca4f0512c5d459f : WAPT/control