tis-buttercup icon

Buttercup

Paquet d’installation silencieuse pour Buttercup

2.28.0-1

  • package: tis-buttercup
  • name: Buttercup
  • version: 2.28.0-1
  • categories: Security
  • maintainer: WAPT Team,Tranquil IT,Ingrid TALBOT
  • editor: Vault Garden
  • licence: opensource_free,cpe:/a:gnu:gpl_v3,wapt_public
  • locale: all
  • target_os: macos
  • impacted_process: Buttercup
  • architecture: all
  • signature_date:
  • size: 102.65 Mo
  • installed_size: 259.65 Mo
  • homepage : https://buttercup.pw/

package           : tis-buttercup
version           : 2.28.0-1
architecture      : all
section           : base
priority          : optional
name              : Buttercup
categories        : Security
maintainer        : WAPT Team,Tranquil IT,Ingrid TALBOT
description       : Buttercup is an open-source and cross-platform secure password manager
depends           : 
conflicts         : 
maturity          : PROD
locale            : all
target_os         : macos
min_wapt_version  : 2.3
sources           : 
installed_size    : 259649614
impacted_process  : Buttercup
description_fr    : Buttercup est un gestionnaire de mots de passe sécurisé, open-source et multiplateforme
description_pl    : Buttercup to otwarty i wieloplatformowy bezpieczny menedżer haseł
description_de    : Buttercup ist ein quelloffener und plattformübergreifender sicherer Passwortmanager
description_es    : Buttercup es un gestor de contraseñas seguro, multiplataforma y de código abierto
description_pt    : O Buttercup é um gestor de senhas seguro de código aberto e multiplataforma
description_it    : Buttercup è un gestore di password sicuro, open-source e multipiattaforma
description_nl    : Buttercup is een open-source en cross-platform veilige wachtwoordmanager
description_ru    : Buttercup - это кроссплатформенный менеджер паролей с открытым исходным кодом
audit_schedule    : 
editor            : Vault Garden
keywords          : secure,password,manager
licence           : opensource_free,cpe:/a:gnu:gpl_v3,wapt_public
homepage          : https://buttercup.pw/
package_uuid      : 4e11af02-9a28-48c6-abfa-8fe264d66c5b
valid_from        : 
valid_until       : 
forced_install_on : 
changelog         : https://github.com/buttercup/buttercup-desktop/releases
min_os_version    : 
max_os_version    : 
icon_sha256sum    : e3a0c47fb511f662c05bc3ab56f704203b1cef5c8ab60810a572ed968a0bfaf2
signer            : Tranquil IT
signer_fingerprint: 8c5127a75392be9cc9afd0dbae1222a673072c308c14d88ab246e23832e8c6bb
signature         : a4GEDvhDq0wjsWxI+CTnhKOHRRSJxhii+hCXuQ5euuD3VtH8mfatmRwaSgWO99HlskXw0uHgOr/LLSrD0X5D0dkVqvM40JdYj4/gw6AbleAqWVfPsThKrm3hd6wbmsnkj0yt1G3yLOZjb1/slULSmoN3rZELgOEC14T7gXCq5TyIGxM/qfzGMMyJZQ9OuZEXgdvLnmoqX2abHh4IADwBbIFAdlHISJu5iLHSYcjNttllJHOvLzXHjwiIZm7GLA3sBahNG1Mza0cywM00qpd3kRYmT3Pd3ZgdJOHgnFwcOB98OKhpPa2W9DUDz05UyQd6KegfxEYM6Jac8i6n4FOrow==
signature_date    : 2024-08-14T22:00:09.741068
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_dmg(glob.glob("Buttercup-mac-x64-*.dmg")[0])


def uninstall():
    remove_tree("/Applications/Buttercup.app")

# -*- 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","macos": ".dmg"}
    api_url = "https://api.github.com/repos/buttercup/buttercup-desktop/releases/latest"

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

    # Deleting binaries
    for f in glob.glob("*.dmg"):
        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()

06806df4ff9efaa34afa924a76e4929f4cb3e747f2a4d28778141ab46fadf10b : setup.py
7fa83386fa7600cb860e7ec4f3685584378468dcb84ebcaafc3764ea8c681839 : Buttercup-mac-x64-2.28.0.dmg
3cad3abde578a3e45f25b407831590c1bbfe0d88cb753d27af9ff15c5f579201 : update_package.py
e3a0c47fb511f662c05bc3ab56f704203b1cef5c8ab60810a572ed968a0bfaf2 : WAPT/icon.png
a5a97261381e1d0ad46ee15916abec9c2631d0201f5cc50ceb0197a165a0bbbf : WAPT/certificate.crt
e51f9035434b26c8ed155f52f929e9c38072fc4a9149007f4876d561b0468067 : luti.json
4537ded523d9d450c06f80f0b4a73283b21fc5bc3a07313fa223fc5a0bbaae59 : WAPT/control