diff --git a/Telegram/build/prepare/prepare.py b/Telegram/build/prepare/prepare.py index 580943cd8..913cd5f30 100644 --- a/Telegram/build/prepare/prepare.py +++ b/Telegram/build/prepare/prepare.py @@ -82,6 +82,7 @@ environment = { 'USED_PREFIX': usedPrefix, 'ROOT_DIR': rootDir, 'LIBS_DIR': libsDir, + 'THIRDPARTY_DIR': thirdPartyDir, 'SPECIAL_TARGET': 'win' if win32 else 'win64' if win64 else 'mac', 'X8664': 'x86' if win32 else 'x64', 'WIN32X64': 'Win32' if win32 else 'x64', @@ -446,8 +447,10 @@ win: depends:patches/gyp.diff git apply $LIBS_DIR/patches/gyp.diff mac: - python3 -m pip install --ignore-installed git+https://github.com/desktop-app/gyp-next@main - mkdir gyp + python3 -m pip install ^ + --ignore-installed ^ + --target=$THIRDPARTY_DIR/gyp ^ + git+https://chromium.googlesource.com/external/gyp@master """, 'ThirdParty') stage('yasm', """ @@ -1033,6 +1036,7 @@ depends:patches/breakpad.diff cd src/third_party/lss git checkout e1e7b0ad8e cd ../../build + PYTHONPATH=$THIRDPARTY_DIR/gyp python3 gyp_breakpad cd ../processor xcodebuild -project processor.xcodeproj -target minidump_stackwalk -configuration Release build