tis-7zip

24.9-44
7-Zip est un logiciel gratuit et open source d'archivage de fichiers avec un taux de compression élevé
43829 téléchargements
Télécharger
Voir le résultat de la construction Voir l'analyse de VirusTotal
tis-7zip icon
  • package : tis-7zip
  • name : 7-Zip
  • version : 24.9-44
  • categories : Utilities
  • maintainer : WAPT Team,Tranquil IT,Jimmy PELÉ
  • editor : Igor Pavlov
  • licence : opensource_free,cpe:/a:bsd:bsd_license,cpe:/a:gnu:lgpl_v3,wapt_public
  • locale : all
  • target_os : darwin
  • impacted_process : 7z,7zFM,7zG
  • architecture : all
  • signature_date : 2024-12-04 12:07
  • size : 1.88 Mo
  • installed_size : 5.77 Mo
  • homepage : https://www.7-zip.org/
package           : tis-7zip
version           : 24.9-44
architecture      : all
section           : base
priority          : optional
name              : 7-Zip
categories        : Utilities
maintainer        : WAPT Team,Tranquil IT,Jimmy PELÉ
description       : 7-Zip is a free and open-source file archiver with a high compression ratio
depends           : 
conflicts         : 
maturity          : PROD
locale            : all
target_os         : darwin
min_wapt_version  : 2.1
sources           : https://www.7-zip.org/download.html
installed_size    : 5774712
impacted_process  : 7z,7zFM,7zG
description_fr    : 7-Zip est un logiciel gratuit et open source d'archivage de fichiers avec un taux de compression élevé
description_pl    : 7-Zip to darmowy i open-source'owy archiwizator plików o wysokim stopniu kompresji
description_de    : 7-Zip ist ein Datenkompressionsprogramm mit einer hohen Kompressionsrate
description_es    : 7-Zip es un archivador de ficheros con una alta relación de compresión
description_pt    : O 7-Zip é um compactador de arquivos com alta taxa de compressão
description_it    : 7-Zip è un archiviatore di file gratuito e open-source con un elevato rapporto di compressione
description_nl    : 7-Zip is een gratis en open-source bestands-archiver met een hoge compressieverhouding
description_ru    : 7-Zip свободный файловый архиватор с высокой степенью сжатия данных
audit_schedule    : 
editor            : Igor Pavlov
keywords          : 7zip,7,zip,7-zip,file,archiver,high,compression,ratio
licence           : opensource_free,cpe:/a:bsd:bsd_license,cpe:/a:gnu:lgpl_v3,wapt_public
homepage          : https://www.7-zip.org/
package_uuid      : 82dd1788-4461-43ed-baff-bd05d284eb9d
valid_from        : 
valid_until       : 
forced_install_on : 
changelog         : https://www.7-zip.org/history.txt
min_os_version    : 
max_os_version    : 
icon_sha256sum    : eddc038d3625902b6ddeaabd13dd91529e8d457ffbd0c554f96d343ae243a67a
signer            : Tranquil IT
signer_fingerprint: 8c5127a75392be9cc9afd0dbae1222a673072c308c14d88ab246e23832e8c6bb
signature_date    : 2024-12-04T12:07:55.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         : k2wHcYo03akUD7OMuNI6cFKzZ3NBVxu+Vgi1MFgmJnNUPHROqL7d5kWQSQ8G8gebXaLLGyJpOsTxh3UJzyxbun+btQHqdR7nwBeBsXqx/5AYvHfndClPTQB4MUmFVp4REwENthx1N0L56tq1j9skNqnwRwHcAOB5yqpwG289eHm97NgfE3thAjc4elSrvImWWJ71hKglEIO/CaR2IdU8rij94ktpN68CclPk+/DN8ZFwCA58288A/fFNWYAlZIfpzTAdYcxtqhjN2r6K4RQvTi0D6rjbggVgxiU146hG6fgTULTRn2k2GBAcXXnB6DEbizG7cyQmTjg0+6KuALGcAg==
# -*- coding: utf-8 -*-
from setuphelpers import *

bin_path = makepath("/", "usr", "local", "bin")


def install():
    # unzipping bin to /usr/bin
    bin_name = glob.glob("7z*.tar.xz")[0]
    run(f"tar -xJf {bin_name}")
    print(f"copying 7zz to {bin_path}")
    filecopyto("7zz", bin_path)
    if not isfile(f"{bin_path}/7z"):
        print("create 7z alias in path")
        os.symlink(f"{bin_path}/7zz", f"{bin_path}/7z")


def uninstall():
    if isfile(f"{bin_path}/7zz"):
        remove_file(f"{bin_path}/7zz")
    if isfile(f"{bin_path}/7z"):
        os.unlink(f"{bin_path}/7z")
# -*- coding: utf-8 -*-
from setuphelpers import *
import requests


def update_package():
    # Declaring local variables
    package_updated = False
    proxies = get_proxies()
    if not proxies:
        proxies = get_proxies_from_wapt_console()
    url = "https://www.7-zip.org/download.html"
    download_dict = {
        "windows-x64": "https://www.7-zip.org/a/7znodotversion-x64.exe",
        "windows-arm64": "https://www.7-zip.org/a/7znodotversion-arm64.exe",
        "windows-x86": "https://www.7-zip.org/a/7znodotversion.exe",
        "linux-x64": "https://www.7-zip.org/a/7znodotversion-linux-x64.tar.xz",
        "linux-arm64": "https://www.7-zip.org/a/7znodotversion-linux-arm64.tar.xz",
        "darwin-all": "https://www.7-zip.org/a/7znodotversion-mac.tar.xz",
    }

    # Getting latest version from official sources
    print("URL used is: %s" % url)
    for bs_search in bs_find_all(url, "b", proxies=proxies):
        if "Download 7-Zip " in bs_search.text and not "beta" in bs_search.text:
            version = bs_search.text.split("Zip ")[-1].split(" (")[0]
            nodotversion = version.replace(".", "")
            download_url = download_dict[control.target_os + "-" + control.architecture].replace("nodotversion", nodotversion)
            latest_bin = download_url.split("/")[-1]
            if requests.head(download_url, proxies=proxies, allow_redirects=True).status_code == 200:
                break

    # Downloading latest binaries
    print("Latest %s version is: %s" % (control.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, 4) > Version(control.get_software_version(), 4):
        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(latest_bin)

    # Validating or not update-package-sources
    return package_updated
073b6fa8dc5d9adb6f742888d0d75f5767406b503199b9704ccbf61133a21ded : 7z2409-mac.tar.xz
38d056ab130f7bf7c481c12636a4e9959de36561d3dfcbe54c6e3571bc0c1dc3 : WAPT/certificate.crt
afe22c2f936f41783381aa4df7e403114f5c7b503678b827b86cc8883c4d15da : WAPT/changelog.txt
b8f07551be406a11d9e5c371c287a48f55124fd78c1fd6a8344bc73a45efd5b5 : WAPT/control
eddc038d3625902b6ddeaabd13dd91529e8d457ffbd0c554f96d343ae243a67a : WAPT/icon.png
e56e64e0f8c25e30497f370a28861e0951121bfef15c68cb77e93f6df78f4577 : luti.json
330d86dc1b5d612a9585146c4d5975582d5e17178e917b99de2e399a8ac1ae90 : setup.py
df16ec62293d1d7443d73f0f2a0de3d006fbb059a735a395f3546d58eb10222d : update_package.py
21.07-43
switch from p7zip to official 7zip for linux and macos
avoid crash on reinstall
translating control

21.07-38
Now fixing mismatching software architectures
Reordered ext_file_association (to match with the software displaying) and no longer assiociate vhd* ext
min_wapt_version  : 2.0

21.07-36
Switching update_package() to update_package.py