mirror of
				https://github.com/microsoft/playwright.git
				synced 2025-06-26 21:40:17 +00:00 
			
		
		
		
	 14b2d5c83d
			
		
	
	
		14b2d5c83d
		
	
	
	
	
		
			
			This patch: - teaches `//browser_patches/webkit/build.sh` to accept the `--wpe` flag - teaches `//browser_patches/webkit/archive.sh` to accept the `--wpe` flag - teaches `//browser_patches/webkit/pw_run.sh` to parse the `--headless` flag. In this case, we will assume that `//browser_patches/webkit/checkout` is built for WPE and will pass proper dependencies.
		
			
				
	
	
		
			30 lines
		
	
	
		
			875 B
		
	
	
	
		
			Bash
		
	
	
		
			Executable File
		
	
	
	
	
			
		
		
	
	
			30 lines
		
	
	
		
			875 B
		
	
	
	
		
			Bash
		
	
	
		
			Executable File
		
	
	
	
	
| #!/bin/bash
 | |
| set -e
 | |
| set +x
 | |
| 
 | |
| trap "cd $(pwd -P)" EXIT
 | |
| cd "$(dirname $0)"
 | |
| 
 | |
| if [[ "$(uname)" == "Darwin" ]]; then
 | |
|   cd "checkout"
 | |
|   ./Tools/Scripts/build-webkit --release --touch-events
 | |
| elif [[ "$(uname)" == "Linux" ]]; then
 | |
|   cd "checkout"
 | |
|   if [[ "$1" == "--wpe" ]]; then
 | |
|     if ! [[ -d ./WebKitBuild/DependenciesWPE ]]; then
 | |
|       yes | DEBIAN_FRONTEND=noninteractive ./Tools/Scripts/update-webkitwpe-libs
 | |
|     fi
 | |
|     ./Tools/Scripts/build-webkit --wpe --release --touch-events MiniBrowser
 | |
|   else
 | |
|     if ! [[ -d ./WebKitBuild/DependenciesGTK ]]; then
 | |
|       yes | DEBIAN_FRONTEND=noninteractive ./Tools/Scripts/update-webkitgtk-libs
 | |
|     fi
 | |
|     ./Tools/Scripts/build-webkit --gtk --release --touch-events MiniBrowser
 | |
|   fi
 | |
| elif [[ "$(uname)" == MINGW* ]]; then
 | |
|   /c/Windows/System32/cmd.exe "/c buildwin.bat"
 | |
| else
 | |
|   echo "ERROR: cannot upload on this platform!" 1>&2
 | |
|   exit 1;
 | |
| fi
 |