first commit
This commit is contained in:
@@ -0,0 +1,44 @@
|
|||||||
|
package : kg-mattermost-desktop
|
||||||
|
version : 4.7.1-1
|
||||||
|
architecture : x64
|
||||||
|
section : base
|
||||||
|
priority : optional
|
||||||
|
name : Mattermost
|
||||||
|
categories : Messaging
|
||||||
|
maintainer : Kevin Guerineau, Simon Fonteneau
|
||||||
|
description : The most important is an open source instant chat service in self-hosting. It is designed as an internal chat for organizations and businesses, and is presented as an alternative to Slack.
|
||||||
|
depends :
|
||||||
|
conflicts :
|
||||||
|
maturity : PROD
|
||||||
|
locale : all
|
||||||
|
target_os : linux
|
||||||
|
min_wapt_version :
|
||||||
|
sources :
|
||||||
|
installed_size :
|
||||||
|
impacted_process : Mattermost
|
||||||
|
description_fr : Mattermost est un service de discussion instantanée open source en auto-hébergement. Il est conçu comme un chat interne pour les organisations et les entreprises, et il est présenté comme une alternative à Slack.
|
||||||
|
description_pl :
|
||||||
|
description_de :
|
||||||
|
description_es :
|
||||||
|
description_pt :
|
||||||
|
description_it :
|
||||||
|
description_nl :
|
||||||
|
description_ru :
|
||||||
|
audit_schedule :
|
||||||
|
editor :
|
||||||
|
keywords :
|
||||||
|
licence :
|
||||||
|
homepage : https://mattermost.com
|
||||||
|
package_uuid :
|
||||||
|
valid_from :
|
||||||
|
valid_until :
|
||||||
|
forced_install_on :
|
||||||
|
changelog :
|
||||||
|
min_os_version :
|
||||||
|
max_os_version :
|
||||||
|
icon_sha256sum :
|
||||||
|
signer :
|
||||||
|
signer_fingerprint:
|
||||||
|
signature :
|
||||||
|
signature_date :
|
||||||
|
signed_attributes :
|
||||||
@@ -0,0 +1,36 @@
|
|||||||
|
# -*- coding: utf-8 -*-
|
||||||
|
from setuphelpers import *
|
||||||
|
|
||||||
|
uninstallkey = []
|
||||||
|
|
||||||
|
|
||||||
|
def install():
|
||||||
|
version = control.version.split('-')[0]
|
||||||
|
install_deb('mattermost-desktop-%s-linux-amd64.deb' % version)
|
||||||
|
|
||||||
|
|
||||||
|
def update_package():
|
||||||
|
import json
|
||||||
|
|
||||||
|
proxies = {}
|
||||||
|
if isfile(makepath(application_data(),'waptconsole','waptconsole.ini')):
|
||||||
|
proxywapt = inifile_readstring(makepath(user_local_appdata(),'waptconsole','waptconsole.ini'),'global','http_proxy')
|
||||||
|
if proxywapt :
|
||||||
|
proxies = {'http':proxywapt,'https':proxywapt}
|
||||||
|
|
||||||
|
filename,url = [(str(p['name']),str(p['browser_download_url'])) for p in json.loads(wgets('https://api.github.com/repos/mattermost/desktop/releases/latest',proxies=proxies))['assets'] if 'amd64.deb' in p['name']][0]
|
||||||
|
|
||||||
|
for fileexe in glob.glob('mattermost-desktop-*.deb'):
|
||||||
|
if fileexe != filename :
|
||||||
|
print('Delete ' + fileexe)
|
||||||
|
remove_file(fileexe)
|
||||||
|
|
||||||
|
if not isfile(filename):
|
||||||
|
print('Download ' + url)
|
||||||
|
wget(url,filename,proxies=proxies)
|
||||||
|
else:
|
||||||
|
print('Skip - %s already exist' % filename)
|
||||||
|
|
||||||
|
control.version = filename.split('-')[2]+'-0'
|
||||||
|
control.save_control_to_wapt(os.getcwd())
|
||||||
|
|
||||||
Reference in New Issue
Block a user