build-rust-sdk: print the command we run

It's helpful to know what exactly is being run.

Also some tweaks to reduce the amount of directory changing that needs to
happen.
This commit is contained in:
Richard van der Hoff
2026-08-12 09:24:59 +01:00
committed by Jorge Martin Espinosa
parent 999ee9737e
commit 6badc9634c
+10 -9
View File
@@ -215,25 +215,26 @@ if [ "$update_components" == "1" ]; then
printf "\n## Resetting ${kotlinComponentsPath} to the latest main...\n\n"
cd "${kotlinComponentsPath}"
git reset --hard
git checkout main
git pull
else
cd "${kotlinComponentsPath}"
(
cd "${kotlinComponentsPath}"
git reset --hard
git checkout main
git pull
)
fi
## Build the SDK
printf "\n## Building the SDK for ${target_arch}...\n\n"
./scripts/build.sh \
cmd=("${kotlinComponentsPath}/scripts/build.sh" \
-p "${rustSdkPath}" \
-m sdk \
-t "${target_arch}" \
-o "${elementPwd}/libraries/rustsdk"
-o "${elementPwd}/libraries/rustsdk")
cd "${elementPwd}"
echo "$ ${cmd[@]}"
"${cmd[@]}"
mv \
./libraries/rustsdk/sdk-android-debug.aar \