tis-freetube

0.23.7-1
FreeTube is an Open Source desktop application that allows you to browse YouTube more privately
10097 downloads
Download
See build result See VirusTotal scan
tis-freetube icon
  • package : tis-freetube
  • name : FreeTube
  • version : 0.23.7-1
  • categories : Media
  • maintainer : WAPT Team,Tranquil IT,Clément BAZIRET
  • editor :
  • licence : opensource_free,cpe:/a:gnu:agpl_v3,wapt_private
  • locale :
  • target_os : debian_based
  • impacted_process : FreeTube
  • architecture : x64
  • signature_date : 2025-08-20 19:03
  • size : 76.28 Mo
  • installed_size : 234.53 Mo
  • homepage : https://freetubeapp.io/
package           : tis-freetube
version           : 0.23.7-1
architecture      : x64
section           : base
priority          : optional
name              : FreeTube
categories        : Media
maintainer        : WAPT Team,Tranquil IT,Clément BAZIRET
description       : FreeTube is an Open Source desktop application that allows you to browse YouTube more privately
depends           : 
conflicts         : 
maturity          : PROD
locale            : 
target_os         : debian_based
min_wapt_version  : 2.3
sources           : https://github.com/FreeTubeApp/FreeTube/releases
installed_size    : 234527874
impacted_process  : FreeTube
description_fr    : FreeTube est une application de bureau Open Source qui vous permet de naviguer sur YouTube de manière plus privée
description_pl    : FreeTube to aplikacja desktopowa typu Open Source, która pozwala przeglądać YouTube bardziej prywatnie
description_de    : FreeTube ist eine Open-Source-Desktop-Anwendung, die es Ihnen ermöglicht, YouTube noch privater zu durchsuchen
description_es    : FreeTube es una aplicación de escritorio de código abierto que te permite navegar por YouTube de forma más privada
description_pt    : O FreeTube é uma aplicação de ambiente de trabalho de código aberto que lhe permite navegar no YouTube de forma mais privada
description_it    : FreeTube è un'applicazione desktop open source che consente di navigare su YouTube in modo più riservato
description_nl    : FreeTube is een Open Source bureaubladtoepassing waarmee je veiliger door YouTube kunt bladeren
description_ru    : FreeTube - это настольное приложение с открытым исходным кодом, которое позволяет просматривать YouTube в более приватном режиме
audit_schedule    : 
editor            : 
keywords          : freetube,browse,youtube,privately
licence           : opensource_free,cpe:/a:gnu:agpl_v3,wapt_private
homepage          : https://freetubeapp.io/
package_uuid      : aa331d03-48ce-4d7d-8698-6f8e08dfd548
valid_from        : 
valid_until       : 
forced_install_on : 
changelog         : https://github.com/FreeTubeApp/FreeTube/releases
min_os_version    : 
max_os_version    : 
icon_sha256sum    : 73690d9ca8dedea327ab056fc2f08fc5117581a030492aea0bb76604247c6cbf
signer            : Tranquil IT
signer_fingerprint: 8c5127a75392be9cc9afd0dbae1222a673072c308c14d88ab246e23832e8c6bb
signature_date    : 2025-08-20T19:03:56.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         : K7v4V5nBHKMgDMz0JlHXes5dQthYP5DDZoz4sUIi3b6Quczz1r8perpgAcD2p+gQzwg9l4LjDHLHwdpj2iWwqHADxv+qLYoYs0yVVIG5GhBTOgbAeT6yPhH1J49NBnb61HnKCrp/aM+tutIlYMJB6oiURa8Yca9n1JaNM2X8v4uk2BLb3aQZxk3Qcz8aKvjBgVuJ6Wa4gA0CnSvFZt9FpBub0ko6iY2AkcNtLiEXvJ2bJm/11l9pRHcUX6rN7MJpQg3naMCeoBaj/8uWmCyEElmQ5Sg8LSHWdsdlv1DsIPyy9Qzo8SevE0z9N9kLVTVTDV4T3q6JZlndNQHxPhob8A==
# -*- coding: utf-8 -*-
from setuphelpers import *


def install():
    bin_name = glob.glob("freetube_*_amd64.deb")[0]
    install_deb(bin_name)


def uninstall():
    uninstall_apt("freetube")
    autoremove_apt()
# -*- coding: utf-8 -*-
from setuphelpers import *
from setupdevhelpers import *


def update_package():
    # Declaring local variables
    package_updated = False
    proxies = get_proxies()
    if not proxies:
        proxies = get_proxies_from_wapt_console()
    api_url = "https://api.github.com/repos/FreeTubeApp/FreeTube/releases"  # not /latest because releases are all in "pre-release"
    download_dict = {
        "windows-x64": "-setup-x64.exe",
        "windows-arm64": "-setup-arm64.exe",
        "redhat_based-x64": "amd64.rpm",
        "redhat_based-arm64": "arm64.rpm",
        "debian_based-x64": "amd64.deb",
        "debian_based-arm64": "arm64.deb",
        "macos-x64": "-mac-x64.dmg",
    }

    # Getting latest version information from official sources
    print("API used is: %s" % api_url)
    json_load = wgets(api_url, proxies=proxies, as_json=True)[0]
    version = json_load["tag_name"].replace("v", "").replace("-beta", "")
    for to_download in json_load["assets"]:
        if download_dict[control.target_os + "-" + ensure_list(control.architecture)[0]] in to_download["name"]:
            download_url = to_download["browser_download_url"]
            latest_bin = to_download["name"]
            break

    # Downloading latest binaries
    print("Latest %s version is: %s" % (control.name, version))
    print("Download URL is: %s" % download_url)
    if not isfile(latest_bin):
        print("Downloading: %s" % latest_bin)
        wget(download_url, latest_bin, proxies=proxies)
    else:
        print("Binary is present: %s" % latest_bin)

    # Deleting outdated binaries
    remove_outdated_binaries(latest_bin)

    # Checking version from file
    if get_os_name() == "Windows" and "windows" in control.target_os.lower():
        version_from_file = get_version_from_binary(latest_bin)
        if Version(version_from_file, 4) == Version(version, 4):
            print(f"INFO: Binary file version ({version_from_file}) corresponds to online version ({version})")
        else:
            error(f"ERROR: Binary file version ({version_from_file}) do NOT corresponds to online version ({version})")

    # Changing version of the package
    if Version(version, 4) > Version(control.get_software_version(), 4):
        print("Software version updated (from: %s to: %s)" % (control.get_software_version(), Version(version)))
        package_updated = True
    else:
        print("Software version up-to-date (%s)" % Version(version))
    control.set_software_version(version)
    control.save_control_to_wapt()

    # Validating update-package-sources
    return package_updated
38d056ab130f7bf7c481c12636a4e9959de36561d3dfcbe54c6e3571bc0c1dc3 : WAPT/certificate.crt
b1307bf7967199f8a00639ccde1c061fbc14a4af092baabf2076c351914edacd : WAPT/control
73690d9ca8dedea327ab056fc2f08fc5117581a030492aea0bb76604247c6cbf : WAPT/icon.png
f1b42942088ea6640e81dbced0c4efda5d5d54129f718c8848f9ae791d9fdf0a : freetube_0.23.7_beta_amd64.deb
4201c10c2f023ddde71a9ddcb21c14b953157ac24ac9ec9eb110255bbc098635 : luti.json
48cad54404a3a6eb406cbee80fcfd75529a39d85beb68d5da0f0894d051a3146 : setup.py
a8443fd9f8ff401b5a3989127c6e18215b57a4aa440c428b4c52ed1a3d35259e : update_package.py