tis-docfetcher icon

Docfetcher

Silent install package for Docfetcher

1.1.27-2

  • package: tis-docfetcher
  • name: Docfetcher
  • version: 1.1.27-2
  • maintainer: Amel FRADJ
  • licence: the Eclipse Public License (EPL
  • target_os: windows
  • impacted_process: DocFetcher.exe
  • architecture: all
  • signature_date:
  • size: 121.54 Mo
  • homepage : https://docfetcher.sourceforge.io/en/download.html

package           : tis-docfetcher
version           : 1.1.27-2
architecture      : all
section           : base
priority          : optional
name              : Docfetcher
categories        : 
maintainer        : Amel FRADJ
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         : windows
min_wapt_version  : 
sources           : https://sourceforge.net/projects/docfetcher/best_release.json
installed_size    : 
impacted_process  : DocFetcher.exe
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      : 3f6f6667-47f9-459f-a30e-8c77d5126e8f
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:41:47.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         : gLleh5S71GjAJDIANCaW6U5gYoBqT6x3pzI9mZea++CK9OqFJeclDv/oen40uxAxM3zRrXcWYCGxIEfsYeLunrHddQYynUiNHkDsGZ2X/0rknoM4GuIEKpq0KDXz0MvISVbALWu2+y7hoth3kfr/mP2FBfo9y78Q6gao8VYQY9qkHYdsGSUk8mdM2lf0ALbOcO1/8SWjB9zQj4Qd2q1ABEPDjq9GkeRgOK8CndemNOnHGIkJgg5g6wDTXxBLWBLPuqveVaxgScvhcjn7azFQE0bnh8tQtz/5eXKPDiZa752O5kaQY4vMNRW9MEhMjjM4utUL9OfxusRJcmkO2dE/WA==

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

def install():
    # Declaring local variables
    bin_name = glob.glob('DocFetcher-*Setup.exe')[0]

    # Uninstalling existing versions
    for to_uninstall in installed_softwares(name="DocFetcher"):
        if Version(to_uninstall["version"]) < Version(control.get_software_version()):
            print(f"Removing: {to_uninstall['name']} ({to_uninstall['version']})")
            killalltasks(ensure_list(control.impacted_process))
            run(uninstall_cmd(to_uninstall["key"]))
            wait_uninstallkey_absent(to_uninstall["key"])

    # Installing the software
    install_exe_if_needed(bin_name,
        silentflags='/S',
        key='DocFetcher',
        min_version= control.get_software_version(),
    )

# -*- 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(".exe"):
            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)

        # Checking version from file
        version_from_file = get_version_from_binary(latest_bin)
        if Version(version_from_file) != Version(version) and version_from_file != "":
            print("Changing version to the version number of the binary (from: %s to: %s)" % (version, version_from_file))
            os.rename(latest_bin, bin_contains + version_from_file + bin_ends)
            version = version_from_file
        else:
            print("Binary file version corresponds to online version")

    # Changing version of the package
    if Version(version) > Version(control.get_software_version()):
        print("Software version updated (from: %s to: %s)" % (control.get_software_version(), Version(version)))
        result = True
    else:
        print("Software version up-to-date (%s)" % Version(version))
    control.version = "%s-%s" % (Version(version), control.version.split("-", 1)[-1])
    # control.set_software_version(version)
    control.save_control_to_wapt()

    # Deleting outdated binaries
    remove_outdated_binaries(version)

    # Validating update-package-sources
    return result

85dca802d7ba20fb752494edfc9214f66442825017d182b6a41404f25f479db6 : DocFetcher-1.1.27-Windows-64bit-Setup.exe
38d056ab130f7bf7c481c12636a4e9959de36561d3dfcbe54c6e3571bc0c1dc3 : WAPT/certificate.crt
c13b3add6e7758d712640b11225de1d9d87b1a0c028dd006ef5653c66025088f : WAPT/control
321bdf784e57a9a8c1bc4bf1fdf6ee3cc581506139bb3917663d7207f4445cb3 : WAPT/icon.png
8e06edca3491ed73d699468015630bd0acbf52434d79adc348decead1ef623eb : luti.json
27e7f4b295e0e3ac99b1edf591f9fadf0d5b23be345a6d91d82c426413ed3de7 : setup.py
b39be6abbebec7877f4152c9b0514b928000f19126ceb0c89ba299843151f9d1 : update_package.py