Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion build_package.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
import stat
import subprocess
import sys
import urllib.request
import zipfile

from playwright.path_utils import get_file_dirname
Expand All @@ -40,7 +41,7 @@ def driver_version(platform: str) -> str:
if not os.path.exists("driver/" + zip_file):
url = "https://playwright.azureedge.net/builds/cli/next/" + zip_file
print("Fetching ", url)
subprocess.check_call(["curl", url, "-o", "driver/" + zip_file])
urllib.request.urlretrieve(url, "driver/" + zip_file)

_dirname = get_file_dirname()
_build_dir = _dirname / "build"
Expand Down