Fix build for macOS 10.12+.

This commit is contained in:
John Preston 2022-01-28 23:52:11 +03:00
parent 84d58e574f
commit f6ff0f3b2c
2 changed files with 5 additions and 3 deletions

View File

@ -249,7 +249,7 @@ if [ "$BuildTarget" == "mac" ] || [ "$BuildTarget" == "macstore" ]; then
rm -rf "$ReleasePath/$BinaryName.app/Contents/_CodeSignature"
rm -rf "$ReleasePath/Updater"
./configure.sh
./configure.sh -D DESKTOP_APP_MAC_ARCH="arm64;x86_64"
cd $ProjectPath
cmake --build . --config Release --target Telegram

View File

@ -400,7 +400,7 @@ if customRunCommand:
stage('patches', """
git clone https://github.com/desktop-app/patches.git
cd patches
git checkout 4142f82d11
git checkout 47d447b531
""")
stage('depot_tools', """
@ -622,10 +622,10 @@ mac:
stage('libvpx', """
git clone https://github.com/webmproject/libvpx.git
depends:patches/libvpx/*.patch
cd libvpx
git checkout v1.11.0
win:
depends:patches/libvpx/*.patch
for /r %%i in (..\\patches\\libvpx\\*) do git apply %%i
SET PATH_BACKUP_=%PATH%
@ -645,6 +645,8 @@ depends:patches/build_libvpx_win.sh
SET PATH=%PATH_BACKUP_%
mac:
find ../patches/libvpx -type f -print0 | sort -z | xargs -0 git apply
depends:yasm/yasm
./configure --prefix=$USED_PREFIX \
--target=arm64-darwin20-gcc \