mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-06-05 06:33:57 +02:00
Fix build for macOS 10.12+.
This commit is contained in:
parent
84d58e574f
commit
f6ff0f3b2c
2 changed files with 5 additions and 3 deletions
|
@ -249,7 +249,7 @@ if [ "$BuildTarget" == "mac" ] || [ "$BuildTarget" == "macstore" ]; then
|
||||||
rm -rf "$ReleasePath/$BinaryName.app/Contents/_CodeSignature"
|
rm -rf "$ReleasePath/$BinaryName.app/Contents/_CodeSignature"
|
||||||
rm -rf "$ReleasePath/Updater"
|
rm -rf "$ReleasePath/Updater"
|
||||||
|
|
||||||
./configure.sh
|
./configure.sh -D DESKTOP_APP_MAC_ARCH="arm64;x86_64"
|
||||||
|
|
||||||
cd $ProjectPath
|
cd $ProjectPath
|
||||||
cmake --build . --config Release --target Telegram
|
cmake --build . --config Release --target Telegram
|
||||||
|
|
|
@ -400,7 +400,7 @@ if customRunCommand:
|
||||||
stage('patches', """
|
stage('patches', """
|
||||||
git clone https://github.com/desktop-app/patches.git
|
git clone https://github.com/desktop-app/patches.git
|
||||||
cd patches
|
cd patches
|
||||||
git checkout 4142f82d11
|
git checkout 47d447b531
|
||||||
""")
|
""")
|
||||||
|
|
||||||
stage('depot_tools', """
|
stage('depot_tools', """
|
||||||
|
@ -622,10 +622,10 @@ mac:
|
||||||
|
|
||||||
stage('libvpx', """
|
stage('libvpx', """
|
||||||
git clone https://github.com/webmproject/libvpx.git
|
git clone https://github.com/webmproject/libvpx.git
|
||||||
|
depends:patches/libvpx/*.patch
|
||||||
cd libvpx
|
cd libvpx
|
||||||
git checkout v1.11.0
|
git checkout v1.11.0
|
||||||
win:
|
win:
|
||||||
depends:patches/libvpx/*.patch
|
|
||||||
for /r %%i in (..\\patches\\libvpx\\*) do git apply %%i
|
for /r %%i in (..\\patches\\libvpx\\*) do git apply %%i
|
||||||
|
|
||||||
SET PATH_BACKUP_=%PATH%
|
SET PATH_BACKUP_=%PATH%
|
||||||
|
@ -645,6 +645,8 @@ depends:patches/build_libvpx_win.sh
|
||||||
|
|
||||||
SET PATH=%PATH_BACKUP_%
|
SET PATH=%PATH_BACKUP_%
|
||||||
mac:
|
mac:
|
||||||
|
find ../patches/libvpx -type f -print0 | sort -z | xargs -0 git apply
|
||||||
|
|
||||||
depends:yasm/yasm
|
depends:yasm/yasm
|
||||||
./configure --prefix=$USED_PREFIX \
|
./configure --prefix=$USED_PREFIX \
|
||||||
--target=arm64-darwin20-gcc \
|
--target=arm64-darwin20-gcc \
|
||||||
|
|
Loading…
Add table
Reference in a new issue