mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-02-04 08:13:38 +00:00
- Add link to iOS app. - Update the F-Droid/Android app IDs Closes: #1918. Tests: - View the matrixsyanpse app page. See the list of the clients and visit the URLs. Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org> Reviewed-by: Joseph Nuthalapati <njoseph@riseup.net>
72 lines
2.0 KiB
Python
72 lines
2.0 KiB
Python
# SPDX-License-Identifier: AGPL-3.0-or-later
|
|
|
|
from django.utils.translation import ugettext_lazy as _
|
|
|
|
from plinth.clients import store_url, validate
|
|
from plinth.modules.backups.api import validate as validate_backup
|
|
|
|
_android_package_id = 'im.vector.app'
|
|
_element_desktop_download_url = 'https://element.io/get-started'
|
|
|
|
clients = validate([{
|
|
'name':
|
|
_('Element'),
|
|
'platforms': [{
|
|
'type': 'store',
|
|
'os': 'android',
|
|
'store_name': 'google-play',
|
|
'url': store_url('google-play', _android_package_id)
|
|
}, {
|
|
'type': 'store',
|
|
'os': 'android',
|
|
'store_name': 'f-droid',
|
|
'url': store_url('f-droid', _android_package_id)
|
|
}, {
|
|
'type': 'store',
|
|
'os': 'ios',
|
|
'store_name': 'app-store',
|
|
'url': 'https://apps.apple.com/app/vector/id1083446067'
|
|
}, {
|
|
'type': 'web',
|
|
'url': 'https://app.element.io/'
|
|
}, {
|
|
'type': 'download',
|
|
'os': 'gnu-linux',
|
|
'url': _element_desktop_download_url,
|
|
}, {
|
|
'type': 'download',
|
|
'os': 'macos',
|
|
'url': _element_desktop_download_url,
|
|
}, {
|
|
'type': 'download',
|
|
'os': 'windows',
|
|
'url': _element_desktop_download_url,
|
|
}]
|
|
}])
|
|
|
|
backup = validate_backup({
|
|
'config': {
|
|
'directories': ['/etc/matrix-synapse/conf.d/'],
|
|
'files': [
|
|
'/etc/matrix-synapse/homeserver.yaml',
|
|
'/etc/matrix-synapse/log.yaml'
|
|
]
|
|
},
|
|
'data': {
|
|
'directories': [
|
|
'/var/lib/matrix-synapse/media/',
|
|
'/var/lib/matrix-synapse/uploads/'
|
|
],
|
|
'files': ['/var/lib/matrix-synapse/homeserver.db']
|
|
},
|
|
'secrets': {
|
|
'files': [
|
|
'/etc/matrix-synapse/homeserver.signing.key',
|
|
'/etc/matrix-synapse/homeserver.tls.crt',
|
|
'/etc/matrix-synapse/homeserver.tls.dh',
|
|
'/etc/matrix-synapse/homeserver.tls.key'
|
|
]
|
|
},
|
|
'services': ['matrix-synapse']
|
|
})
|