mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2025-12-15 12:02:34 +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.
15 lines
472 B
Bash
Executable File
15 lines
472 B
Bash
Executable File
#!/bin/bash -e
|
|
|
|
if [[ $(uname) == "Linux" ]]; then
|
|
basedir="$(readlink -f `dirname $0`/..)"
|
|
elif [[ $(uname) == "Darwin" ]]; then
|
|
basedir="$(perl -MCwd=abs_path -le 'print abs_path readlink(shift);' `dirname $0`/..)"
|
|
else
|
|
echo "Error: unknown OS: $(uname)"
|
|
exit 1
|
|
fi
|
|
cd $basedir
|
|
|
|
git clone --depth 1 -b v3.4.0 https://github.com/discordapp/discord-rpc
|
|
git clone --depth 1 -b patch-1 https://github.com/janisozaur/rapidjson discord-rpc/thirdparty/rapidjson
|