Updates when moving spiderweb WSL to spider WSL.
This commit is contained in:
@@ -19,3 +19,31 @@ if [ -n "${ANDROID_HOME}" ]; then
|
||||
fi
|
||||
|
||||
# "extras;google;simulators" "ndk;27.0.11718014" "platform-tools" "platforms;android-34" "system-images;android-34;default;arm64-v8a"
|
||||
|
||||
function anon() {
|
||||
local android_studio_sdk_home_on_mac="$HOME/Library/Android/sdk"
|
||||
local android_home=
|
||||
if [ -d "$android_studio_sdk_home_on_mac" ]; then
|
||||
android_home="$android_studio_sdk_home_on_mac"
|
||||
elif [ -d "$android_cmdline_tools_on_mac" ]; then
|
||||
android_home="$android_cmdline_tools_on_mac"
|
||||
fi
|
||||
|
||||
if [ -n "$android_home" ]; then
|
||||
export ANDROID_HOME="$android_home"
|
||||
if [ -d "$android_home/cmdline-tools/latest/bin" ]; then
|
||||
path=("$android_home/cmdline-tools/latest/bin" $path)
|
||||
fi
|
||||
# TODO: Get the appropriate directories based on what is available.
|
||||
path=(${ANDROID_HOME}/build-tools/34.0.0 $path)
|
||||
path=(${ANDROID_HOME}/ndk/26.1.0909125 $path)
|
||||
path=(${ANDROID_HOME}/platform-tools $path)
|
||||
path=(${ANDROID_HOME}/tools $path)
|
||||
path=(${ANDROID_HOME}/tools:/bin $path)
|
||||
fi
|
||||
|
||||
# "extras;google;simulators" "ndk;27.0.11718014" "platform-tools" "platforms;android-34" "system-images;android-34;default;arm64-v8a"
|
||||
|
||||
unset -f anon
|
||||
}
|
||||
anon
|
||||
|
||||
Reference in New Issue
Block a user