build: add flatpak option to install demo wrapper

This commit is contained in:
Peter Eisenmann
2022-05-27 10:56:34 +04:00
parent 29ca0979f0
commit 18d25a2b06
3 changed files with 11 additions and 0 deletions

View File

@@ -14,3 +14,11 @@ translators = run_command(
'cat', files('translators'),
).stdout().strip()
if get_option('flatpak')
# start in demo mode when using flatpak through wrapper
demo_script = files('os-installer-demo')
install_data(demo_script,
install_dir: get_option('bindir')
)
endif

2
.build_files/os-installer-demo Executable file
View File

@@ -0,0 +1,2 @@
#!/bin/sh
exec os-installer -d

1
meson_options.txt Normal file
View File

@@ -0,0 +1 @@
option('flatpak', type: 'boolean', value: false, description: 'Build with flatpak, install demo mode wrapper')