1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2025-12-10 09:32:29 +01:00

Restore uploading of debug symbols to backtrace.io (#11046)

Regression from ee09ffadf7
This commit is contained in:
Michał Janiszewski
2020-03-25 23:19:00 +01:00
committed by GitHub
parent 95e2590207
commit cd37f23ce7
2 changed files with 22 additions and 0 deletions

View File

@@ -0,0 +1,21 @@
#!/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"