added abillity for export scripts

This commit is contained in:
2023-04-25 11:50:52 +02:00
parent bd125cb7d3
commit 6bc04c045b
3 changed files with 14 additions and 1 deletions

View File

@@ -0,0 +1,7 @@
@tool
extends EditorExportPlugin
# Called when the node enters the scene tree for the first time.
func _export_end():
pass

View File

@@ -1,9 +1,15 @@
@tool @tool
extends EditorPlugin extends EditorPlugin
const ExportPlugin = preload("res://addons/discord-sdk-gd/export.gd")
var loaded_exportplugin = ExportPlugin.new()
func _enter_tree(): func _enter_tree():
add_autoload_singleton("discord_coreupdater", "res://addons/discord-sdk-gd/discord_coreupdater.gd") add_autoload_singleton("discord_coreupdater", "res://addons/discord-sdk-gd/discord_coreupdater.gd")
add_export_plugin(loaded_exportplugin)
func disable_plugin(): func disable_plugin():
remove_autoload_singleton("discord_coreupdater") remove_autoload_singleton("discord_coreupdater")
remove_export_plugin(loaded_exportplugin)

View File

@@ -8,7 +8,7 @@ custom_features=""
export_filter="all_resources" export_filter="all_resources"
include_filter="" include_filter=""
exclude_filter="" exclude_filter=""
export_path="../../Demo/Discord_Activity.exe" export_path="../../demo/Discord_Activity.exe"
encryption_include_filters="" encryption_include_filters=""
encryption_exclude_filters="" encryption_exclude_filters=""
encrypt_pck=false encrypt_pck=false