
RipGre
Paquet d’installation silencieuse pour RipGre
14.1.0-1
- package: tis-ripgrep-portable
- name: RipGre
- version: 14.1.0-1
- maintainer: Administrator
- target_os: windows
- architecture: x86
- signature_date:
- size: 1.92 Mo
package : tis-ripgrep-portable
version : 14.1.0-1
architecture : x86
section : base
priority : optional
name : RipGre
categories :
maintainer : Administrator
description : rga is an online search tool that allows you to search for a regular expression in a multitude of file types
depends :
conflicts :
maturity : PROD
locale :
target_os : windows
min_wapt_version :
sources :
installed_size :
impacted_process :
description_fr : rga est un outil de recherche orienté ligne qui vous permet de rechercher une expression régulière dans une multitude de types de fichiers
description_pl : rga to narzędzie do wyszukiwania online, które umożliwia wyszukiwanie wyrażeń regularnych w szerokiej gamie typów plików
description_de : rga ist ein online-orientiertes Suchwerkzeug, mit dem Sie in einer Vielzahl von Dateitypen nach einem regulären Ausdruck suchen können
description_es : rga es una herramienta de búsqueda en línea que le permite buscar una expresión regular en una amplia gama de tipos de archivo
description_pt : O rga é uma ferramenta de pesquisa online que lhe permite procurar uma expressão regular numa vasta gama de tipos de ficheiros
description_it : rga è uno strumento di ricerca online che consente di cercare un'espressione regolare in un'ampia gamma di tipi di file
description_nl : rga is een online zoekprogramma waarmee je kunt zoeken naar een reguliere uitdrukking in een groot aantal bestandstypen
description_ru : rga - это инструмент онлайн-поиска, позволяющий искать регулярные выражения в файлах самых разных типов
audit_schedule :
editor :
keywords :
licence :
homepage :
package_uuid : c34f33a7-0634-4977-84df-cc7636130e43
valid_from :
valid_until :
forced_install_on :
changelog :
min_os_version :
max_os_version :
icon_sha256sum : 5005ab036c49d4d00c52cfdb72c778f1f1324c3f767f98f94ed5eda9afd5a159
signer : Tranquil IT
signer_fingerprint: 8c5127a75392be9cc9afd0dbae1222a673072c308c14d88ab246e23832e8c6bb
signature : ysJbJI4w1Q12/uhGV+H3lShZgFHZ9AMnNrsPemwqKnuPRX3xitB92hJeguxGwopmwgvW3XurDmJrFrW1jrEdmhv027z4bNfymDUtUrFRBOxI368KHklIUoEExl85vKB48cfVrdqp43MNyKJJ/VXiLlgxcmpp/8yx1BfmIMH1CSzFriu7a6+uah0Q4geVqSgSoemUMQBOYTqVvBGYwJPUWXtQrynm1v4JLnvGw9bDsuxj5r0XPCeVSQh5oDMgdPTQQKYOeVIgjdYrTrDiOsIrko/X3X7aclavA3qhPqz1owjt+KEDc+Ry7F5xTY7n0H7h55nn6FNQ6/+gdB3nh5wLEw==
signature_date : 2024-06-16T17:03:42.144865
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 *
import glob
import os
app_name = "ripgrep"
app_dir = makepath(programfiles, app_name)
app_path = makepath(app_dir, "rg.exe")
audit_version = False
def get_installed_version(app_path):
return get_file_properties(app_path).get("FileVersion", "")
def install():
# Find the zip file
zip_name = glob.glob(f"{app_name}*.zip")[0]
unzip_dest = makepath(".", "temp_dezip")
# Remove the temporary directory if it already exists
if isdir(unzip_dest):
remove_tree(unzip_dest)
# Extract the zip file
print(f"Extracting: {zip_name} to: {unzip_dest}")
unzip(zip_name, unzip_dest)
# Find the name of the extracted directory
unzipped_dir = makepath(unzip_dest, os.listdir(unzip_dest)[0])
# Remove the old application directory if it exists
if isdir(app_dir):
remove_tree(app_dir)
# Move the new extracted directory to the final installation directory
copytree2(unzipped_dir, app_dir, onreplace=default_overwrite)
# Remove the temporary directory
remove_tree(unzip_dest)
# Create custom shortcuts
create_desktop_shortcut(app_name, target=app_path)
create_programs_menu_shortcut(app_name, target=app_path)
def audit():
# Auditing software
audit_status = "OK"
installed_version = get_installed_version(app_path)
if Version(installed_version) < Version(control.get_software_version()) and audit_version:
print("%s is installed in version (%s) instead of (%s)" % (app_name, installed_version, control.get_software_version()))
audit_status = "WARNING"
elif isdir(app_dir) and not dir_is_empty(app_dir):
print("%s (%s) is installed" % (app_name, installed_version))
audit_status = "OK"
else:
print("%s is not installed" % app_name)
audit_status = "ERROR"
return audit_status
def uninstall():
# Uninstalling software
killalltasks(ensure_list(control.impacted_process))
if isdir(app_dir):
remove_tree(app_dir)
# Removing shortcuts
remove_desktop_shortcut(app_name)
remove_programs_menu_shortcut(app_name)
from setuphelpers import *
import requests
import re
import json
def update_package():
# Déclarer les variables locales
result = False
proxies = get_proxies()
if not proxies:
proxies = get_proxies_from_wapt_console()
git_repo = "BurntSushi/ripgrep"
dict_arch ={
"x64":"x86_64-pc-windows-msvc",
"x86": "-i686-pc-windows-msvc",
}
url_api = f"https://api.github.com/repos/{git_repo}/releases/latest"
# Getting latest version information from official sources
print("API used is: %s" % url_api)
json_load = json.loads(wgets(url_api, proxies=proxies))
for download in json_load["assets"]:
if download["browser_download_url"].endswith('.zip') and dict_arch[control.architecture] in download["browser_download_url"]:
url_dl = download["browser_download_url"]
version = json_load["tag_name"].replace("v","")
filename = download["name"]
break
if not isfile(filename):
package_updated = True
wget(url_dl,filename,proxies=proxies)
#nettoyer les fichiers temporaires
for f in glob.glob('*.msi'):
if f != filename:
remove_file(f)
control.set_software_version(version)
control.save_control_to_wapt()
b2cb6c87cf65f91fb23fcef43b50218eb03bca199437f13654354e586111684f : setup.py
1ce31e7b8a074bde43b98d3050672a0e2161baf18519798a85a88137028ad993 : update_package.py
5005ab036c49d4d00c52cfdb72c778f1f1324c3f767f98f94ed5eda9afd5a159 : WAPT/icon.png
a5a97261381e1d0ad46ee15916abec9c2631d0201f5cc50ceb0197a165a0bbbf : WAPT/certificate.crt
ede172099254cfdf769e4d0860fa681967e93f17b694fc891c7319de0ceec9b7 : luti.json
3b2e4776f9510d2f502fea92f1be45c02ff0f46da50f034b04fe866182ffc0d6 : ripgrep-14.1.0-i686-pc-windows-msvc.zip
24a58065c4ae7ca29103da69cdc1ab369ab29da1a5e887e3f50d58346a998368 : WAPT/control