Better flatpak command options.
This mainly add the option `--nointeractive` when installing the sdk.
This commit is contained in:
parent
af3cff6aeb
commit
8b9b74d577
|
@ -22,7 +22,7 @@ class org_kde(Dependency):
|
||||||
run_command(command, self.buildEnv.build_dir, context, env=env)
|
run_command(command, self.buildEnv.build_dir, context, env=env)
|
||||||
|
|
||||||
def _install_sdk(self, context):
|
def _install_sdk(self, context):
|
||||||
command = "flatpak --user install -y {remote_name} {name}.Sdk//{version} {name}.Platform//{version}"
|
command = "flatpak --user install --noninteractive --verbose -y {remote_name} {name}.Sdk//{version} {name}.Platform//{version}"
|
||||||
command = command.format(
|
command = command.format(
|
||||||
remote_name = 'flathub',
|
remote_name = 'flathub',
|
||||||
name = self.target.name,
|
name = self.target.name,
|
||||||
|
|
|
@ -223,7 +223,7 @@ class FlatpakBuilder:
|
||||||
def build(self):
|
def build(self):
|
||||||
log = pj(self.platform.buildEnv.log_dir, 'cmd_build_flatpak.log')
|
log = pj(self.platform.buildEnv.log_dir, 'cmd_build_flatpak.log')
|
||||||
context = Context('build', log, False)
|
context = Context('build', log, False)
|
||||||
command = "flatpak-builder --user --ccache --force-clean --repo=repo builddir {id}.json"
|
command = "flatpak-builder --user --ccache --force-clean --keep-build-dirs --disable-rofiles-fuse --repo=repo builddir {id}.json"
|
||||||
command = command.format(id = MANIFEST['app-id'])
|
command = command.format(id = MANIFEST['app-id'])
|
||||||
try:
|
try:
|
||||||
run_command(command, self.platform.buildEnv.build_dir, context, env=self.platform.get_env())
|
run_command(command, self.platform.buildEnv.build_dir, context, env=self.platform.get_env())
|
||||||
|
|
Loading…
Reference in New Issue