tis-onlyoffice-desktop

6.2.0.148-4
ONLYOFFICE (formerly TeamLab) is an open source office suite
5699 downloads
Download

  Description 

  • package : tis-onlyoffice-desktop
  • version : 6.2.0.148-4
  • architecture : x64
  • categories : Office
  • maintainer : WAPT Team,Tranquil IT,Jimmy PELÉ,Simon Fonteneau
  • 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 : 2021-03-29T13:53:37.574581
  • 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_x64-%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 % package_version

    for onlyoffice in installed_softwares(app_uninstallkey):
        if programfiles32 in onlyoffice['uninstall_string']:
            run(uninstall_cmd(onlyoffice['key']))

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

    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
    git_repo = 'ONLYOFFICE/DesktopEditors'
    url_api = 'https://api.github.com/repos/%s/releases/latest' % git_repo

    # Getting latest version from official website
    json_load = json.loads(wgets(url_api,proxies=proxy))
    for download in json_load['assets']:
        if ('.exe' in download['name']) and ('x64' in download['name']) :
            url_dl = download['browser_download_url']
            break

    version = json_load['tag_name'].split('-')[-1]
    latest_bin = bin_name_string % 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 % 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