Skip to content

Commit

Permalink
Update game sdk version to 3.2.1
Browse files Browse the repository at this point in the history
  • Loading branch information
Drachenfrucht1 committed Oct 11, 2024
1 parent ad99814 commit e89df5e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
4 changes: 1 addition & 3 deletions setup.bat
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
@echo off
bitsadmin /transfer DiscordGameSDKDownload /download /priority normal https://dl-game-sdk.discordapp.net/2.5.6/discord_game_sdk.zip %~dp0\discord_game_sdk.zip
bitsadmin /transfer DiscordGameSDKDownload /download /priority normal https://dl-game-sdk.discordapp.net/3.2.1/discord_game_sdk.zip %~dp0\discord_game_sdk.zip
powershell.exe "Add-Type -A 'System.IO.Compression.FileSystem'; [IO.Compression.ZipFile]::ExtractToDirectory('discord_game_sdk.zip', 'dgsdk');"
mkdir discord-files
copy dgsdk\cpp discord-files
Expand All @@ -10,8 +10,6 @@ copy dgsdk\lib\x86_64\discord_game_sdk.bundle libpath\libdiscord_game_sdk.bundle
copy dgsdk\lib\x86_64\discord_game_sdk.dylib libpath\libdiscord_game_sdk.dylib
del dgsdk\lib\x86_64\discord_game_sdk.so
copy dgsdk\lib\x86_64 libpath
copy dgsdk\lib\x86\discord_game_sdk.dll libpath\discord_game_sdk.32.dll
copy dgsdk\lib\x86\discord_game_sdk.dll.lib libpath\discord_game_sdk.32.dll.lib
del discord_game_sdk.zip
RMDIR /S /Q dgsdk

Expand Down
4 changes: 1 addition & 3 deletions setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,9 @@ mv ./libpath/discord_game_sdk.so ./libpath/libdiscord_game_sdk.so
mv ./libpath/discord_game_sdk.bundle ./libpath/libdiscord_game_sdk.bundle
mv ./libpath/discord_game_sdk.dylib ./libpath/libdiscord_game_sdk.dylib

mv dgsk/lib/x86/discord_game_sdk.dll ./libpath/discord_game_sdk.32.dll
mv dgsk/lib/x86/discord_game_sdk.dll.lib ./libpath/discord_game_sdk.32.dll.lib

rm -rf dgsk
rm discord_game_sdk.zip

cd discord-files
sed -i '2s/.*/#include <cstdint>/' types.h
cd ..

0 comments on commit e89df5e

Please sign in to comment.