diff --git a/ROLLING.md b/ROLLING.md index 4f05c72db..249227e75 100644 --- a/ROLLING.md +++ b/ROLLING.md @@ -2,12 +2,7 @@ ## Pre-requisites -* install .NET SDK 8 with installer: https://dotnet.microsoft.com/download/dotnet/8.0 -* install necessary build tools: - ```bash - ./build.sh --init - # restart terminal after that - ``` +Install .NET SDK 8 with installer: https://dotnet.microsoft.com/download/dotnet/8.0 ## Rolling diff --git a/build.sh b/build.sh index 58c62d5de..8e2881b75 100755 --- a/build.sh +++ b/build.sh @@ -8,10 +8,8 @@ cd "$(dirname "$0")" if [[ ($1 == '--help') || ($1 == '-h') ]]; then echo "usage: build.sh " echo "commands:" - echo " --init - download .NET deps and download driver" echo " --roll - roll the .NET language binding to a specific driver version" echo " --download-driver - download the driver" - echo " --update-assets - sync the assets from 'playwright' to 'playwright-dotnet'" echo " --help - show this help" echo exit 0 @@ -35,14 +33,6 @@ function download_driver() { echo "done" } -function update_assets() { - echo "updating assets..." - dotnet_assets_path="./src/Playwright.Tests.TestServer/assets" - rm -rf "$dotnet_assets_path" - cp -r "${upstream_repo_path}/tests/assets" "${dotnet_assets_path}" - echo "done" -} - function roll_driver() { new_driver_version="$1" upstream_package_version=$(node -e "console.log(require('${upstream_repo_path}/package.json').version)") @@ -68,14 +58,10 @@ function roll_driver() { } CMD="$1" -if [[ ("$CMD" == "--init") ]]; then - download_driver -elif [[ ("$CMD" == "--roll") ]]; then +if [[ ("$CMD" == "--roll") ]]; then roll_driver $2 elif [[ ("$CMD" == "--download-driver") ]]; then download_driver -elif [[ ("$CMD" == "--update-assets") ]]; then - update_assets else echo "ERROR: unknown command - $CMD" echo "Pass --help for supported commands"