mirror of
https://github.com/OpenRCT2/OpenRCT2.git
synced 2024-08-28 21:16:10 +02:00
22 lines
542 B
Text
22 lines
542 B
Text
![]() |
#!/bin/bash
|
||
|
set -e
|
||
|
if [[ "$#" -ne 1 ]]; then
|
||
|
echo 'Upload OpenRCT2 debug symbols to https://backtrace.io.'
|
||
|
echo ''
|
||
|
echo 'Usage: upload-backtrace-symbols <path>'
|
||
|
echo ''
|
||
|
echo 'Environment variable ''BACKTRACE_IO_TOKEN'' must be set.'
|
||
|
exit 1
|
||
|
fi
|
||
|
|
||
|
path=$1
|
||
|
|
||
|
if [ "$BACKTRACE_IO_TOKEN" == "" ]; then
|
||
|
echo -e "\033[0;31mBACKTRACE_IO_TOKEN not set"
|
||
|
exit 1
|
||
|
fi
|
||
|
|
||
|
curl -m 300 --connect-timeout 5 -o - \
|
||
|
--data-binary "@$path" \
|
||
|
"https://openrct2.sp.backtrace.io:6098/post?format=symbols&token=$BACKTRACE_IO_TOKEN"
|