- package: tis-seafile
- name: Seafile
- version: 9.0.12-10
- categories: Office
- maintainer: WAPT Team,Tranquil IT,Jimmy PELÉ,Hubert TOUVET,Amelie LE JEUNE
- editor: HaiWenHuZhi ltd.
- licence: opensource_free,wapt_public,cpe:/a:gnu:gpl_v2
- locale: all
- target_os: windows
- impacted_process: seaf-daemon,seafile-applet
- architecture: x64
- signature_date:
- size: 126.07 Mo
- installed_size: 282.63 Mo
- homepage : https://www.seafile.com/
package : tis-seafile
version : 9.0.12-10
architecture : x64
section : base
priority : optional
name : Seafile
categories : Office
maintainer : WAPT Team,Tranquil IT,Jimmy PELÉ,Hubert TOUVET,Amelie LE JEUNE
description : Seafile is an open source file storage and sharing solution
depends :
conflicts :
maturity : PROD
locale : all
target_os : windows
min_wapt_version : 2.3
sources : https://www.seafile.com/en/download/
installed_size : 282629518
impacted_process : seaf-daemon,seafile-applet
description_fr : Seafile est une solution de stockage et de partage de fichiers open source
description_pl : Seafile to rozwiązanie open source do przechowywania i udostępniania plików
description_de : Seafile ist eine Open-Source-Lösung zur Speicherung und gemeinsamen Nutzung von Dateien
description_es : Seafile es una solución de código abierto para almacenar y compartir archivos
description_pt : O Seafile é uma solução de armazenamento e partilha de ficheiros de código aberto
description_it : Seafile è una soluzione open source per l'archiviazione e la condivisione di file
description_nl : Seafile is een open source oplossing voor het opslaan en delen van bestanden
description_ru : Seafile - это решение для хранения и обмена файлами с открытым исходным кодом
audit_schedule :
editor : HaiWenHuZhi ltd.
keywords : seafile,cloud,file,storage,sharing,solution,client
licence : opensource_free,wapt_public,cpe:/a:gnu:gpl_v2
homepage : https://www.seafile.com/
package_uuid : 4a00d8fd-eae4-436d-87a4-8c72ff18456f
valid_from :
valid_until :
forced_install_on :
changelog : https://download.seafile.com/published/seafile-manual/changelog/client-changelog.md
min_os_version : 10.0
max_os_version :
icon_sha256sum : 2fa8a089ab65b8b5746bf57908d847606256cde5d7da32929a132f18fb7df741
signer : Tranquil IT
signer_fingerprint: 8c5127a75392be9cc9afd0dbae1222a673072c308c14d88ab246e23832e8c6bb
signature_date : 2025-02-20T03:00:42.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 : YDKfmd1uhIWnR1xXe6/TAROGNkJExK/CSGVM4Ox0LlTt1Eu6G9jJSDebFfXOqSj45v2HfY/srTW2O6H+/J//9ov3tHcOJG7Gj32HkiXakyb/Os8kVeznecCuTUqf8GBjmRRi3nUS3VRji/aFO2OcQH1NGIOd9rXWgEpo0NRx5Ee7IV8ObWQ1QLvnGt01Hi81lb1ngvKIma66P0ZktEG8i1VAOhNy052IgXfK/Wp9+v/AAUmWP/MItw9aq6lB8hmuDYTdRG5bulqrTg20JbFOO9stkaHBg6OcOrwoiWk3VvVOX6GK/aCV5hFBLvNpDKe1hSIzExVrwcHLql7JIE+kGQ==
# -*- coding: utf-8 -*-
from setuphelpers import *
"""
{
"key":"{42658E02-4559-4B38-9F25-E1F67B75FEE3}",
"name":"Seafile 9.0.5",
"version":"9.0.5",
"install_date":"2024-03-18 00:00:00",
"install_location":"",
"uninstall_string":"MsiExec.exe /X{42658E02-4559-4B38-9F25-E1F67B75FEE3}",
"publisher":"HaiWenHuZhi ltd.",
"system_component":0,
"win64":true
}
"""
def install():
bin_name = glob.glob("seafile-*.msi")[0]
install_msi_if_needed(
bin_name,
min_version=control.get_software_version(),
timeout=600,
)
# Clear the uninstallkeys to avoid the no-code audit and uninstall
uninstallkey.clear()
def session_setup():
print("Disabling: auto-update check and configuring base options")
registry_setstring(HKEY_CURRENT_USER, r"Software\Seafile", "ShellExtDisabled", "1")
registry_setstring(HKEY_CURRENT_USER, r"Software\Seafile\Seafile Client\Language", "current", "en")
registry_setstring(HKEY_CURRENT_USER, r"Software\Seafile\Seafile Client\Misc", "SparkleAlreadyEnableUpdateByDefault", "true")
registry_setstring(HKEY_CURRENT_USER, r"Software\Seafile\Seafile Client\WinSparkle", "CheckForUpdates", "0")
registry_setstring(HKEY_CURRENT_USER, r"Software\Seafile\Seafile Client\Behavior", "hideMainWindowWhenStarted", "true")
def audit():
# Declaring local variables
audit_status = "OK"
app_check = installed_softwares("Seafile")
if app_check:
installed_version = app_check[0]["version"]
control.name = app_check[0]["name"]
else:
installed_version = ""
control.name = control.package.split("-", 1)[-1].replace("-", " ").title()
audit_version = False
# Auditing software
if not installed_version:
print(f"{control.name} is not installed.")
audit_status = "ERROR"
elif audit_version and Version(installed_version, 4) < Version(control.get_software_version(), 4):
print(f"{control.name} ({installed_version}) installed version should be: {control.get_software_version()}")
audit_status = "WARNING"
else:
print(f"{control.name} is installed." if installed_version in control.name else f"{control.name} ({installed_version}) is installed.")
audit_status = "OK"
return audit_status
def uninstall():
# "C:\Program Files\Seafile\bin\seafile-applet.exe" --remove-user-data
try:
for app_check in installed_softwares("Seafile"):
run(uninstall_cmd(app_check["key"]), timeout=60)
except:
killalltasks("seafile-applet.exe")
killalltasks(ensure_list(control.impacted_process))
wait_uninstallkey_absent(keywords="Seafile")
time.sleep(60)
if installed_softwares("Seafile"):
error("Uninstalling Seafile was unsuccessful.")
# -*- coding: utf-8 -*-
from setuphelpers import *
from setupdevhelpers import *
def update_package():
# Declaring local variables
package_updated = False
proxies = get_proxies()
if not proxies:
proxies = get_proxies_from_wapt_console()
url = "https://www.seafile.com/en/download/"
# Getting latest version from official sources
print("URL used is: %s" % url)
bs_search = bs_find(url, "a", "class", "download-op")
version = bs_search.text
download_url = bs_search["href"]
latest_bin = download_url.split("/")[-1]
# Downloading latest binaries
print("Latest %s version is: %s" % (control.name, version))
print("Download URL is: %s" % download_url)
if not isfile(latest_bin):
print("Downloading: %s" % latest_bin)
wget(download_url, latest_bin, proxies=proxies)
else:
print("Binary is present: %s" % latest_bin)
# Deleting outdated binaries
remove_outdated_binaries(latest_bin)
# arch_list = ensure_list(control.architecture)
# remove_outdated_binaries(version, filename_contains=("x64" if "x64" in arch_list else "x86" if "x86" in arch_list else []))
# Checking version from file
if get_os_name() == "Windows" and "windows" in control.target_os.lower():
version_from_file = get_version_from_binary(latest_bin)
if Version(version_from_file, 4) == Version(version, 4):
print(f"INFO: Binary file version ({version_from_file}) corresponds to online version ({version})")
else:
error(f"ERROR: Binary file version ({version_from_file}) do NOT corresponds to online version ({version})")
# Changing version of the package
if Version(version, 4) > Version(control.get_software_version(), 4):
print("Software version updated (from: %s to: %s)" % (control.get_software_version(), Version(version)))
package_updated = True
else:
print("Software version up-to-date (%s)" % Version(version))
control.set_software_version(version)
control.save_control_to_wapt()
# Validating or not update-package-sources
return package_updated
# # Changing version of the package and validating update-package-sources
# return complete_control_version(control, version)
38d056ab130f7bf7c481c12636a4e9959de36561d3dfcbe54c6e3571bc0c1dc3 : WAPT/certificate.crt
eda3463bcb3fa06ebb16e7c8e6f9a8a94c2cf1b87a623ff9dfb200f6a5fb0a01 : WAPT/control
2fa8a089ab65b8b5746bf57908d847606256cde5d7da32929a132f18fb7df741 : WAPT/icon.png
07f2fdac80cb1abb723a82538a3bec0b86e104254adbf40bc0c99b95c109840e : luti.json
3d12a93df686985a29d054cf6cf7be5ffb1aa78fe74ea8908cb12fc8b6083205 : seafile-9.0.12-en.msi
9a6de2e8b7b4b45d15c6b0872676dc6a3d740e9a51009f236bf9f6fb6ea9aa8a : setup.py
4d4246574914a3b9f7b6da1197a49c1a1ded9a5694307b0cfbb4402b93757510 : update_package.py