Use the correct key `app-id` instead of `id`.

This commit is contained in:
Matthieu Gautier 2018-11-27 10:11:28 +01:00
parent 833c5844a1
commit feec272d1f
1 changed files with 2 additions and 2 deletions

View File

@ -26,7 +26,7 @@ import json
from shutil import copyfile from shutil import copyfile
MANIFEST = { MANIFEST = {
'id': 'org.kiwix.Client', 'app-id': 'org.kiwix.Client',
'runtime': 'org.kde.Platform', 'runtime': 'org.kde.Platform',
'runtime-version': '5.11', 'runtime-version': '5.11',
'sdk': 'org.kde.Sdk', 'sdk': 'org.kde.Sdk',
@ -217,7 +217,7 @@ class FlatpakBuilder:
log = pj(self.platform.buildEnv.log_dir, 'cmd_bundle_flatpak.log') log = pj(self.platform.buildEnv.log_dir, 'cmd_bundle_flatpak.log')
context = Context('bundle', log, False) context = Context('bundle', log, False)
command = "flatpak build-bundle repo {id}.flatpak {id}" command = "flatpak build-bundle repo {id}.flatpak {id}"
command = command.format(id = self.target.flatpak['manifest']['id']) command = command.format(id = MANIFEST['app-id'])
try: try:
run_command(command, self.platform.buildEnv.build_dir, context, self.platform.buildEnv) run_command(command, self.platform.buildEnv.build_dir, context, self.platform.buildEnv)
context._finalise() context._finalise()