forked from LennyPhoenix/GodotDiscordSDK
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.sh
28 lines (20 loc) · 1009 Bytes
/
setup.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
echo By running this script you agree to the Discord Developers ToS.
echo
echo Downloading the Discord Game SDK...
wget https://dl-game-sdk.discordapp.net/2.5.6/discord_game_sdk.zip
unzip discord_game_sdk -d dsdk
mkdir demo/bin/linux-32
mkdir demo/bin/linux-64
mkdir demo/bin/osx-32
mkdir demo/bin/osx-64
cp dsdk/c/discord_game_sdk.h src/discord_game_sdk.h
cp dsdk/lib/x86/discord_game_sdk.dll.lib lib/discord_game_sdk.32.lib
cp dsdk/lib/x86_64/discord_game_sdk.dll.lib lib/discord_game_sdk.64.lib
cp dsdk/lib/x86_64/discord_game_sdk.so lib/libdiscord_game_sdk.so
cp dsdk/lib/x86_64/discord_game_sdk.dylib lib/libdiscord_game_sdk.dylib
cp dsdk/lib/x86_64/discord_game_sdk.so demo/bin/linux-64/libdiscord_game_sdk.so
cp dsdk/lib/x86_64/discord_game_sdk.dylib demo/bin/osx-64/libdiscord_game_sdk.dylib
cp dsdk/lib/x86_64/discord_game_sdk.so demo/bin/linux-32/libdiscord_game_sdk.so
cp dsdk/lib/x86_64/discord_game_sdk.dylib demo/bin/osx-32/libdiscord_game_sdk.dylib
rm -rf dsdk
rm discord_game_sdk.zip