Package all Android builds.
@@ -4,11 +4,26 @@ set -e
SCRIPT_DIR=$( cd "$(dirname "$0")"; pwd -P)
### Check build directories.
+ANDROID_ARM="${SCRIPT_DIR}/build/android-arm"
+if [ ! -d "${ANDROID_ARM}" ]; then
+ echo "Android (arm) is missing. Aborting."
+ exit 1
+fi
ANDROID_ARM64="${SCRIPT_DIR}/build/android-arm64"
if [ ! -d "${ANDROID_ARM64}" ]; then
echo "Android (arm64) is missing. Aborting."
exit 1
fi
+ANDROID_X86="${SCRIPT_DIR}/build/android-x86"
+if [ ! -d "${ANDROID_X86}" ]; then
+ echo "Android (x86) is missing. Aborting."
+ exit 1
+fi
+ANDROID_X86_64="${SCRIPT_DIR}/build/android-x86_64"
+if [ ! -d "${ANDROID_X86_64}" ]; then
+ echo "Android (x86_64) is missing. Aborting."
+ exit 1
+fi
LINUX_X86_64="${SCRIPT_DIR}/build/linux64"
if [ ! -d "${LINUX_X86_64}" ]; then
echo "Linux (x86_64) is missing. Aborting."
@@ -54,8 +69,14 @@ find "${WINDOWS_X86_64}" -name '*.nupkg' -print0 | \
xargs -0 -I{} unzip -d "${NUPKG_TMP_DIR}" -o {}
find "${MACOSX_X86_64}" -name '*.nupkg' -print0 | \
xargs -0 -I{} unzip -d "${NUPKG_TMP_DIR}" -o {}
+find "${ANDROID_ARM}" -name '*.nupkg' -print0 | \
+ xargs -0 -I{} unzip -d "${NUPKG_TMP_DIR}" -o {}
find "${ANDROID_ARM64}" -name '*.nupkg' -print0 | \
xargs -0 -I{} unzip -d "${NUPKG_TMP_DIR}" -o {}
+find "${ANDROID_X86}" -name '*.nupkg' -print0 | \
+ xargs -0 -I{} unzip -d "${NUPKG_TMP_DIR}" -o {}
+find "${ANDROID_X86_64}" -name '*.nupkg' -print0 | \
+ xargs -0 -I{} unzip -d "${NUPKG_TMP_DIR}" -o {}
find "${LINUX_X86_64}" -name '*.nupkg' -print0 | \
xargs -0 -I{} unzip -d "${NUPKG_TMP_DIR}" -o {}
# Fix file permissions of set by `dotnet pack'.
