2019-05-14 05:57:43 +00:00
|
|
|
#!/bin/sh
|
2019-04-09 07:44:44 +00:00
|
|
|
|
2021-01-02 17:57:29 +00:00
|
|
|
set -euo pipefail
|
|
|
|
|
2019-04-09 07:44:44 +00:00
|
|
|
SCRIPTPATH=$(realpath "$(dirname "${BASH_SOURCE[0]}")")
|
|
|
|
|
|
|
|
DIR="$SCRIPTPATH/.."
|
2021-01-02 17:57:29 +00:00
|
|
|
cd "$DIR"
|
2019-04-09 07:44:44 +00:00
|
|
|
BREAKPAD_FRAMEWORK_DIR="$DIR/breakpad/framework"
|
|
|
|
BREAKPAD_DUMP_SYMS_DIR="$DIR/breakpad/bin"
|
2021-01-02 17:57:29 +00:00
|
|
|
git clone https://github.com/google/breakpad.git
|
2019-04-09 07:44:44 +00:00
|
|
|
mkdir $BREAKPAD_FRAMEWORK_DIR
|
|
|
|
mkdir $BREAKPAD_DUMP_SYMS_DIR
|
2021-01-02 17:57:29 +00:00
|
|
|
cd breakpad
|
|
|
|
git checkout 4d550cceca107f36c4bc1ea1126b7d32cc50f424
|
|
|
|
git apply "$SCRIPTPATH/breakpad_macos.patch"
|
2021-04-07 08:30:50 +00:00
|
|
|
cd src/client/mac/ && xcodebuild -sdk macosx MACOSX_DEPLOYMENT_TARGET=10.14
|
|
|
|
cp -R build/Release/Breakpad.framework "$BREAKPAD_FRAMEWORK_DIR"
|
2019-04-09 07:44:44 +00:00
|
|
|
|
2021-01-02 17:57:29 +00:00
|
|
|
cd $DIR/breakpad
|
|
|
|
cp -R src/. framework/Breakpad.framework/Headers
|
2019-04-09 07:44:44 +00:00
|
|
|
|
|
|
|
export BREAKPAD_FRAMEWORK_DIR=$BREAKPAD_FRAMEWORK_DIR
|
|
|
|
cd $DIR
|