Joseph Nuthalapati d3cddfa68c
Add icons for desktop applications and Apple App store.
- Add yapf style file for consistency of formatting
- Some minor changes and renaming
- Add template tag filters for checking conditions
- Move icons from img directory to icons directory

Currently the client listing is in both the SetupView and ServceView for ease of
development. Have to remove from ServiceView.

Signed-off-by: Joseph Nuthalapati <njoseph@thoughtworks.com>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2017-12-04 12:15:03 -05:00

96 lines
2.9 KiB
Python

#
# This file is part of Plinth.
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as
# published by the Free Software Foundation, either version 3 of the
# License, or (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU Affero General Public License for more details.
#
# You should have received a copy of the GNU Affero General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
from django.utils.translation import ugettext_lazy as _
metadata = {
'syncthing': {
'version': '0.14.39',
'android-package-id': 'com.nutomic.syncthingandroid',
},
}
clients = [{
'name':
_('Syncthing'),
'platforms': [{
'type': 'package',
'format': 'deb',
'name': 'syncthing',
}, {
'type': 'package',
'format': 'homebrew',
'name': 'syncthing',
}, {
'type':
'download',
'os':
'all',
'url':
'https://github.com/syncthing/syncthing/releases/tag/v{}'
.format(metadata['syncthing']['version'])
}, {
'type': 'download',
'os': 'GNU/Linux',
'arch': 'amd64',
'url': 'https://github.com/syncthing/syncthing/releases/'
'download/v{0}/syncthing-linux-amd64-v{0}.tar.gz'
.format(metadata['syncthing']['version']),
}, {
'type': 'download',
'os': 'macOS',
'arch': 'amd64',
'url': 'https://github.com/syncthing/syncthing/releases/'
'download/v{0}/syncthing-macosx-amd64-v{0}.tar.gz'
.format(metadata['syncthing']['version']),
}, {
'type': 'download',
'os': 'Windows',
'arch': 'amd64',
'url': 'https://github.com/syncthing/syncthing/releases/'
'download/v{0}/syncthing-windows-amd64-v{0}.zip'
.format(metadata['syncthing']['version']),
}, {
'type':
'store',
'os':
'Android',
'store_name':
'google_play_store',
'fully_qualified_name':
'com.nutomic.syncthingandroid',
'url':
'https://play.google.com/store/apps/details?id={}'
.format(metadata['syncthing']['android-package-id'])
}, {
'type':
'store',
'os':
'Android',
'store_name':
'fdroid_store',
'fully_qualified_name':
'com.nutomic.syncthingandroid',
'url':
'https://f-droid.org/packages/{}'
.format(metadata['syncthing']['android-package-id'])
}, {
'type': 'web',
'relative_url': '/syncthing'
}]
}]