Support for flatpak 1.2

This commit is contained in:
Vinicius Moreira
2019-06-13 19:08:18 -03:00
parent de5944846c
commit a968b5a703
2 changed files with 9 additions and 1 deletions

View File

@@ -9,6 +9,7 @@ It has also a management window allowing the user to see all installed apllicati
- Python >= 3.5
- qt5 packages
- libappindicator3 (for GTK3 desktop environments)
- python3-venv (for Debian based distros -> Ubuntu, Linux Mint, ...)
## Installation script
You can install the application without compromising your system via the provided installation script called 'sandbox_installer.py'.

View File

@@ -13,7 +13,7 @@ def app_str_to_json(line: str, version: str) -> dict:
'id': app_array[1],
'version': app_array[2],
'branch': app_array[3]}
elif '1.0' <= version < '1.3':
elif '1.0' <= version < '1.1':
app = {'ref': app_array[0], 'options': app_array[1]}
ref_data = app['ref'].split('/')
@@ -22,6 +22,13 @@ def app_str_to_json(line: str, version: str) -> dict:
app['branch'] = ref_data[2]
app['name'] = ref_data[0].split('.')[-1]
app['version'] = None
elif '1.2' <= version < '1.3':
app = {'name': app_array[0][1].split('.')[-1],
'id': app_array[1],
'version': app_array[2],
'branch': app_array[3],
'arch': app_array[4],
'origin': app_array[5]}
else:
raise Exception('Unsupported version')