2023-07-03 16:27:06 +03:00
|
|
|
#!/usr/bin/env bash
|
2020-12-12 10:35:25 +03:00
|
|
|
|
2024-06-18 19:23:29 +03:00
|
|
|
(cd packages/playwright-core/src/server/android/driver ; ./gradlew assemble)
|
2020-12-12 10:35:25 +03:00
|
|
|
if [ "$?" -ne "0" ]; then
|
|
|
|
exit 1
|
|
|
|
fi
|
|
|
|
|
2024-06-18 19:23:29 +03:00
|
|
|
(cd packages/playwright-core/src/server/android/driver ; ./gradlew assembleAndroidTest)
|
2020-12-12 10:35:25 +03:00
|
|
|
if [ "$?" -ne "0" ]; then
|
|
|
|
exit 1
|
|
|
|
fi
|
|
|
|
|
2022-11-01 02:08:26 +03:00
|
|
|
# These should be uploaded to the CDN
|
2024-06-18 19:23:29 +03:00
|
|
|
mkdir -p for-cdn
|
|
|
|
cp packages/playwright-core/src/server/android/driver/app/build/outputs/apk/debug/app-debug.apk ./for-cdn/android-driver-target.apk
|
|
|
|
cp packages/playwright-core/src/server/android/driver/app/build/outputs/apk/androidTest/debug/app-debug-androidTest.apk ./for-cdn/android-driver.apk
|
|
|
|
cd for-cdn
|
|
|
|
zip /tmp/android.zip *.apk
|
|
|
|
cd ..
|
|
|
|
rm -r for-cdn
|
|
|
|
echo "Android driver APKs are in /tmp/android.zip. Upload them to the CDN."
|
|
|
|
|