mirror of
https://github.com/microsoft/playwright.git
synced 2024-12-15 22:22:53 +03:00
fda31dfca2
This patch: - moves PrintDepsWindows folder to `//browser_patches/winldd` - adds `build.sh`, `archive.sh`, `clean.sh` and `BUILD_NUMBER` to power builds on buildbots - starts building `winldd-win64` on windows buildbot
43 lines
922 B
Bash
Executable File
43 lines
922 B
Bash
Executable File
#!/bin/bash
|
|
set -e
|
|
set +x
|
|
|
|
if [[ ("$1" == "-h") || ("$1" == "--help") ]]; then
|
|
echo "usage: $(basename $0) [output-absolute-path]"
|
|
echo
|
|
echo "Generate distributable .zip archive from ./x64 folder that was previously built."
|
|
echo
|
|
exit 0
|
|
fi
|
|
|
|
if [[ "$(uname)" != MINGW* ]]; then
|
|
echo "ERROR: this script only supports MINGW (windows)"
|
|
exit 1
|
|
fi
|
|
|
|
ZIP_PATH=$1
|
|
if [[ $ZIP_PATH != /* ]]; then
|
|
echo "ERROR: path $ZIP_PATH is not absolute"
|
|
exit 1
|
|
fi
|
|
if [[ $ZIP_PATH != *.zip ]]; then
|
|
echo "ERROR: path $ZIP_PATH must have .zip extension"
|
|
exit 1
|
|
fi
|
|
if [[ -f $ZIP_PATH ]]; then
|
|
echo "ERROR: path $ZIP_PATH exists; can't do anything."
|
|
exit 1
|
|
fi
|
|
if ! [[ -d $(dirname $ZIP_PATH) ]]; then
|
|
echo "ERROR: folder for path $($ZIP_PATH) does not exist."
|
|
exit 1
|
|
fi
|
|
|
|
trap "cd $(pwd -P)" EXIT
|
|
cd "$(dirname "$0")"
|
|
|
|
# create a TMP directory to copy all necessary files
|
|
cd ./x64/Release
|
|
zip $ZIP_PATH ./PrintDeps.exe
|
|
|