Commit 6ddad0f9 authored by Dan Ballard's avatar Dan Ballard Committed by Pier Angelo Vendrame
Browse files

fixup! TB 42669: [android] Use custom no-op app-services

Bug 43809: allow tba-fetch-deps to download nightlies
parent 276e713b
Loading
Loading
Loading
Loading
+12 −1
Original line number Diff line number Diff line
@@ -78,7 +78,18 @@ if [ "$os" = "unsupported" ] || [ "$arch" = "unsupported" ]; then
	exit 2
fi

echo "Fetching application-services..."

if [[ $1 == "--tbb" ]]; then
  app_services="$(ls -1t "$TOR_BROWSER_BUILD/out/application-services/"application-services*.tar.zst | head -1)"
  tar -C /tmp -xf "$app_services"
else
  app_services_fname="$(curl -s $TBB_BUILD_06/application-services/ | sed -nE 's/.*href=\"(application-services-[0-9a-z\.\-]*).*/\1/p')"
  app_services=/tmp/$app_services_fname
  curl -o $app_services $TBB_BUILD_06/application-services/$app_services_fname
  tar -C /tmp -xf "$app_services"
	rm "$app_services"
fi
mkdir -p "$GRADLE_MAVEN_REPOSITORIES/org/mozilla"
if [ -f "$app_services" ]; then
	tar -C /tmp -xf "$app_services"