From 0a267197484a448b9bde4294d587f11e1c6e4520 Mon Sep 17 00:00:00 2001 From: Li Linfeng Date: Tue, 7 Apr 2020 17:53:18 +0800 Subject: [PATCH] upload symbols after build --- app/appcenter-post-build.sh | 7 +++++++ app/appcenter-post-clone.sh | 6 ++++++ 2 files changed, 13 insertions(+) create mode 100644 app/appcenter-post-build.sh diff --git a/app/appcenter-post-build.sh b/app/appcenter-post-build.sh new file mode 100644 index 00000000..26445a5a --- /dev/null +++ b/app/appcenter-post-build.sh @@ -0,0 +1,7 @@ +SYMBOL_DIRECTORY=${APPCENTER_SOURCE_DIRECTORY}/app/build/intermediates/cmake/release/obj +cd $SYMBOL_DIRECTORY + +SYMBOL_ZIP_PATH="symbols.zip" +zip -vr $SYMBOL_ZIP_PATH * -x "*.DS_Store" + +appcenter crashes upload-symbols --breakpad $SYMBOL_ZIP_PATH --app $APP_IDENTIFIER --token $APP_CENTER_TOKEN --disable-telemetry --debug diff --git a/app/appcenter-post-clone.sh b/app/appcenter-post-clone.sh index 57faa683..fe33e2ce 100644 --- a/app/appcenter-post-clone.sh +++ b/app/appcenter-post-clone.sh @@ -10,3 +10,9 @@ git clone https://github.com/eyvallah/Celestia # Install gettext, needed for translation brew install gettext + +# Install appcenter cli to upload symbols +brew install node +brew unlink node@6 +brew link --overwrite node +npm install -g appcenter-cli