tis-clementine icon

Clementine

Paquet d’installation silencieuse pour Clementine

1.3.1-0

  • package: tis-clementine
  • name: Clementine
  • version: 1.3.1-0
  • categories: Media
  • maintainer: Tranquil IT,Pierre Cosson
  • editor: https://github.com/clementine-player/
  • licence: GPL-3.0 license
  • locale: all
  • target_os: windows
  • impacted_process: clementine
  • architecture: all
  • signature_date:
  • size: 21.97 Mo
  • installed_size: 22.05 Mo
  • homepage : https://www.clementine-player.org/

package           : tis-clementine
version           : 1.3.1-0
architecture      : all
section           : base
priority          : optional
name              : Clementine
categories        : Media
maintainer        : Tranquil IT,Pierre Cosson
description       : Clementine is a modern music player and library organizer for Windows, Linux and macOS.
depends           : 
conflicts         : 
maturity          : PROD
locale            : all
target_os         : windows
min_wapt_version  : 2.2
sources           : https://github.com/clementine-player/Clementine/releases
installed_size    : 22048768
impacted_process  : clementine
description_fr    : 
description_pl    : 
description_de    : 
description_es    : 
description_pt    : 
description_it    : 
description_nl    : 
description_ru    : 
audit_schedule    : 
editor            : https://github.com/clementine-player/
keywords          : 
licence           : GPL-3.0 license
homepage          : https://www.clementine-player.org/
package_uuid      : 8bfc241f-53b2-46b6-843b-d99018d4429a
valid_from        : 
valid_until       : 
forced_install_on : 
changelog         : https://github.com/clementine-player/Clementine/releases
min_os_version    : 
max_os_version    : 
icon_sha256sum    : 4540baa587c7da626a4d2058c88a8e66ed3930d12c91f2b562d04bc8e4c84a2f
signer            : Tranquil IT
signer_fingerprint: 8c5127a75392be9cc9afd0dbae1222a673072c308c14d88ab246e23832e8c6bb
signature         : iSXeTiHVyY1E3u6tCbfwy86NK893RuEOe5lv2bK0Inp2feFT8jHE0nEUiNVuzWY4wECuFIPM8XhO+UIt17Y+xZyYRLwZJgmNE+X8ulGKMo7OYzVJBZ+wH1T1fA5vMP8xlNKDyZKEApbOfP8Hz9bCJGnk582+GlgqOKzRRcZadX92u6LOxqTikJz+ilripPd3PqRmFSaRdVFY/uMX/Iwi1zSDAuwjBAtxMgpLyhAn8q1RJX+omSDco2KXdaFndl08PTVJ/xq486+s6qQABm4zr15uyuduI/5VBzSniPzXKfqpC/lKg3cubWVYZqBPJLHGyIMhV4AxIlCHrpeyebdBwA==
signature_date    : 2023-01-04T12:00:20.464930
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 *


def install():
    install_exe_if_needed(
        glob.glob("Clementine*.exe")[0],
        silentflags="/S",
        key="Clementine",
        min_version=control.get_software_version(),
    )

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


def update_package():
    # Declaring local variables
    package_updated = False
    proxies = get_proxies()
    if not proxies:
        proxies = get_proxies_from_wapt_console()
    app_name = control.name
    api_url = "https://api.github.com/repos/clementine-player/Clementine/releases/latest"

    # Getting latest version information from official sources
    print("API used is: %s" % api_url)
    json_load = json.loads(wgets(api_url, proxies=proxies))
    for download in json_load["assets"]:
        if "ClementineSetup" in download["name"] and ".exe" in download["name"]:
            download_url = download["browser_download_url"]
            version = json_load["tag_name"].split("-")[-1].replace("v", "")
            latest_bin = download["name"]
            break

    # Downloading latest binaries
    print("Latest %s version is: %s" % (app_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)

    # Checking version from file
    version_from_file = get_version_from_binary(latest_bin).split("-")[0]
    # if not version_from_file.startswith(version) and version_from_file != '':
    if Version(version_from_file) != Version(version) and version_from_file != "":
        print("Changing version to the version number of the binary")
        os.rename(latest_bin, latest_bin.replace(version, version_from_file))
        version = version_from_file
    else:
        print("Binary file version corresponds to online version")

    # Changing version of the package
    if Version(version) > Version(control.get_software_version()):
        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()

    # Deleting outdated binaries
    remove_outdated_binaries(version)

    # Validating update-package-sources
    return package_updated

02f000f9c7e7b015b12e6ebbe0605b7f4daa4cd7172447fe562515d303888f9a : setup.py
8ebf4808de874c0fe6a71a5953a3d302cb6348e6ca45dcc268fb4e5c641eddf0 : ClementineSetup-1.3.1.exe
16db3264276cdee6ef921a54a8277cb1add6a9954ebe77c6175303bea89ef49a : update_package.py
4540baa587c7da626a4d2058c88a8e66ed3930d12c91f2b562d04bc8e4c84a2f : WAPT/icon.png
a5a97261381e1d0ad46ee15916abec9c2631d0201f5cc50ceb0197a165a0bbbf : WAPT/certificate.crt
1e31f73c07b46399d50c11d446a8ad253d8a429e89a55c5dc7eb809bb0fed0f3 : luti.json
a12cd2dec77f151183406da11dd10b5cba74d799d7c83ac9bc37052a38054dcd : WAPT/control