mirror of
https://github.com/Fishwaldo/qt-openzwave.git
synced 2025-03-15 19:41:24 +00:00
sentry upload debug files (#11)
This commit is contained in:
parent
90f0d342b5
commit
b81fb24931
1 changed files with 15 additions and 5 deletions
|
@ -12,6 +12,16 @@ then
|
|||
echo "Please Set the SENTRY_TOKEN enviroment variable"
|
||||
exit -1
|
||||
fi
|
||||
#echo "deb http://deb.debian.org/debian-debug/ buster-debug main" > /etc/apt/sources.list.d/debug.list
|
||||
#echo "deb http://deb.debian.org/debian-debug/ buster-proposed-updates-debug main" >> /etc/apt/sources.list.d/debug.list
|
||||
#echo "deb http://deb.debian.org/debian-debug/ testing-debug main" >> /etc/apt/sources.list.d/debug.list
|
||||
#echo "deb http://deb.debian.org/debian-debug/ unstable-debug main" >> /etc/apt/sources.list.d/debug.list
|
||||
#echo "deb http://deb.debian.org/debian-debug/ experimental-debug main" >> /etc/apt/sources.list.d/debug.list
|
||||
apt-get update
|
||||
apt-get install -y curl
|
||||
if [ ! -f /usr/local/bin/sentry-cli ]; then curl -sL https://sentry.io/get-cli/ | bash; fi
|
||||
#apt-get install -t unstable libqt5core5a-dbgsym libqt5network5-dbgsym libqt5remoteobjects5-dbgsym
|
||||
#rm /etc/apt/sources.list.d/debug.list
|
||||
|
||||
function findDBGFile() {
|
||||
local DBGFILE
|
||||
|
@ -34,17 +44,17 @@ ldd $EXECUTABLE | awk '{print $3}' |
|
|||
useable=`sentry-cli difutil check $lib | grep "Usable: yes"`
|
||||
if [ ! -z "$useable" ]; then
|
||||
RP=`realpath $lib`
|
||||
DBGFILE=$(findDBGFile $lib)
|
||||
if (( $? == 0)); then
|
||||
LIBS+=" $DBGFILE"
|
||||
fi
|
||||
#DBGFILE=$(findDBGFile $lib)
|
||||
#if (( $? == 0)); then
|
||||
# LIBS+=" $DBGFILE"
|
||||
#fi
|
||||
LIBS+=" $RP"
|
||||
echo "Got Lib:" $RP " " $PKG " " $DBGFILE
|
||||
fi
|
||||
fi
|
||||
|
||||
done
|
||||
echo $LIBS
|
||||
echo $LIBS /usr/local/bin/ozwdaemon
|
||||
sentry-cli --auth-token $SENTRY_TOKEN upload-dif -o openzwave -p qt-openzwave $LIBS --wait
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue