mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2025-12-10 09:32:29 +01:00
shebang: Move parameters from set. Add newline after for consistency. curl: Add -f; Prevents output on error. Use -O where applicable; -o with the same filename as the URL is pointless. Add -S after -s: Makes curl still error despite being silent. build-symbols: Add zip fallback. get-discord-rpc: Move git clone parameters before repository for readability. Use --depth 1 to speed up cloning. install-nsis: Use ProgramData environment variable. build-appimage-docker.sh: Add -e to docker run. Run script directly. build-appimage.sh: Make if more consistent. Remove unused Travis scripts. setenv: unset instead of blanking variables. vstool.cmd: Use ProgramFiles(x86) environment variable.
22 lines
539 B
Bash
Executable File
22 lines
539 B
Bash
Executable File
#!/bin/bash -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"
|