Merge pull request #6743 from keymanapp/chore/windows/split-sentry-upload-difs

chore(windows): split sentry-upload-difs.sh to Developer 🎢
This commit is contained in:
Marc Durdin 2022-06-22 14:31:56 +10:00 committed by GitHub
commit e5d3e5ce8b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 47 additions and 19 deletions

View file

@ -0,0 +1,44 @@
#!/usr/bin/env bash
#
# Upload Debug Information Files for this developer folder
#
# We only want .pdb and .sym files at this time -- we should not need the
# symtabs that PE files give us as the full debug symbols give us better
# coverage anyway.
#
# This script also uploads sourcemap data for Developer web pages.
#
# Prerequisites: SENTRY_AUTH_TOKEN, SENTRY_URL, SENTRY_ORG variables must
# be configured.
#
set -e
set -u
## START STANDARD BUILD SCRIPT INCLUDE
# adjust relative paths as necessary
THIS_SCRIPT="$(greadlink -f "${BASH_SOURCE[0]}" 2>/dev/null || readlink -f "${BASH_SOURCE[0]}")"
. "$(dirname "$THIS_SCRIPT")/../../../resources/build/build-utils.sh"
## END STANDARD BUILD SCRIPT INCLUDE
cd "$KEYMAN_ROOT/developer/src"
#
# Remove some additional unnecessary files: we don't want to upload these
# because they are really only used for internal test or as samples.
#
[ -f ./samples/imsample/IMSample.pdb ] && rm -f ./samples/imsample/IMSample.pdb
[ -f ./kmcmpdll/Win32/Release/kcframe.pdb ] && rm -f ./kmcmpdll/Win32/Release/kcframe.pdb
[ -f ./kmcmpdll/Win32/Debug/kcframe.pdb ] && rm -f ./kmcmpdll/Win32/Debug/kcframe.pdb
[ -f ./kmcmpdll/x64/Release/kcframe.x64.pdb ] && rm -f ./kmcmpdll/x64/Release/kcframe.x64.pdb
[ -f ./kmcmpdll/x64/Debug/kcframe.x64.pdb ] && rm -f ./kmcmpdll/x64/Debug/kcframe.x64.pdb
#
# Upload the files
#
echo "Uploading symbols for developer/"
sentry-cli upload-dif -p keyman-developer -t breakpad -t pdb . --include-sources
sentry-cli releases -p keyman-developer files "release-$VERSION_WITH_TAG" upload-sourcemaps ./TIKE/xml ./server/build ./kmlmc/dist

View file

@ -1,15 +1,14 @@
#!/bin/bash
#!/usr/bin/env bash
#
# Upload Debug Information Files for desktop, engine and developer folders
# Upload Debug Information Files for desktop, engine folders
#
# We only want .pdb and .sym files at this time -- we should not need the
# symtabs that PE files give us as the full debug symbols give us better
# coverage anyway. To avoid uploading too many unnecessary files, we only
# upload those three folders.
#
# This script also uploads sourcemap data for Developer web pages and for
# Desktop configuration pages.
# This script also uploads sourcemap data for Desktop configuration pages.
#
# Prerequisites: SENTRY_AUTH_TOKEN, SENTRY_URL, SENTRY_ORG variables must
# be configured.
@ -26,17 +25,6 @@ THIS_SCRIPT="$(greadlink -f "${BASH_SOURCE[0]}" 2>/dev/null || readlink -f "${BA
cd "$KEYMAN_ROOT/windows/src"
#
# Remove some additional unnecessary files: we don't want to upload these
# because they are really only used for internal test or as samples.
#
[ -f ./developer/samples/imsample/IMSample.pdb ] && rm -f ./developer/samples/imsample/IMSample.pdb
[ -f ./developer/kmcmpdll/Win32/Release/kcframe.pdb ] && rm -f ./developer/kmcmpdll/Win32/Release/kcframe.pdb
[ -f ./developer/kmcmpdll/Win32/Debug/kcframe.pdb ] && rm -f ./developer/kmcmpdll/Win32/Debug/kcframe.pdb
[ -f ./developer/kmcmpdll/x64/Release/kcframe.x64.pdb ] && rm -f ./developer/kmcmpdll/x64/Release/kcframe.x64.pdb
[ -f ./developer/kmcmpdll/x64/Debug/kcframe.x64.pdb ] && rm -f ./developer/kmcmpdll/x64/Debug/kcframe.x64.pdb
#
# Upload the files
#
@ -47,7 +35,3 @@ sentry-cli releases -p keyman-windows files "release-$VERSION_WITH_TAG" upload-s
echo "Uploading symbols for engine/"
sentry-cli upload-dif -p keyman-windows -t breakpad -t pdb engine --include-sources
echo "Uploading symbols for developer/"
sentry-cli upload-dif -p keyman-developer -t breakpad -t pdb developer --include-sources
sentry-cli releases -p keyman-developer files "release-$VERSION_WITH_TAG" upload-sourcemaps developer/TIKE/xml