fix the test script so it works outside flatpak again
This commit is contained in:
parent
95055dea1d
commit
85e15b77d9
0
scripts/compile-gschema.py
Normal file → Executable file
0
scripts/compile-gschema.py
Normal file → Executable file
@ -2,14 +2,17 @@
|
|||||||
|
|
||||||
set -o errexit
|
set -o errexit
|
||||||
set -o pipefail
|
set -o pipefail
|
||||||
|
set -x
|
||||||
|
|
||||||
|
# $1 Passed by meson and should be the builddir
|
||||||
export CARGO_TARGET_DIR="$1/target/"
|
export CARGO_TARGET_DIR="$1/target/"
|
||||||
|
|
||||||
# If this is run inside a flatpak envrironment, append the export the rustc
|
# If this is run inside a flatpak envrironment, append the export the rustc
|
||||||
# sdk-extension binaries to the path
|
# sdk-extension binaries to the path
|
||||||
if [ -n "/.flatpak-info" ]
|
if [ -f "/.flatpak-info" ]
|
||||||
then
|
then
|
||||||
export PATH="$PATH:/usr/lib/sdk/rust-stable/bin"
|
export PATH="$PATH:/usr/lib/sdk/rust-stable/bin"
|
||||||
|
# This assumes its run inside a Builder terminal
|
||||||
export CARGO_TARGET_DIR="$BUILDDIR/target/"
|
export CARGO_TARGET_DIR="$BUILDDIR/target/"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user