@@ -8,10 +8,8 @@ cd "$(dirname "$0")"
8
8
if [[ ($1 == ' --help' ) || ($1 == ' -h' ) ]]; then
9
9
echo " usage: build.sh <command>"
10
10
echo " commands:"
11
- echo " --init - download .NET deps and download driver"
12
11
echo " --roll <version> - roll the .NET language binding to a specific driver version"
13
12
echo " --download-driver - download the driver"
14
- echo " --update-assets - sync the assets from 'playwright' to 'playwright-dotnet'"
15
13
echo " --help - show this help"
16
14
echo
17
15
exit 0
@@ -35,14 +33,6 @@ function download_driver() {
35
33
echo " done"
36
34
}
37
35
38
- function update_assets() {
39
- echo " updating assets..."
40
- dotnet_assets_path=" ./src/Playwright.Tests.TestServer/assets"
41
- rm -rf " $dotnet_assets_path "
42
- cp -r " ${upstream_repo_path} /tests/assets" " ${dotnet_assets_path} "
43
- echo " done"
44
- }
45
-
46
36
function roll_driver() {
47
37
new_driver_version=" $1 "
48
38
upstream_package_version=$( node -e " console.log(require('${upstream_repo_path} /package.json').version)" )
@@ -68,14 +58,10 @@ function roll_driver() {
68
58
}
69
59
70
60
CMD=" $1 "
71
- if [[ (" $CMD " == " --init" ) ]]; then
72
- download_driver
73
- elif [[ (" $CMD " == " --roll" ) ]]; then
61
+ if [[ (" $CMD " == " --roll" ) ]]; then
74
62
roll_driver $2
75
63
elif [[ (" $CMD " == " --download-driver" ) ]]; then
76
64
download_driver
77
- elif [[ (" $CMD " == " --update-assets" ) ]]; then
78
- update_assets
79
65
else
80
66
echo " ERROR: unknown command - $CMD "
81
67
echo " Pass --help for supported commands"
0 commit comments