diff --git a/scripts/build.sh b/scripts/build.sh index eb5ed345..6f0b4620 100755 --- a/scripts/build.sh +++ b/scripts/build.sh @@ -42,7 +42,7 @@ if [[ "$env_source" != "true" ]]; then exit 1 fi -source "$HOME/.cargo/env" +source "$CARGO_HOME/env" # We publish the artifacts into a local Maven repository instead of using the # auto-publication workflow because the latter does not work for Gradle @@ -134,4 +134,4 @@ if [[ "$build_type" == "apk" ]]; then elif [[ "$build_type" == "bundle" ]]; then gradle :app:bundleRelease -Paab fi -popd \ No newline at end of file +popd diff --git a/scripts/prebuild.sh b/scripts/prebuild.sh index 5aa0ff2a..e796adec 100755 --- a/scripts/prebuild.sh +++ b/scripts/prebuild.sh @@ -114,7 +114,7 @@ fi echo "...libclang dir set to ${libclang}" # shellcheck disable=SC1090,SC1091 -source "$HOME/.cargo/env" +source "$CARGO_HOME/env" rustup default 1.83.0 rustup target add thumbv7neon-linux-androideabi rustup target add armv7-linux-androideabi