tis-rig icon

Rig

Silent install package for Rig

0.7.1-2

  • package: tis-rig
  • name: Rig
  • version: 0.7.1-2
  • categories: Development
  • maintainer: WAPT Team,Tranquil IT,Ingrid TALBOT
  • editor: Gabor Csardi
  • licence: opensource_free,cpe:/a:mit:x11_license,wapt_private
  • locale: all
  • target_os: debian_based
  • impacted_process: rig
  • architecture: x64
  • signature_date:
  • size: 3.75 Mo
  • installed_size: 16.78 Mo

package           : tis-rig
version           : 0.7.1-2
architecture      : x64
section           : base
priority          : optional
name              : Rig
categories        : Development
maintainer        : WAPT Team,Tranquil IT,Ingrid TALBOT
description       : R Installation Manager (rig) installs,removes and configures R versions
depends           : 
conflicts         : 
maturity          : PROD
locale            : all
target_os         : debian_based
min_wapt_version  : 2.3
sources           : 
installed_size    : 16776922
impacted_process  : rig
description_fr    : R Installation Manager (rig) installe, supprime et configure les versions de R
description_pl    : R Installation Manager (rig) instaluje, usuwa i konfiguruje wersje R
description_de    : R Installation Manager (rig) installiert, entfernt und konfiguriert R-Versionen
description_es    : R Installation Manager (rig) instala, elimina y configura versiones de R
description_pt    : O R Installation Manager (rig) instala, remove e configura versões do R
description_it    : R Installation Manager (rig) installa, rimuove e configura le versioni di R
description_nl    : R Installation Manager (rig) installeert, verwijdert en configureert R-versies
description_ru    : R Installation Manager (rig) устанавливает, удаляет и настраивает версии R
audit_schedule    : 
editor            : Gabor Csardi
keywords          : r,rstudio
licence           : opensource_free,cpe:/a:mit:x11_license,wapt_private
homepage          : 
package_uuid      : 019ddd51-8ec1-4599-b58c-9ff409da9c97
valid_from        : 
valid_until       : 
forced_install_on : 
changelog         : https://github.com/r-lib/rig/releases
min_os_version    : 
max_os_version    : 
icon_sha256sum    : 3078632e09e88905a16939aca654ceda7fd5d7acd4d42c79d49d2f1d5943d363
signer            : Tranquil IT
signer_fingerprint: 8c5127a75392be9cc9afd0dbae1222a673072c308c14d88ab246e23832e8c6bb
signature_date    : 2025-04-16T09:00:12.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         : wICXD5HSVM4H2f25h8foFiNvQMwCLYgabPsN5VyOwDfuGMtYDgbfILb69V6sOMSrQRYShwSjqQw65EaW5XnJ25NNy5W3uVX3VTnNMer627s4ybEJmuHdNHTd8UDv0M7ZcNWpZ9S/tMa4WN3VLcUCdlHFUpf8S6JRnELU+0Myw14Z8TnXX2ZTfua7QlNyAZkCgdiXhwbGh3YYhUPh2UXMGR4NHl7AcyO7FReBdrdauH6RVzy9oCQ7y61NqCqpKSXbldnc/2CnlI7Sw78udyLU//dO/G9JU9bn6k+foCMKWB4o5vB30r+QQe9a5HxUhBe2268YOgHl5KCfcqavAT6wGA==

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


def install():
    install_deb(glob.glob("r-rig_*_amd64.deb")[0])


def uninstall():
    uninstall_apt("r-rig")



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


def update_package():
    # Declaring local variables
    package_updated = False
    proxies = get_proxies()
    if not proxies:
        proxies = get_proxies_from_wapt_console()
    update_dict = {"windows": ".exe", "redhat_based" : "x86_64.rpm", "debian_based" : "amd64.deb", "macos": ".pkg"}
    api_url = "https://api.github.com/repos/r-lib/rig/releases/latest"

    # Get data from API
    releases_dict = json.loads(wgets(api_url, proxies=proxies))
    deb_found = False  # Flag pour indiquer la découverte d'un fichier .deb
    for release in releases_dict:
        if deb_found:
            break
        for asset in releases_dict["assets"]:
            if asset["browser_download_url"].endswith(".deb") and "amd64" in asset["browser_download_url"]:
                url_download = asset["browser_download_url"]
                latest_bin = url_download.split("/")[-1]
                version = releases_dict["name"].split(" ")[1]
                deb_found = True  # Mettre à jour le flag pour indiquer qu'un deb a été trouvé
                break

    # Deleting binaries
    for f in glob.glob("*.deb"):
        if f != latest_bin:
            remove_file(f)

    # Downloading latest binaries
    print("Download URL is: %s" % url_download)
    if not isfile(latest_bin):
        print("Downloading: %s" % latest_bin)
        wget(url_download, latest_bin, proxies=proxies)
    else:
        print("Binary is present: %s" % latest_bin)

    control.set_software_version(version)
    control.save_control_to_wapt()

38d056ab130f7bf7c481c12636a4e9959de36561d3dfcbe54c6e3571bc0c1dc3 : WAPT/certificate.crt
77ed2de3cd930c351daca82bb4e152d643abcf3354990dbc1fa5b54074bffe4e : WAPT/control
3078632e09e88905a16939aca654ceda7fd5d7acd4d42c79d49d2f1d5943d363 : WAPT/icon.png
295bc8a31fb326aa30da0a4f94ae80a7da2458a65cc9f95a5cb7ea11fa499066 : luti.json
a95d34ef9992e3ca277e8c594c269ea2d2d0d76db9d30a4c374af79d493fbeaf : r-rig_0.7.1-1_amd64.deb
74a91a4a91003631b1492a88c4e231ad8524bac1eee1d762d68ed6dbc62570de : setup.py
ca9602ba49918990fb4ce00a7b19a276d054207bf2cb8b2d1343a5380164d6b9 : update_package.py