From 8da7660d83800c5c3cca6540cede602ce98ec37b Mon Sep 17 00:00:00 2001 From: Yury Semikhatsky Date: Wed, 16 Dec 2020 22:04:27 -0800 Subject: [PATCH] chore: set cli version to 0.170.0 (#140) --- scripts/CLI_VERSION | 2 +- scripts/download_driver_for_all_platforms.sh | 8 ++++++-- scripts/install_local_driver.sh | 7 ++++++- 3 files changed, 13 insertions(+), 4 deletions(-) diff --git a/scripts/CLI_VERSION b/scripts/CLI_VERSION index 1ccb5ad0..35852a7a 100644 --- a/scripts/CLI_VERSION +++ b/scripts/CLI_VERSION @@ -1 +1 @@ -0.170.0-next.1608058598043 +0.170.0 diff --git a/scripts/download_driver_for_all_platforms.sh b/scripts/download_driver_for_all_platforms.sh index 39cdeada..03495c62 100755 --- a/scripts/download_driver_for_all_platforms.sh +++ b/scripts/download_driver_for_all_platforms.sh @@ -30,8 +30,12 @@ do cd $PLATFORM echo "Downloading driver for $PLATFORM to $(pwd)" - curl -O https://playwright.azureedge.net/builds/cli/next/${FILE_NAME} - unzip ${FILE_NAME} -d . + URL=https://playwright.azureedge.net/builds/cli + if [[ $CLI_VERSION == *"next"* ]]; then + URL=$URL/next + fi + curl -O $URL/$FILE_NAME + unzip $FILE_NAME -d . rm $FILE_NAME cd - diff --git a/scripts/install_local_driver.sh b/scripts/install_local_driver.sh index ef44cf59..ed2080f4 100755 --- a/scripts/install_local_driver.sh +++ b/scripts/install_local_driver.sh @@ -52,7 +52,12 @@ cd $PLATFORM FILE_NAME=$FILE_PREFIX-$PLATFORM.zip echo "Downloading driver for $PLATFORM to $(pwd)" -curl -O https://playwright.azureedge.net/builds/cli/next/${FILE_NAME} +URL=https://playwright.azureedge.net/builds/cli +if [[ $CLI_VERSION == *"next"* ]]; then + URL=$URL/next +fi +curl -O $URL/$FILE_NAME + unzip ${FILE_NAME} -d . rm $FILE_NAME ./playwright-cli install