1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-02-03 04:05:49 +01:00

Fix #6677: Add discord RPC to macOS builds

This commit is contained in:
Adam
2020-12-09 14:16:51 -07:00
committed by GitHub
parent 4a211278b2
commit 22063ec8b9
3 changed files with 63 additions and 7 deletions

View File

@@ -1,7 +1,13 @@
#!/bin/bash
set -e
basedir="$(readlink -f `dirname $0`/..)"
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 https://github.com/discordapp/discord-rpc -b v3.4.0