build: add flatpak option to install demo wrapper
This commit is contained in:
@@ -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
2
.build_files/os-installer-demo
Executable file
@@ -0,0 +1,2 @@
|
||||
#!/bin/sh
|
||||
exec os-installer -d
|
||||
1
meson_options.txt
Normal file
1
meson_options.txt
Normal file
@@ -0,0 +1 @@
|
||||
option('flatpak', type: 'boolean', value: false, description: 'Build with flatpak, install demo mode wrapper')
|
||||
Reference in New Issue
Block a user