tis-docfetcher icon

Docfetcher

Silent install package for Docfetcher

1.1.27-1

  • package: tis-docfetcher
  • name: Docfetcher
  • version: 1.1.27-1
  • maintainer: Arnaud Jordan
  • licence: the Eclipse Public License (EPL
  • target_os: debian_based
  • architecture: x64
  • signature_date:
  • size: 124.47 Mo
  • homepage : https://docfetcher.sourceforge.io/en/download.html

package           : tis-docfetcher
version           : 1.1.27-1
architecture      : x64
section           : base
priority          : optional
name              : Docfetcher
categories        : 
maintainer        : Arnaud Jordan
description       : DocFetcher is an Open Source desktop search application. It allows you to search the contents of files on your computer
depends           : 
conflicts         : 
maturity          : PROD
locale            : 
target_os         : debian_based
min_wapt_version  : 
sources           : https://sourceforge.net/projects/docfetcher/best_release.json
installed_size    : 
impacted_process  : 
description_fr    : DocFetcher est une application de recherche de bureau Open Source. Elle vous permet de rechercher le contenu des fichiers de votre ordinateur
description_pl    : DocFetcher to aplikacja Open Source do wyszukiwania na pulpicie. Umożliwia przeszukiwanie zawartości plików na komputerze
description_de    : DocFetcher ist eine Open Source Desktop-Suchanwendung. Sie ermöglicht es Ihnen, den Inhalt von Dateien auf Ihrem Computer zu durchsuchen
description_es    : DocFetcher es una aplicación de búsqueda de escritorio de código abierto. Le permite buscar en el contenido de los archivos de su ordenador
description_pt    : O DocFetcher é uma aplicação de pesquisa de secretária de código aberto. Permite-lhe pesquisar o conteúdo dos ficheiros no seu computador
description_it    : DocFetcher è un'applicazione di ricerca desktop open source. Consente di ricercare il contenuto dei file sul computer
description_nl    : DocFetcher is een Open Source desktop zoekapplicatie. Hiermee kunt u de inhoud van bestanden op uw computer doorzoeken
description_ru    : DocFetcher - это приложение для поиска файлов на рабочем столе с открытым исходным кодом. Оно позволяет искать содержимое файлов на вашем компьютере
audit_schedule    : 
editor            : 
keywords          : 
licence           : the Eclipse Public License (EPL
homepage          : https://docfetcher.sourceforge.io/en/download.html
package_uuid      : f8c3c401-dccc-4de8-b3ec-7ef69f99d110
valid_from        : 
valid_until       : 
forced_install_on : 
changelog         : 
min_os_version    : 
max_os_version    : 
icon_sha256sum    : 321bdf784e57a9a8c1bc4bf1fdf6ee3cc581506139bb3917663d7207f4445cb3
signer            : Tranquil IT
signer_fingerprint: 8c5127a75392be9cc9afd0dbae1222a673072c308c14d88ab246e23832e8c6bb
signature_date    : 2026-07-22T09:21:50.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         : Uk5GvU06xW7yNwhFUYXyym3nGKkm5+cfYh3lv8JofJQ4EF7yK8we4OnQJzBF3vs/ISvzTtCfQjr13W+pxUiqiuXEd/y7p8PDooSsX1VCBKlNH6BkrVzfOov/bPWZmx9PKBlhNuL9nh+G1PuS/edunINUZlDJwk+P8f5hmlZWQtVXth3a6cQciGHzC1Gw3o0XN89szxybR+c8BAwFWd0Sa8ioVfTrRFa9I85/w9IXqqVvyy8UKSo7Shyznrwz88bQNkLgBsmHrUa4/++S8LgAnLM51UnUfwV3ek87piphQwdhCktmIj8irwBvpIr9P5flsj8n0N+ObqD/ZmOTZEqRlg==

# -*- coding: utf-8 -*-
##################################################
# This file is part of WAPT Enterprise
# All right reserved, (c) Tranquil IT Systems 2024
# For more information please refer to
# https://wapt.tranquil.it/store/licences.html
##################################################
from setuphelpers import *
import zipfile

bin_path = makepath("/", "usr", "local", "bin")
app_path = "/opt/docfetcher"

def install():
    filename = glob.glob("*.zip")[0]
    extract_path = makepath(app_path, "temp_extracted")
    if not isdir(extract_path):
        mkdirs(extract_path)
    with zipfile.ZipFile(filename, "r") as zip_ref:
        zip_ref.extractall(extract_path)
    if not isdir(app_path):
        mkdirs(app_path)
    copytree2(extract_path, app_path)
    
    # Symlink
    if isfile(f"{bin_path}/docfetcher"):
        print("Cleaning previous bin_path")
        remove_tree(f"{bin_path}/docfetcher")
    print("Creation of symlink in the PATH")
    os.symlink(f"{app_path}", f"{bin_path}/docfetcher")
    
    # cleanup extract_path
    if isdir(extract_path):
        remove_tree(extract_path)

def uninstall():
    # Removing of symlink
    if isfile(f"{bin_path}/docfetcher"):
        remove_file(f"{bin_path}/docfetcher")
    # Removing of the software 
    if isdir(app_path):
        remove_tree(app_path)

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

def update_package():
    # Declaring local variables
    result = False
    proxies = get_proxies()
    if not proxies:
        proxies = get_proxies_from_wapt_console()
    app_name = control.name
    api_url = "https://sourceforge.net/projects/docfetcher/best_release.json"
    bin_contains = "DocFetcher-"

    # 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["platform_releases"]:
        latest_bin = json_load["platform_releases"][download]["filename"].split("/")[-1]
        if bin_contains in latest_bin and latest_bin.endswith(".zip"):
            if "RC" in latest_bin:
                error("ERROR: Don't release RC version or found a workaround with the version number")
            download_url = json_load["platform_releases"][download]["url"]
            version = latest_bin.split("-")[1]
            break

    # Downloading latest binaries
    if not isfile(latest_bin):
        print("Downloading: %s" % latest_bin)
        wget(download_url, latest_bin, proxies=proxies)

    control.set_software_version(version)
    control.save_control_to_wapt()

    # Deleting outdated binaries
    remove_outdated_binaries(version)

    # Validating update-package-sources
    return result

10a5831b384330a45849ddcf1e2e22d8c9e0669d23da45a74c423fc673bab267 : DocFetcher-1.1.27-Linux-64bit-NonPortable.zip
38d056ab130f7bf7c481c12636a4e9959de36561d3dfcbe54c6e3571bc0c1dc3 : WAPT/certificate.crt
a8373cb36fa5e5aa716a264b395f7ec399d4dd89d1169d97ff36fe43330c9ef0 : WAPT/control
321bdf784e57a9a8c1bc4bf1fdf6ee3cc581506139bb3917663d7207f4445cb3 : WAPT/icon.png
1bc0cdb74e8bafc79cfd88e9e440d09f0eb7328ba09c87ec2508431dcaeff465 : luti.json
23adcdecb69f486fc36e03a7c49b93e2591abc4dbbaf4741bdc08df0c005d3f1 : setup.py
17b092635991b6e85b7aa4e5012d095a38cd4143ceee01af79945b466a111edb : update_package.py