Support OS versions <11 in prebuilt binary!
This commit is contained in:
@@ -1,25 +1,40 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
set -eu
|
set -eu
|
||||||
if [ ! -f ../rba/deploy/macos/notarize.sh ]; then
|
if [ ! -f ../rba/deploy/macos/notarize.sh ]; then
|
||||||
echo "need notarize script in ../rba/deploy/macos"
|
echo "Need notarize script in ../rba/deploy/macos"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
version=$(grep '^ *version:' meson.build | head -1 | sed "s/^.*'\([0-9][0-9.]*\)'.*$/\1/")
|
version=$(grep '^ *version:' meson.build | head -1 | sed "s/^.*'\([0-9][0-9.]*\)'.*$/\1/")
|
||||||
echo
|
echo
|
||||||
echo "Packaging command-line utility for Mac for Rubber Band v$version..."
|
echo "Packaging command-line utility for Mac for Rubber Band v$version..."
|
||||||
echo
|
echo
|
||||||
if [ -f /usr/local/lib/libsndfile.dylib ]; then
|
if [ -f /usr/local/lib/libsndfile.dylib ]; then
|
||||||
echo "(WARNING: libsndfile dynamic library found in /usr/local/lib, be sure that you aren't about to combine this external dependency with the hardened runtime)"
|
echo "(WARNING: libsndfile dynamic library found in /usr/local/lib!"
|
||||||
|
echo "Be sure that you aren't about to combine this external dependency"
|
||||||
|
echo "with the hardened runtime)"
|
||||||
fi
|
fi
|
||||||
rm -rf build
|
|
||||||
PKG_CONFIG_PATH=/usr/local/lib/pkgconfig/ meson build --cross-file ./cross/macos-universal.txt
|
echo -n "Proceed [Yn] ? "
|
||||||
ninja -C build
|
read yn
|
||||||
|
case "$yn" in "") ;; [Yy]) ;; *) exit 3;; esac
|
||||||
|
echo "Proceeding"
|
||||||
|
|
||||||
|
rm -rf build_arm64 build_x86_64 tmp_pack
|
||||||
|
PKG_CONFIG_PATH=/usr/local/lib/pkgconfig/ meson build_arm64 --cross-file ./cross/macos-arm64.txt
|
||||||
|
PKG_CONFIG_PATH=/usr/local/lib/pkgconfig/ meson build_x86_64 --cross-file ./cross/macos-x86_64.txt
|
||||||
|
ninja -C build_arm64
|
||||||
|
ninja -C build_x86_64
|
||||||
|
mkdir tmp_pack
|
||||||
|
lipo build_arm64/rubberband build_x86_64/rubberband -create -output tmp_pack/rubberband
|
||||||
|
|
||||||
echo
|
echo
|
||||||
echo "Check the following version number: it should read $version"
|
echo "Check the following version number: it should read $version"
|
||||||
./build/rubberband -V
|
tmp_pack/rubberband -V
|
||||||
echo
|
echo
|
||||||
|
|
||||||
key="Developer ID Application: Particular Programs Ltd (73F996B92S)"
|
key="Developer ID Application: Particular Programs Ltd (73F996B92S)"
|
||||||
mkdir -p packages
|
mkdir -p packages
|
||||||
( cd build
|
( cd tmp_pack
|
||||||
codesign -s "$key" -fv --options runtime rubberband
|
codesign -s "$key" -fv --options runtime rubberband
|
||||||
zipfile="rubberband-$version-gpl-executable-macos.zip"
|
zipfile="rubberband-$version-gpl-executable-macos.zip"
|
||||||
rm -f "$zipfile"
|
rm -f "$zipfile"
|
||||||
@@ -29,7 +44,7 @@ mkdir -p packages
|
|||||||
package_dir="rubberband-$version-gpl-executable-macos"
|
package_dir="rubberband-$version-gpl-executable-macos"
|
||||||
rm -rf "$package_dir"
|
rm -rf "$package_dir"
|
||||||
mkdir "$package_dir"
|
mkdir "$package_dir"
|
||||||
cp build/rubberband "$package_dir"
|
cp tmp_pack/rubberband "$package_dir"
|
||||||
cp CHANGELOG README.md COPYING "$package_dir"
|
cp CHANGELOG README.md COPYING "$package_dir"
|
||||||
tar cvjf "$package_dir.tar.bz2" "$package_dir"
|
tar cvjf "$package_dir.tar.bz2" "$package_dir"
|
||||||
mv "$package_dir.tar.bz2" packages/
|
mv "$package_dir.tar.bz2" packages/
|
||||||
|
|||||||
Reference in New Issue
Block a user