mirror of
https://github.com/microsoft/playwright.git
synced 2024-12-14 21:53:35 +03:00
245d1001b1
This patch moves FFMPEG building to buildbots: - `ffmpeg-mac.zip` is built on Mac 10.14 machine - `ffmpeg-win32.zip` and `ffmpeg-win64.zip` are cross-compiled on Ubuntu 20.04 machine All builds across the platforms share the same config: - the same versions of `ffmpeg` and `libvpx` - the same build configuration for both `ffmpeg` and `libvpx` The config could be found in the `//browser_patches/ffmpeg/CONFIG.sh`. The builds will be then copied manually and committed to the git repository.
35 lines
746 B
Bash
Executable File
35 lines
746 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 ./output folder that was previously built."
|
|
echo
|
|
exit 0
|
|
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)"
|
|
|
|
cp output/ffmpeg.zip $ZIP_PATH
|