tis-docfetcher icon

Docfetcher

Silent install package for Docfetcher

1.1.25-0

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

package           : tis-docfetcher
version           : 1.1.25-0
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      : 8b38b860-b926-4999-8614-3203f1a84ce3
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    : 2024-09-25T07:00: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         : Vuq54rJoIgYnl3Idsx4qq4yuxVy5dWMn/jdnecTW2PaRA3he9ZKklQcaTvFsOGExUsC+kuWGjE4NeywdSv/tNsXKtNCOmYvxMtQl//LeYqSbwwCaGcsEHQEtDEBLo+WE0+PA5jdmgFigLnRgU0m8KiAwU2Gd21n8ymh0H/OLkL9kVGLsllanXSF7F7GW8rYNdK2+YisIU77UTIBlIsXJiybpfjfIfSuOxvZzQeBSKlqSv0HKNEcv4K3m49OHfiOi/iQq65Vs6Mt8gbgLMwch+f0ds5CBehvR7X1Po0dZb7uRCoDnSSrbGGeHoRCi6O1jx213ort7/0GTyxBDN2zOuw==

# -*- 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 *


# -*- coding: utf-8 -*-
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 not isfile(f"{bin_path}/docfetcher"):
        print("Creation of symlink in the PATH")
        os.symlink(f"{app_path}/docfetcher", 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

38d056ab130f7bf7c481c12636a4e9959de36561d3dfcbe54c6e3571bc0c1dc3 : WAPT/certificate.crt
4053607d487457cf3910fc6567b53bd6fe98b30eb48f85fd984dc4fa4c979212 : WAPT/control
321bdf784e57a9a8c1bc4bf1fdf6ee3cc581506139bb3917663d7207f4445cb3 : WAPT/icon.png
805abba35f2078a6b882d5116dc068fdafcfc0c5922d12ca5c42b68341d6b8a8 : docfetcher-1.1.25-portable.zip
905653742505f77efd6a86ca8ec1d1459c26464f60e7ae9b68b91d44cebd0112 : luti.json
06fe5760c57849848edf06a5f36b4a0e671bd9b6b2c137b0877ec31ae0c6205f : setup.py
1a4b4085518e8f554e442510ff0dc1aed2c8fe48a60cea09bb2c1c48990ef4e5 : update_package.py