mirror of
https://github.com/Fishwaldo/qt-openzwave.git
synced 2025-07-07 05:38:21 +00:00
add a file to get DebugInfo
This commit is contained in:
parent
626a6c303b
commit
785de2abc3
2 changed files with 51 additions and 0 deletions
|
@ -36,6 +36,7 @@ COPY --from=builder /usr/local/bin/* /usr/local/bin/
|
||||||
COPY --from=builder /usr/local/lib/libqt* /usr/local/lib/
|
COPY --from=builder /usr/local/lib/libqt* /usr/local/lib/
|
||||||
COPY --from=builder /usr/local/lib*/libopenzwave* /usr/local/lib/
|
COPY --from=builder /usr/local/lib*/libopenzwave* /usr/local/lib/
|
||||||
COPY --from=builder /usr/lib/*/libQt5Mqtt* /usr/local/lib/
|
COPY --from=builder /usr/lib/*/libQt5Mqtt* /usr/local/lib/
|
||||||
|
COPY --from=builder /opt/qt-openzwave/tools/* /usr/local/bin/
|
||||||
RUN mkdir -p /opt/ozw/config/crashes/
|
RUN mkdir -p /opt/ozw/config/crashes/
|
||||||
ENV LD_LIBRARY_PATH="/usr/local/lib:/usr/local/lib64:$LD_LIBRARY_PATH"
|
ENV LD_LIBRARY_PATH="/usr/local/lib:/usr/local/lib64:$LD_LIBRARY_PATH"
|
||||||
ENV USBPATH="/dev/ttyUSB0"
|
ENV USBPATH="/dev/ttyUSB0"
|
||||||
|
|
50
tools/sentry-upload-debug.sh
Executable file
50
tools/sentry-upload-debug.sh
Executable file
|
@ -0,0 +1,50 @@
|
||||||
|
#!/bin/bash
|
||||||
|
EXECUTABLE=$1
|
||||||
|
|
||||||
|
if [ -z $EXECUTABLE ]
|
||||||
|
then
|
||||||
|
echo "Please Supply a Executable to process"
|
||||||
|
exit -1
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [ -z $SENTRY_TOKEN ]
|
||||||
|
then
|
||||||
|
echo "Please Set the SENTRY_TOKEN enviroment variable"
|
||||||
|
exit -1
|
||||||
|
fi
|
||||||
|
|
||||||
|
function findDBGFile() {
|
||||||
|
local DBGFILE
|
||||||
|
DBGFILE=`ls /usr/lib/debug/usr/$1* 2> /dev/null`
|
||||||
|
if (( $? != 0)); then
|
||||||
|
return 1
|
||||||
|
fi
|
||||||
|
echo $DBGFILE
|
||||||
|
return 0
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
ldd $EXECUTABLE | awk '{print $3}' |
|
||||||
|
{
|
||||||
|
while IFS= read lib
|
||||||
|
do
|
||||||
|
if [ -f "$lib" ]; then
|
||||||
|
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
|
||||||
|
LIBS+=" $RP"
|
||||||
|
echo "Got Lib:" $RP " " $PKG " " $DBGFILE
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
|
done
|
||||||
|
echo $LIBS
|
||||||
|
sentry-cli --auth-token $SENTRY_TOKEN upload-dif -o openzwave -p qt-openzwave $LIBS --wait
|
||||||
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue