tis-onlyoffice-desktop

7.1.0.215-9
ONLYOFFICE (formerly TeamLab) is an open source office suite
32642 downloads
Download
View on luti logo
tis-onlyoffice-desktop icon

  Description 

  • package : tis-onlyoffice-desktop
  • version : 7.1.0.215-9
  • architecture : x86
  • categories : Office
  • maintainer : WAPT Team,Tranquil IT,Jimmy PELÉ,Simon Fonteneau,Pierre Cosson
  • description : ONLYOFFICE (formerly TeamLab) is an open source office suite
  • locale : all
  • target_os : windows
  • min_wapt_version : 1.5
  • sources : https://www.onlyoffice.com/download-desktop.aspx
  • installed_size :
  • impacted_process : DesktopEditors,editors,editors_helper
  • description_fr : ONLYOFFICE (anciennement Teamlab Office) est une suite bureautique libre
  • description_pl :
  • description_de :
  • description_es :
  • description_pt :
  • description_it :
  • description_nl :
  • description_ru :
  • editor : Ascensio System SIA
  • licence : GPLv3
  • signature_date : 2022-05-18T18:06:40.152940
  • Homepage : https://www.onlyoffice.com/

  Setup.py 

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

uninstallkey = []

# Declaring specific app values (TO CHANGE)
bin_name_string = "DesktopEditors_%s-%s.exe"
silent_args = "/VERYSILENT /NORESTART /SUPRESSMSGBOXES"
app_uninstallkey = "ONLYOFFICE Desktop Editors_is1"


def install():
    # Specific app values
    package_version = control.version.split("-")[0]
    bin_name = bin_name_string % (control.architecture, package_version)

    for onlyoffice in installed_softwares(app_uninstallkey):
        if programfiles32 in onlyoffice["uninstall_string"]:
            run(uninstall_cmd(onlyoffice["key"]), timeout=1200)

    # Installing the package
    install_exe_if_needed(bin_name, silentflags=silent_args, key=app_uninstallkey, min_version=package_version, timeout=1600)

    remove_desktop_shortcut("ONLYOFFICE Editors")


def session_setup():
    print("Disabling: check for update")
    registry_setstring(HKEY_CURRENT_USER, r"Software\ONLYOFFICE\DesktopEditors", "CheckForUpdates", "0")


def update_package():
    print("Update package content from upstream binary sources")

    # Getting proxy informations from WAPT settings
    proxy = {}
    if platform.system() == "Windows" and isfile(makepath(user_local_appdata(), "waptconsole", "waptconsole.ini")):
        proxywapt = inifile_readstring(makepath(user_local_appdata(), "waptconsole", "waptconsole.ini"), "global", "http_proxy")
        if proxywapt:
            proxy = {"http": proxywapt, "https": proxywapt}

    # Specific app values
    app_name = control.name
    url_api = "https://api.github.com/repos/ONLYOFFICE/DesktopEditors/releases"

    # Getting latest version from official website
    json_load = json.loads(wgets(url_api, proxies=proxy))
    found = False
    for release in json_load:
        if found == True:
            break
        for download in release["assets"]:
            if (".exe" in download["name"]) and ("x86" in download["name"]):
                url_dl = download["browser_download_url"]
                version = release["tag_name"].split("-")[-1]
                found = True

    latest_bin = bin_name_string % (control.architecture, version)

    print("Latest " + app_name + " version is: " + version)
    print("Download url is: " + url_dl)

    # Downloading latest binaries
    if not isfile(latest_bin):
        print("Downloading: " + latest_bin)
        wget(url_dl, latest_bin, proxies=proxy)

        # Get version from file
        version_from_file = get_file_properties(latest_bin)["ProductVersion"]
        if version != version_from_file and version_from_file != "":
            version = version_from_file
            old_latest_bin = latest_bin
            latest_bin = bin_name_string % (control.architecture, version)
            if isfile(latest_bin):
                remove_file(latest_bin)
            os.rename(old_latest_bin, latest_bin)

        # Changing version of the package
        control.version = "%s-%s" % (version, int(control.version.split("-", 1)[1]) + 1)
        control.save_control_to_wapt(".")
        print("Changing version to " + control.version + " in WAPT\\control")
        print("Update package done. You can now build-upload your package")
    else:
        print("This package is already up-to-date")

    # Deleting outdated binaries
    for bin_in_dir in glob.glob("*.exe") or glob.glob("*.msi") or glob.glob("*.zip"):
        if bin_in_dir != latest_bin:
            print("Outdated binary: " + bin_in_dir + " Deleted")
            remove_file(bin_in_dir)

										

  Changelog 



Changelog software url : https://helpcenter.onlyoffice.com/server/document/changelog.aspx



No changelog.txt.
									
  manifest.sha256