added ANDROID ENV to shellrc
Some checks failed
Test setup and build APKs archlinux / Build-APK-Arch-Linux (push) Failing after 6m28s
Test setup and build APKs / Build-and-Create-Development-Environment (push) Successful in 12s

This commit is contained in:
2025-12-09 16:05:46 +01:00
parent 05d1afc98d
commit 2144e61048
2 changed files with 7 additions and 0 deletions

3
dist/.shellrc vendored Normal file
View File

@@ -0,0 +1,3 @@
export ANDROID_HOME='/opt/android-sdk'
export PATH="${PATH}:${ANDROID_HOME}/cmdline-tools/latest/bin"
export PATH="${PATH}:${ANDROID_HOME}/platform-tools"

4
dist/pacman.sh vendored
View File

@@ -73,6 +73,10 @@ else
yes | su - "$BUILD_USER" -c "paru -S --noconfirm ${paru_packages[*]}" yes | su - "$BUILD_USER" -c "paru -S --noconfirm ${paru_packages[*]}"
yes | su - "$BUILD_USER" -c "yes | sdkmanager --licenses" yes | su - "$BUILD_USER" -c "yes | sdkmanager --licenses"
yes | su - "$BUILD_USER" -c "yes | sudo pacman -Syu --noconfirm gradle" yes | su - "$BUILD_USER" -c "yes | sudo pacman -Syu --noconfirm gradle"
# check if bashrc or zshrc contains sdkman initialization, if not add it
SHELL_RC_CONTENT="$(echo dist/.shellrc)"
echo "Checking shell rc for sdkman initialization..."
yes | su - "$BUILD_USER" -c "if [[ -f ~/.bashrc ]]; then echo ${SHELL_RC_CONTENT} >> ~/.bashrc; fi else if [[ -f ~/.zshrc ]]; then echo ${SHELL_RC_CONTENT} >> ~/.zshrc; fi"
fi fi