mirror of
https://gitlab.com/gabmus/envision.git
synced 2025-08-01 13:48:47 +00:00
feat: install scripts and run them from the proper path
This commit is contained in:
parent
e4ac027eee
commit
5b4f4ab085
5 changed files with 11 additions and 6 deletions
|
@ -73,6 +73,7 @@ global_conf.set('REPO_URL', upstream_repo)
|
||||||
subdir('data')
|
subdir('data')
|
||||||
subdir('po')
|
subdir('po')
|
||||||
subdir('src')
|
subdir('src')
|
||||||
|
subdir('scripts')
|
||||||
|
|
||||||
gnome.post_install(
|
gnome.post_install(
|
||||||
gtk_update_icon_cache: true,
|
gtk_update_icon_cache: true,
|
||||||
|
|
4
scripts/meson.build
Normal file
4
scripts/meson.build
Normal file
|
@ -0,0 +1,4 @@
|
||||||
|
install_data('_clone_or_pull.sh', install_dir: pkgdatadir / 'scripts')
|
||||||
|
install_data('build_libsurvive.sh', install_dir: pkgdatadir / 'scripts')
|
||||||
|
install_data('build_monado.sh', install_dir: pkgdatadir / 'scripts')
|
||||||
|
install_data('build_opencomposite.sh', install_dir: pkgdatadir / 'scripts')
|
|
@ -1,10 +1,10 @@
|
||||||
use crate::{profile::Profile, runner::Runner};
|
use crate::{profile::Profile, runner::Runner, constants::PKG_DATA_DIR};
|
||||||
use expect_dialog::ExpectDialog;
|
use expect_dialog::ExpectDialog;
|
||||||
|
|
||||||
pub fn get_build_libsurvive_runner(profile: Profile) -> Runner {
|
pub fn get_build_libsurvive_runner(profile: Profile) -> Runner {
|
||||||
let runner = Runner::new(
|
let runner = Runner::new(
|
||||||
None,
|
None,
|
||||||
"./scripts/build_libsurvive.sh".into(),
|
format!("{sysdata}/scripts/build_libsurvive.sh", sysdata = PKG_DATA_DIR),
|
||||||
vec![
|
vec![
|
||||||
profile
|
profile
|
||||||
.libsurvive_path
|
.libsurvive_path
|
||||||
|
|
|
@ -1,9 +1,9 @@
|
||||||
use crate::{runner::Runner, profile::Profile};
|
use crate::{runner::Runner, profile::Profile, constants::PKG_DATA_DIR};
|
||||||
|
|
||||||
pub fn get_build_monado_runner(profile: Profile) -> Runner {
|
pub fn get_build_monado_runner(profile: Profile) -> Runner {
|
||||||
let runner = Runner::new(
|
let runner = Runner::new(
|
||||||
None,
|
None,
|
||||||
"./scripts/build_monado.sh".into(),
|
format!("{sysdata}/scripts/build_monado.sh", sysdata = PKG_DATA_DIR),
|
||||||
vec![
|
vec![
|
||||||
profile.monado_path,
|
profile.monado_path,
|
||||||
profile.prefix,
|
profile.prefix,
|
||||||
|
|
|
@ -1,9 +1,9 @@
|
||||||
use crate::{profile::Profile, runner::Runner};
|
use crate::{profile::Profile, runner::Runner, constants::PKG_DATA_DIR};
|
||||||
|
|
||||||
pub fn get_build_opencomposite_runner(profile: Profile) -> Runner {
|
pub fn get_build_opencomposite_runner(profile: Profile) -> Runner {
|
||||||
let runner = Runner::new(
|
let runner = Runner::new(
|
||||||
None,
|
None,
|
||||||
"./scripts/build_opencomposite.sh".into(),
|
format!("{sysdata}/scripts/build_opencomposite.sh", sysdata = PKG_DATA_DIR),
|
||||||
vec![
|
vec![
|
||||||
profile.opencomposite_path,
|
profile.opencomposite_path,
|
||||||
]
|
]
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue