- package: tis-clementine
- name: Clementine
- version: 1.4.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: 63.20 Mo
- installed_size: 22.05 Mo
- homepage : https://www.clementine-player.org/
package : tis-clementine
version : 1.4.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 : 071188f0-0693-43ac-b7b6-a9cf87dbf85f
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_date : 2024-10-20T08:01:06.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 : jm8C+IBZnO2hE2HZ6vO0JzewTqtkUcnhXdY5zSg9zJ6ocS2OdLj6R5pDKjqUWc9r5afeafn8QzK9/jDrZ3YKghrOuNgANCR6eEi0+brjR/PucLJNJTLAfyZlIVY+9sCOEkT6KDHxXVr7Ar31VKnoC9A6d1EYJnxTDwlcQRsL/NKJgkUq30auZHxmoq81F6d8kJ8YmY4qYgNE1OyzTCVt64hODYO4eomusgyFRBEdvbfjMXxOvjQyfRyBchrMP4fYF8KGs7ngHwz4ZgsAM9Ic/KMJ0BPkqFowW8dkAH9NZqHEWrM3A1blpkdJoUzEGeKI8VXn2pEM5+9RHPRVM+c3/g==
# -*- coding: utf-8 -*-
from setuphelpers import *
def install():
uninstall_older_version()
install_exe_if_needed(
glob.glob("Clementine*.exe")[0],
silentflags="/S",
key="Clementine",
get_version=get_version,
min_version=control.get_software_version(),
)
def get_version(key):
"""
Get the version of the installed Clementine
Default key is like this : '1.4.1-10-gefe886e0a.0'
"""
return key["version"].split("-")[0]
def uninstall_older_version():
killalltasks(ensure_list(control.impacted_process))
for soft in installed_softwares('Clementine'):
unistall_key = soft['key']
if Version(soft['version']) < Version(control.get_software_version()):
run(uninstall_cmd(unistall_key))
wait_uninstallkey_absent(unistall_key)
## # Need to make sure all folders are deleted otherwise installation will crash
## for sys_folder in [programdata, programfiles]:
## for folder in glob.glob(makepath(sys_folder, "spyder*")):
## if isdir(folder):
## remove_tree(folder)
# -*- 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("-")[0].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
06a2a29c04c69fdf8da7b9b853cf2fc9b3ad4a81e25d2c96d502143bd10a749d : ClementineSetup-1.4.1-10-gefe886e0a.exe
38d056ab130f7bf7c481c12636a4e9959de36561d3dfcbe54c6e3571bc0c1dc3 : WAPT/certificate.crt
21b93c7a4c4950381903c0531588cb0f98b3f0dc28950befd24a66637ffe57fb : WAPT/control
4540baa587c7da626a4d2058c88a8e66ed3930d12c91f2b562d04bc8e4c84a2f : WAPT/icon.png
c3e97cd9211c4eae9aa9506ea92482368db656f7e49db15af3db8e5adc2d47f0 : luti.json
089f0b37b09dd20cf4d5109a82f8b4d0dccc50a363db7aaa36316610b3bf2298 : setup.py
3e7ba3fdf457df011249707e2dddb2e1b9affd3c7e81378bd0e576a59e6ae643 : update_package.py