2022-03-09 21:15:32 -08:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
|
|
|
|
|
|
set -e
|
2021-04-12 12:01:15 -10:00
|
|
|
|
2020-12-09 14:16:51 -07:00
|
|
|
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
|
2020-01-24 11:46:12 +00:00
|
|
|
cd $basedir
|
|
|
|
|
|
2021-04-12 12:01:15 -10:00
|
|
|
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
|