add macos script to create a universal binary test package
This commit is contained in:
parent
1b34c5df0f
commit
8593cf9ac0
15
tools/create_macos_universal_test_package.sh
Executable file
15
tools/create_macos_universal_test_package.sh
Executable file
@ -0,0 +1,15 @@
|
||||
#!/bin/bash
|
||||
|
||||
cd ../prebuilt/bundle-apple-universal-macos || exit 1
|
||||
find . -name "*.a" -not -path "./ffmpeg-kit/*" -exec cp {} ./ffmpeg-kit/lib \; || exit 1
|
||||
cp -r ffmpeg/include/* ffmpeg-kit/include || exit 1
|
||||
|
||||
# COPY LICENSE FILE OF EACH LIBRARY
|
||||
LICENSE_FILES=$(find . -name LICENSE | grep -vi ffmpeg)
|
||||
for LICENSE_FILE in ${LICENSE_FILES[@]}
|
||||
do
|
||||
LIBRARY_NAME=$(echo ${LICENSE_FILE} | sed 's/\.\///g;s/\/LICENSE//g')
|
||||
cp ${LICENSE_FILE} ffmpeg-kit/LICENSE.${LIBRARY_NAME} || exit 1
|
||||
done
|
||||
|
||||
zip -r "../ffmpeg-kit-macos-universal.zip" ffmpeg-kit || exit 1
|
Loading…
Reference in New Issue
Block a user