mirror of
https://github.com/rizinorg/cutter.git
synced 2024-12-21 04:16:12 +00:00
25 lines
702 B
Bash
Executable File
25 lines
702 B
Bash
Executable File
#!/bin/sh
|
|
|
|
set -euo pipefail
|
|
|
|
SCRIPTPATH=$(realpath "$(dirname "${BASH_SOURCE[0]}")")
|
|
|
|
DIR="$SCRIPTPATH/.."
|
|
cd "$DIR"
|
|
BREAKPAD_FRAMEWORK_DIR="$DIR/breakpad/framework"
|
|
BREAKPAD_DUMP_SYMS_DIR="$DIR/breakpad/bin"
|
|
git clone https://github.com/google/breakpad.git
|
|
mkdir $BREAKPAD_FRAMEWORK_DIR
|
|
mkdir $BREAKPAD_DUMP_SYMS_DIR
|
|
cd breakpad
|
|
git checkout 4d550cceca107f36c4bc1ea1126b7d32cc50f424
|
|
git apply "$SCRIPTPATH/breakpad_macos.patch"
|
|
cd src/client/mac/ && xcodebuild -sdk macosx MACOSX_DEPLOYMENT_TARGET=10.14
|
|
cp -R build/Release/Breakpad.framework "$BREAKPAD_FRAMEWORK_DIR"
|
|
|
|
cd $DIR/breakpad
|
|
cp -R src/. framework/Breakpad.framework/Headers
|
|
|
|
export BREAKPAD_FRAMEWORK_DIR=$BREAKPAD_FRAMEWORK_DIR
|
|
cd $DIR
|