tis-zotero icon

Zotero

Paquet d’installation silencieuse pour Zotero

9.0.2-14
Utilities
Utilities

Les paquets PREPROD sont des paquets construits via LUTI. Ils restent généralement 5 jours en PREPROD, après quoi un deuxième scan VirusTotal est effectué pour vérifier que le status n'a pas changé.
Si le paquet réussit ce dernier contrôle, il est promu en PROD et publié sur le store.

  • package: tis-zotero
  • name: Zotero
  • version: 9.0.2-14
  • categories: Utilities
  • maintainer: WAPT Team,Tranquil IT,Amel FRADJ
  • editor: Corporation for Digital Scholarship
  • licence: AGPL
  • locale: all
  • target_os: windows
  • impacted_process: zotero
  • architecture: x64
  • signature_date:
  • size: 95.18 Mo
  • installed_size: 116.42 Mo
  • homepage : https://www.zotero.org/

package           : tis-zotero
version           : 9.0.2-14
architecture      : x64
section           : base
priority          : optional
name              : Zotero
categories        : Utilities
maintainer        : WAPT Team,Tranquil IT,Amel FRADJ
description       : Zotero is a free and open-source reference management software to manage bibliographic data and related research materials
depends           : 
conflicts         : 
maturity          : PREPROD
locale            : all
target_os         : windows
min_wapt_version  : 2.0
sources           : https://www.zotero.org/download/
installed_size    : 116416512
impacted_process  : zotero
description_fr    : Zotero est un logiciel de gestion de références gratuit, libre et open source, il permet de gérer des données bibliographiques et des documents de recherche
description_pl    : Zotero jest wolnym i otwartym oprogramowaniem do zarządzania referencjami, służącym do zarządzania danymi bibliograficznymi i powiązanymi materiałami badawczymi
description_de    : Zotero ist eine kostenlose und quelloffene Literaturverwaltungssoftware zur Verwaltung bibliographischer Daten und verwandter Forschungsmaterialien
description_es    : Zotero es un software de gestión de referencias gratuito y de código abierto para gestionar los datos bibliográficos y los materiales de investigación relacionados
description_pt    : Zotero é um software de gestão de referências gratuito e de código aberto para gerir dados bibliográficos e materiais de investigação relacionados
description_it    : Zotero è un software di reference management gratuito e open-source per la gestione dei dati bibliografici e dei relativi materiali di ricerca
description_nl    : Zotero is een gratis en open-source referentiebeheersoftware om bibliografische gegevens en verwant onderzoeksmateriaal te beheren
description_ru    : Zotero - это бесплатное программное обеспечение с открытым исходным кодом для управления библиографическими данными и сопутствующими исследовательскими материалами
audit_schedule    : 
editor            : Corporation for Digital Scholarship
keywords          : 
licence           : AGPL
homepage          : https://www.zotero.org/
package_uuid      : 3de7b425-9d1b-493a-8b82-df5a0d3433cc
valid_from        : 
valid_until       : 
forced_install_on : 
changelog         : https://www.zotero.org/support/changelog
min_os_version    : 6.1
max_os_version    : 
icon_sha256sum    : 499ad46227d2de56044d89085ff174a347b8ccca7b2e59823cdca9eaca6090f7
signer            : test
signer_fingerprint: b82fc8ef4a4475c0f69ac168176c2bfc58f572eb716c4eadd65e4785c155dd8e
signature_date    : 2026-05-01T04:05:38.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         : VLoI7DTTqiwIP1Q7LDo1FgwGJyw8CSNaaJ/MhVPnH0vI8hEehBZZ0N74lHrPMYpOf1f0/nEoO6O6R+mTjb5R+ACKwHejeX3NV4PEh9DxfECjT7c+dUCWuPp5Fs+XczRgbnit089Fq9mrteGCKzcMGH0ntk2+PnFmS0gPK1Y9CYc4zcxm6w2BZwPEgOuD8x41Gy9uHfVcQP13TQx7yJQZtOCZ0qmBTNsERrupzSGpZxnB7GE6NbYJ27/eBkDLxLjRT7cKXEA7TySVHTXrE2h5PF4vpSEnRlPo1KhiKyKVvfLGxIS6ECpmILbIVEp4YOmnUTiixmBC9iltfAmq5fl9jA==

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

'''{
   "key":"Zotero 7.0.1 (x64 en-US)",
   "name":"Zotero",
   "version":"7.0.1",
   "install_date":"",
   "install_location":"C:\\Program Files\\Zotero",
   "uninstall_string":"C:\\Program Files\\Zotero\\uninstall\\helper.exe",
   "publisher":"Corporation for Digital Scholarship",
   "system_component":0,
   "win64":true
  }'''

def install():
    # Initializing variables
    bin_name = glob.glob('Zotero-*_x64_setup.exe')[0]
    version = bin_name.split('_')[0].rsplit('-')[-1]

    # Constructing the registry key
    reg_key = f"Zotero {version} (x64 en-US)"

    # Installing the package

    install_exe_if_needed(
        bin_name,
        silentflags='/s /allusers',
        key= reg_key,
        min_version=control.get_software_version()
    )

    # Disable Zotero auto update
    profiles_path = makepath(user_appdata, "Zotero", "Zotero", "Profiles", "*")

    for profile in glob.glob(profiles_path):
        if not os.path.isdir(profile):
            continue

        user_js = os.path.join(profile, "user.js")

        if os.path.exists(user_js):
            print(f"SKIP (existe déjà): {user_js}")
            continue

        content = 'user_pref("app.update.auto", false);\n'

        try:
            with open(user_js, "w", encoding="utf-8") as f:
                f.write(content)
            print(f"CREATED: {user_js}")
        except Exception as e:
            print(f"ERROR: {user_js} -> {e}")

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




def update_package():
    # Declaring local variables
    package_updated = False
    
    proxies = get_proxies_from_wapt_console()
    if not proxies:
        proxies = get_proxies()

  
    url_base = "https://www.zotero.org/download/client/dl?channel=release&platform=win-x64"
    data = requests.head(url_base,allow_redirects=True, proxies=proxies).url
    download_url = data
    latest_bin = download_url.split('/')[-1]
    version = download_url.split('/')[-2]


    # Downloading latest binaries
    print("Download URL is: %s" % download_url)
    if not isfile(latest_bin):
        print("Downloading: %s" % latest_bin)
        wget(download_url, latest_bin, proxies=proxies)
        package_updated = True
    else:
        print("Binary is present: %s" % latest_bin)


    # Deleting outdated binaries
    for f in glob.glob('*.exe'):
        if f != latest_bin:
            remove_file(f)

         
    
    # Mettre à jour le package
    control.set_software_version(version)
    control.save_control_to_wapt()    
        

01ca7fe94636e5a08fcb73849d3b5df25d51e2c82f4dd1a08f01798b25899819 : WAPT/certificate.crt
8ac1fbec7444d706c78b5dfa4923f1a71016604cc3053b6e09823a2f8b5ae640 : WAPT/control
499ad46227d2de56044d89085ff174a347b8ccca7b2e59823cdca9eaca6090f7 : WAPT/icon.png
cf311861ff1af3b42e0750b48090492c034a8ee614a77f9e9f12bf05e0de51a9 : Zotero-9.0.2_x64_setup.exe
ba09ec699fa41d083240c11cf4bd3dd7cdec1bb5544423273645756dc619e411 : luti.json
046cdd023ba25813e34dc7e34cefb01014cefaec474c71d10af22a9729dbfb36 : setup.py
4f0d7577b26a2c56454de052ddef9fbdcb8b076ff2bd98a6299aa936c67702ea : update_package.py