added automatic discord game sdk lib exporting

This commit is contained in:
2023-04-25 13:43:18 +02:00
parent 6bc04c045b
commit a62ae85545
6 changed files with 9 additions and 8 deletions

View File

@@ -1,7 +1,10 @@
@tool
extends EditorExportPlugin
# Called when the node enters the scene tree for the first time.
func _export_end():
pass
func _export_file(path, type, features):
if path[2] == "windows":
add_shared_object("res://addons/discord-sdk-gd/bin/windows/discord_game_sdk.dll",[],"/")
elif path[2] == "linux":
add_shared_object("res://addons/discord-sdk-gd/bin/linux/discord_game_sdk.so",[],"/")
elif path[2] == "macos":
add_shared_object("res://addons/discord-sdk-gd/bin/macos/discord_game_sdk.dylib",[],"/")

View File

@@ -35,7 +35,7 @@ codesign/timestamp_server_url=""
codesign/digest_algorithm=1
codesign/description=""
codesign/custom_options=PackedStringArray()
application/modify_resources=true
application/modify_resources=false
application/icon=""
application/console_wrapper_icon=""
application/icon_interpolation=4