tis-rainmeter icon

Rainmeter

Silent install package for Rainmeter

4.5.18-0

  • package: tis-rainmeter
  • name: Rainmeter
  • version: 4.5.18-0
  • categories: utilities
  • maintainer: WAPT Team,Tranquil IT,Pierre COSSON
  • editor: https://github.com/rainmeter
  • licence: GPL 2.0
  • locale: all
  • target_os: windows
  • impacted_process: rainmeter
  • architecture: all
  • signature_date:
  • size: 2.51 Mo
  • installed_size: 6.86 Mo
  • homepage : https://www.rainmeter.net/

package           : tis-rainmeter
version           : 4.5.18-0
architecture      : all
section           : base
priority          : optional
name              : Rainmeter
categories        : utilities
maintainer        : WAPT Team,Tranquil IT,Pierre COSSON
description       : Rainmeter is a desktop customization tool for Windows.
depends           : 
conflicts         : 
maturity          : PROD
locale            : all
target_os         : windows
min_wapt_version  : 2.0
sources           : https://github.com/rainmeter/rainmeter/releases
installed_size    : 6864896
impacted_process  : rainmeter
description_fr    : 
description_pl    : 
description_de    : 
description_es    : 
description_pt    : 
description_it    : 
description_nl    : 
description_ru    : 
audit_schedule    : 
editor            : https://github.com/rainmeter
keywords          : 
licence           : GPL 2.0
homepage          : https://www.rainmeter.net/
package_uuid      : 82c843f2-b363-4d02-858c-21aa0822f9d4
valid_from        : 
valid_until       : 
forced_install_on : 
changelog         : 
min_os_version    : 
max_os_version    : 
icon_sha256sum    : de316eb45a3be5569e2f61dbd7f3ecf74addb1627d0d4407eca957b70161d320
signer            : Tranquil IT
signer_fingerprint: 8c5127a75392be9cc9afd0dbae1222a673072c308c14d88ab246e23832e8c6bb
signature         : lggw8M1hHNbJog+He1F6y6hxBT9lzaX82dOKlTb3bokn4dByUIhq/oz8tRv3XuG33kP49RhlBG9HugdzFLoJ8AerpHdQS1VcyccuO+AbSgH7Ufi26uHdKUnfEjquBz/kcy2kDrKqk6uesUmAM9NtbI9qhlMaZB2wTGEjinszT5kcbQ1LRdccOFipdoOQKQuYmHqlKioi1bbU6O3yKnohGcRaOVa/ALg3MgNGW76hts7W+7zCgpPqVBJsY1lyirJ9/4Au7HCQ/KovIjrCdQ27uDAEE3Bg0OLXu87DiE9pOEOyXoVjgRzysAiZgo7fRNd+XUCPUHePG1+r3eCQAheBCQ==
signature_date    : 2023-08-05T21:00:12.337566
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 *

# Declaring global variables - Warnings: 1) WAPT context is only available in package functions; 2) Global variables are not persistent between calls


def install():

    install_exe_if_needed(
        glob.glob("Rainmeter*.exe")[0],
        silentflags="/S /RESTART=0 /AUTOSTARTUP=1",
        key="Rainmeter",
        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/rainmeter/rainmeter/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 ".exe" in download["name"]:
            download_url = download["browser_download_url"]
            version = download["name"].split("-")[-1].replace(".exe", "")
            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)

    # 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

63d9e079a20775b98b91fed8f7d4f4f7f06619b28727bc3fba1bc30a4d3aa337 : setup.py
0f0dbcc193dd0ba845283bc49185e85882fedf8f1ef231881c0b777d18316489 : update_package.py
5ac959e5dee9884512f4a34623bbad2c08be427669015b917a750f7cbfbb0a75 : Rainmeter-4.5.18.exe
de316eb45a3be5569e2f61dbd7f3ecf74addb1627d0d4407eca957b70161d320 : WAPT/icon.png
a5a97261381e1d0ad46ee15916abec9c2631d0201f5cc50ceb0197a165a0bbbf : WAPT/certificate.crt
e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855 : WAPT/changelog.txt
4b3d4b91f34fd29145980be7e68326dcf955fb63635d62f8d1fa5574f88b3a58 : luti.json
4bcd6a07719a7800ea3d0520a65d3a7f4fa4de9916e315206922184843fb74b3 : WAPT/control