-
Notifications
You must be signed in to change notification settings - Fork 204
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
14 changed files
with
104 additions
and
91 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
#!/bin/bash | ||
|
||
set -e | ||
set +x | ||
|
||
trap "cd $(pwd -P)" EXIT | ||
cd "$(dirname $0)" | ||
|
||
if [[ ($1 == '-h') || ($1 == '--help') ]]; then | ||
echo "" | ||
echo "This script for downloading playwright driver for all platforms." | ||
echo "The downloaded files will be put under 'driver-bundle/src/main/resources/driver'." | ||
echo "" | ||
echo "Usage: scripts/download_driver.sh [option]" | ||
echo "" | ||
echo "Options:" | ||
echo " -h, --help display help information" | ||
echo "" | ||
exit 0 | ||
fi | ||
|
||
DRIVER_VERSION=$(head -1 ./DRIVER_VERSION) | ||
FILE_PREFIX=playwright-$DRIVER_VERSION | ||
|
||
cd ../driver-bundle/src/main/resources | ||
|
||
if [[ -d 'driver' ]]; then | ||
echo "Deleting existing drivers from $(pwd)" | ||
rm -rf driver | ||
fi | ||
|
||
mkdir -p driver | ||
cd driver | ||
|
||
for PLATFORM in mac mac-arm64 linux linux-arm64 win32_x64 | ||
do | ||
FILE_NAME=$FILE_PREFIX-$PLATFORM.zip | ||
mkdir $PLATFORM | ||
cd $PLATFORM | ||
echo "Downloading driver for $PLATFORM to $(pwd)" | ||
|
||
URL=https://playwright.azureedge.net/builds/driver | ||
if [[ "$DRIVER_VERSION" == *-alpha* || "$DRIVER_VERSION" == *-beta* || "$DRIVER_VERSION" == *-next* ]]; then | ||
URL=$URL/next | ||
fi | ||
URL=$URL/$FILE_NAME | ||
echo "Using url: $URL" | ||
curl -O $URL | ||
unzip $FILE_NAME -d . | ||
rm $FILE_NAME | ||
|
||
cd - | ||
done | ||
|
||
echo "" | ||
echo "All drivers have been successfully downloaded." | ||
echo "" |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
#!/bin/bash | ||
|
||
set -e | ||
set +x | ||
|
||
trap "cd $(pwd -P)" EXIT | ||
cd "$(dirname $0)" | ||
|
||
if [ "$#" -ne 1 ]; then | ||
echo "" | ||
echo "Usage: scripts/roll_driver.sh [new version]" | ||
echo "" | ||
exit 1 | ||
fi | ||
|
||
NEW_VERSION=$1 | ||
CURRENT_VERSION=$(head -1 ./DRIVER_VERSION) | ||
|
||
if [[ "$CURRENT_VERSION" == "$NEW_VERSION" ]]; then | ||
echo "Current version is up to date. Skipping driver download."; | ||
else | ||
echo $NEW_VERSION > ./DRIVER_VERSION | ||
./download_driver.sh | ||
fi; | ||
|
||
./generate_api.sh | ||
./update_readme.sh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters