2021-04-13 00:01:15 +02:00
|
|
|
#!/bin/bash -e
|
|
|
|
|
2020-12-09 22:16:51 +01: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 12:46:12 +01:00
|
|
|
cd $basedir
|
|
|
|
|
2021-04-13 00:01:15 +02: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
|