mirror of
https://github.com/Novaloop-AG/element-x-android.git
synced 2026-11-02 12:07:28 +00:00
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:
committed by
Jorge Martin Espinosa
parent
999ee9737e
commit
6badc9634c
@@ -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 \
|
||||
|
||||
Reference in New Issue
Block a user