From aa819b9081ca4dfa529122ee965db053d9b0953c Mon Sep 17 00:00:00 2001 From: Mikhail Timofeev Date: Fri, 15 May 2020 10:18:02 +0300 Subject: [PATCH 1/4] add helper to python.sh --- images/linux/scripts/installers/python.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/images/linux/scripts/installers/python.sh b/images/linux/scripts/installers/python.sh index 1955e53e5..7081c5e7d 100644 --- a/images/linux/scripts/installers/python.sh +++ b/images/linux/scripts/installers/python.sh @@ -6,6 +6,7 @@ # Source the helpers for use with the script source $HELPER_SCRIPTS/document.sh +source $HELPER_SCRIPTS/os.sh # Install Python, Python 3, pip, pip3 if isUbuntu20 ; then From 5f2e5167023bca8528aa0f07f0f7d43030565f42 Mon Sep 17 00:00:00 2001 From: Mikhail Timofeev Date: Fri, 15 May 2020 10:19:14 +0300 Subject: [PATCH 2/4] add os.sh helper to azpwsh and java --- images/linux/scripts/installers/azpowershell.sh | 1 + images/linux/scripts/installers/java-tools.sh | 1 + 2 files changed, 2 insertions(+) diff --git a/images/linux/scripts/installers/azpowershell.sh b/images/linux/scripts/installers/azpowershell.sh index 505ad5159..6e2bf6152 100644 --- a/images/linux/scripts/installers/azpowershell.sh +++ b/images/linux/scripts/installers/azpowershell.sh @@ -6,6 +6,7 @@ # Source the helpers for use with the script source $HELPER_SCRIPTS/document.sh +source $HELPER_SCRIPTS/os.sh # Install Azure CLI (instructions taken from https://docs.microsoft.com/en-us/cli/azure/install-azure-cli) if isUbuntu20 ; then diff --git a/images/linux/scripts/installers/java-tools.sh b/images/linux/scripts/installers/java-tools.sh index 7d27d255d..3e5195322 100644 --- a/images/linux/scripts/installers/java-tools.sh +++ b/images/linux/scripts/installers/java-tools.sh @@ -6,6 +6,7 @@ # Source the helpers for use with the script source $HELPER_SCRIPTS/document.sh +source $HELPER_SCRIPTS/os.sh set -e From 6fc4a4c753cf4895ae4da7122e50dcba5d13ff67 Mon Sep 17 00:00:00 2001 From: Mikhail Timofeev Date: Fri, 15 May 2020 10:25:00 +0300 Subject: [PATCH 3/4] remove apis from documented --- images/linux/scripts/installers/2004/android.sh | 4 ---- 1 file changed, 4 deletions(-) diff --git a/images/linux/scripts/installers/2004/android.sh b/images/linux/scripts/installers/2004/android.sh index 804581b87..87c091195 100644 --- a/images/linux/scripts/installers/2004/android.sh +++ b/images/linux/scripts/installers/2004/android.sh @@ -72,10 +72,6 @@ echo "y" | ${ANDROID_SDK_ROOT}/tools/bin/sdkmanager \ echo "Lastly, document what was added to the metadata file" DocumentInstalledItem "Google Repository $(cat ${ANDROID_SDK_ROOT}/extras/google/m2repository/source.properties 2>&1 | grep Pkg.Revision | cut -d '=' -f 2)" DocumentInstalledItem "Google Play services $(cat ${ANDROID_SDK_ROOT}/extras/google/google_play_services/source.properties 2>&1 | grep Pkg.Revision | cut -d '=' -f 2)" -DocumentInstalledItem "Google APIs 24" -DocumentInstalledItem "Google APIs 23" -DocumentInstalledItem "Google APIs 22" -DocumentInstalledItem "Google APIs 21" DocumentInstalledItem "CMake $(ls ${ANDROID_SDK_ROOT}/cmake 2>&1)" DocumentInstalledItem "Android Support Repository 47.0.0" DocumentInstalledItem "Android SDK Platform-Tools $(cat ${ANDROID_SDK_ROOT}/platform-tools/source.properties 2>&1 | grep Pkg.Revision | cut -d '=' -f 2)" From ba25404f3080fa45859eedd484fcda82a55c8603 Mon Sep 17 00:00:00 2001 From: Mikhail Timofeev Date: Fri, 15 May 2020 10:25:31 +0300 Subject: [PATCH 4/4] remove addons google-api --- images/linux/scripts/installers/2004/android.sh | 4 ---- 1 file changed, 4 deletions(-) diff --git a/images/linux/scripts/installers/2004/android.sh b/images/linux/scripts/installers/2004/android.sh index 87c091195..14a7e1755 100644 --- a/images/linux/scripts/installers/2004/android.sh +++ b/images/linux/scripts/installers/2004/android.sh @@ -61,10 +61,6 @@ echo "y" | ${ANDROID_SDK_ROOT}/tools/bin/sdkmanager \ "extras;android;m2repository" \ "extras;google;m2repository" \ "extras;google;google_play_services" \ - "add-ons;addon-google_apis-google-24" \ - "add-ons;addon-google_apis-google-23" \ - "add-ons;addon-google_apis-google-22" \ - "add-ons;addon-google_apis-google-21" \ "cmake;3.10.2.4988404" \ "patcher;v4"