Compare commits
5 Commits
Author | SHA1 | Date | |
---|---|---|---|
|
548349d9f8 | ||
|
68c8a42826 | ||
|
3e944683a4 | ||
|
6f288564cf | ||
|
aa39fb80e0 |
1
.github/ISSUE_TEMPLATE/BUG.yml
vendored
1
.github/ISSUE_TEMPLATE/BUG.yml
vendored
@@ -23,6 +23,7 @@ body:
|
||||
label: Version
|
||||
description: What version of our software are you running?
|
||||
options:
|
||||
- 2.3
|
||||
- 2.2
|
||||
- 2.1
|
||||
- 2.0
|
||||
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -17,13 +17,13 @@ linux.release.rv64 = "bin/linux/libdiscord_game_sdk_binding.so"
|
||||
|
||||
[dependencies]
|
||||
|
||||
macos.debug = "bin/macos/libdiscord_game_sdk.dylib"
|
||||
macos.release = "bin/macos/libdiscord_game_sdk.dylib"
|
||||
windows.debug.x86_64 = "bin/windows/discord_game_sdk.dll"
|
||||
windows.release.x86_64 = "bin/windows/discord_game_sdk.dll"
|
||||
linux.debug.x86_64 = "bin/linux/libdiscord_game_sdk.so"
|
||||
linux.release.x86_64 = "bin/linux/libdiscord_game_sdk.so"
|
||||
linux.debug.arm64 = "bin/linux/libdiscord_game_sdk.so"
|
||||
linux.release.arm64 = "bin/linux/libdiscord_game_sdk.so"
|
||||
linux.debug.rv64 = "bin/linux/libdiscord_game_sdk.so"
|
||||
linux.release.rv64 = "bin/linux/libdiscord_game_sdk.so"
|
||||
macos.debug = { "bin/macos/libdiscord_game_sdk.dylib": "" }
|
||||
macos.release = { "bin/macos/libdiscord_game_sdk.dylib": "" }
|
||||
windows.debug.x86_64 = { "bin/windows/discord_game_sdk.dll": "" }
|
||||
windows.release.x86_64 = { "bin/windows/discord_game_sdk.dll": "" }
|
||||
linux.debug.x86_64 = { "bin/linux/libdiscord_game_sdk.so": "" }
|
||||
linux.release.x86_64 = { "bin/linux/libdiscord_game_sdk.so": "" }
|
||||
linux.debug.arm64 = { "bin/linux/libdiscord_game_sdk.so": "" }
|
||||
linux.release.arm64 = { "bin/linux/libdiscord_game_sdk.so": "" }
|
||||
linux.debug.rv64 = { "bin/linux/libdiscord_game_sdk.so": "" }
|
||||
linux.release.rv64 = { "bin/linux/libdiscord_game_sdk.so": "" }
|
||||
|
@@ -1,17 +0,0 @@
|
||||
@tool
|
||||
extends EditorExportPlugin
|
||||
|
||||
func _export_file(_path, _type, features) -> void:
|
||||
if features.find("windows",0) != -1:
|
||||
if features.find("x86_64",0) != -1:
|
||||
add_shared_object("res://addons/discord-sdk-gd/bin/windows/discord_game_sdk.dll",[],"/")
|
||||
elif features.find("x86",0) != -1:
|
||||
add_shared_object("res://addons/discord-sdk-gd/bin/windows/discord_game_sdk_x86.dll",[],"/")
|
||||
elif features.find("linux",0) != -1:
|
||||
add_shared_object("res://addons/discord-sdk-gd/bin/linux/libdiscord_game_sdk.so",[],"/")
|
||||
elif features.find("macos",0) != -1:
|
||||
add_shared_object("res://addons/discord-sdk-gd/bin/macos/libdiscord_game_sdk.dylib",[],"/")
|
||||
add_shared_object("res://addons/discord-sdk-gd/bin/macos/libdiscord_game_sdk_aarch64.dylib",[],"/")
|
||||
|
||||
func _get_name():
|
||||
pass
|
@@ -3,5 +3,5 @@
|
||||
name="DiscordSDK"
|
||||
description="Discord Game SDK support for GDScript in Godot"
|
||||
author="vaporvee"
|
||||
version="2.2"
|
||||
version="2.3"
|
||||
script="plugin.gd"
|
||||
|
@@ -6,14 +6,9 @@ const DiscordSDKDebug_icon = preload("res://addons/discord-sdk-gd/nodes/assets/D
|
||||
var loaded_DiscordSDKDebug = DiscordSDKDebug.new()
|
||||
|
||||
|
||||
const ExportPlugin = preload("res://addons/discord-sdk-gd/export.gd")
|
||||
var loaded_exportplugin = ExportPlugin.new()
|
||||
|
||||
|
||||
func _enter_tree() -> void:
|
||||
add_custom_type("DiscordSDKDebug","Node",DiscordSDKDebug,DiscordSDKDebug_icon)
|
||||
add_autoload_singleton("DiscordSDKLoader", "res://addons/discord-sdk-gd/nodes/core_updater.gd")
|
||||
add_export_plugin(loaded_exportplugin)
|
||||
|
||||
func _enable_plugin() -> void:
|
||||
print("DiscordSDK Addon got enabled (PLEASE RESTART THE EDITOR)")
|
||||
|
@@ -8,7 +8,7 @@ custom_features=""
|
||||
export_filter="all_resources"
|
||||
include_filter=""
|
||||
exclude_filter=""
|
||||
export_path="../../uizkgiuzfv/discord_sdk_demo.exe"
|
||||
export_path="../../exportestt/discord_sdk_demo.exe"
|
||||
encryption_include_filters=""
|
||||
encryption_exclude_filters=""
|
||||
encrypt_pck=false
|
||||
|
@@ -8,10 +8,6 @@
|
||||
|
||||
config_version=5
|
||||
|
||||
[DiscordSDK]
|
||||
|
||||
EditorPresence/enabled=false
|
||||
|
||||
[application]
|
||||
|
||||
config/name="GDExtension DiscordSDK Test Project"
|
||||
|
6
setup.py
6
setup.py
@@ -6,6 +6,12 @@ import os
|
||||
with zipfile.ZipFile("src/lib/discord_game_sdk.zip", "r") as zip_ref:
|
||||
zip_ref.extractall("src/lib/discord_game_sdk/")
|
||||
|
||||
# Patch the SDK to actually build, since it's missing an include
|
||||
with open("src/lib/discord_game_sdk/cpp/types.h", "r+") as f:
|
||||
s = f.read();
|
||||
f.seek(0);
|
||||
f.write("#include <cstdint>\n" + s)
|
||||
|
||||
copy_tree("src/lib/discord_game_sdk/lib/", "src/lib/discord_game_sdk/bin/")
|
||||
os.rename(
|
||||
"src/lib/discord_game_sdk/bin/aarch64/discord_game_sdk.dylib",
|
||||
|
Reference in New Issue
Block a user