tis-freetube icon

FreeTube

Silent install package for FreeTube

0.23.9-1

  • package: tis-freetube
  • name: FreeTube
  • version: 0.23.9-1
  • categories: Media
  • maintainer: WAPT Team,Tranquil IT,Clément BAZIRET
  • licence: opensource_free,cpe:/a:gnu:agpl_v3,wapt_private
  • target_os: redhat_based
  • impacted_process: FreeTube
  • architecture: x64
  • signature_date:
  • size: 76.21 Mo
  • installed_size: 234.53 Mo
  • homepage : https://freetubeapp.io/

package           : tis-freetube
version           : 0.23.9-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         : redhat_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      : a390e736-4c0a-4fb4-a16a-0e0a5374e5c4
valid_from        : 
valid_until       : 
forced_install_on : 
changelog         : https://github.com/FreeTubeApp/FreeTube/releases
min_os_version    : 8
max_os_version    : 
icon_sha256sum    : 73690d9ca8dedea327ab056fc2f08fc5117581a030492aea0bb76604247c6cbf
signer            : Tranquil IT
signer_fingerprint: 8c5127a75392be9cc9afd0dbae1222a673072c308c14d88ab246e23832e8c6bb
signature_date    : 2025-09-19T11:11:03.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         : Vxf75mg5cpBomOVkbkXU01yWnICvfO72FwIyEBpnFva49Q8cEuc4gFWkYB5TgqKrLeueLGRDPDMQmSoqbEKGDW/1LJhHQ2/8V8OXyP26yrJw2qMu9LvgYb39BSXVsj6PAHmK+jqv+tIZnB/dxjFoMBxIfxchsmRttZGHBTYHF+nNeI0OhT/BLs4SkD1mLbAPbkrCmMMJ+BrjPofMZ259hKpoa/2Psy2t4R/8GRFHMTAUc/iR5416mahviZ+QIkG8L3HnDD7ao3Fi/Sf0kqeGGaRmMo4EsK9fNDSo94UFch0nH6oGRTPFkdLaTt1ShktrQaWW+d9OukMs51UeTg0V+A==

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


def install():
    bin_name = glob.glob("freetube*amd64.rpm")[0]

    if get_distrib_linux() == "almalinux" and get_distrib_version().startswith("10"):   
        run('LANG=C yum install -y epel-release', timeout=900)

    if get_distrib_linux() == 'fedora':
        install_yum(bin_name)
    else:
        install_rpm(bin_name)

def uninstall():
    uninstall_yum("freetube")

# -*- 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
94cf05be91c31e0710bf161ef7d4e7dad06add9d47c351890c6582cc124d276c : WAPT/control
73690d9ca8dedea327ab056fc2f08fc5117581a030492aea0bb76604247c6cbf : WAPT/icon.png
115f9e145cf56bb30b15de2999ee15ae3f81815f0c20600b1cec9e0f43b44264 : freetube-0.23.9-beta.amd64.rpm
99985da43e523f55141318a42dc13cb2a0638d4586b7b8dc32cffa1baf26c2a4 : luti.json
97c3e23ea81022e9876f0267718730679c39e156f412633f21fb9f5c7c617170 : setup.py
a8443fd9f8ff401b5a3989127c6e18215b57a4aa440c428b4c52ed1a3d35259e : update_package.py