class-description NEWS COMMUNITY STORE TUTORIALS SIGN UP LOGIN LOGOUT ROKOJORI NEWSLETTER SIGN UP LOGIN LOGOUT NEWS COMMUNITY STORE TUTORIALS TOGGLE FULLSCREEN VOLLBILD AN/AUS ObjectRefCounted EditorExportPlatform
Identifies a supported export platform, and internally provides the functionality of exporting to that platform.
Base resource that provides the functionality of exporting a release build of a project to a platform, from the editor. Stores platform-specific metadata such as the name and supported features of the platform, and performs the exporting of projects, PCK files, and ZIP files. Uses an export template for the platform provided at the time of project exporting.
Used in scripting by EditorExportPlugin to configure platform-specific customization of scenes and resources. See [method EditorExportPlugin._begin_customize_scenes] and [method EditorExportPlugin._begin_customize_resources] for more details.
Enum ExportMessageType<>():Enum

EXPORT_MESSAGE_NONE:null = 0
Invalid message type used as the default value when no type is specified.


EXPORT_MESSAGE_INFO:null = 1
Message type for informational messages that have no effect on the export.


EXPORT_MESSAGE_WARNING:null = 2
Message type for warning messages that should be addressed but still allow to complete the export.


EXPORT_MESSAGE_ERROR:null = 3
Message type for error messages that must be addressed and fail the export.
Enum DebugFlags<>():Enum

DEBUG_FLAG_DUMB_CLIENT:null = 1
Flag is set if the remotely debugged project is expected to use the remote file system. If set, gen_export_flags will append --remote-fs and --remote-fs-password (if [member EditorSettings.filesystem/file_server/password] is defined) command line arguments to the returned list.


DEBUG_FLAG_REMOTE_DEBUG:null = 2
Flag is set if remote debug is enabled. If set, gen_export_flags will append --remote-debug and --breakpoints (if breakpoints are selected in the script editor or added by the plugin) command line arguments to the returned list.


DEBUG_FLAG_REMOTE_DEBUG_LOCALHOST:null = 4
Flag is set if remotely debugged project is running on the localhost. If set, gen_export_flags will use localhost instead of [member EditorSettings.network/debug/remote_host] as remote debugger host.


DEBUG_FLAG_VIEW_COLLISIONS:null = 8
Flag is set if the "Visible Collision Shapes" remote debug option is enabled. If set, gen_export_flags will append the --debug-collisions command line argument to the returned list.


DEBUG_FLAG_VIEW_NAVIGATION:null = 16
Flag is set if the "Visible Navigation" remote debug option is enabled. If set, gen_export_flags will append the --debug-navigation command line argument to the returned list.
void add_message<>( int type=, type:int=, String category=, category:String=, String message=, message:String=, ):void
Adds a message to the export log that will be displayed when exporting ends.

void clear_messages<>():void
Clears the export log.

EditorExportPreset create_preset<>():EditorExportPreset
Create a new preset for this platform.

int export_pack<>( EditorExportPreset preset=, preset:EditorExportPreset=, bool debug=, debug:bool=, String path=, path:String=, int flags=0, flags:int=0, ):int
Creates a PCK archive at path for the specified preset.

int export_pack_patch<>( EditorExportPreset preset=, preset:EditorExportPreset=, bool debug=, debug:bool=, String path=, path:String=, PackedStringArray patches=PackedStringArray(), patches:PackedStringArray=PackedStringArray(), int flags=0, flags:int=0, ):int
Creates a patch PCK archive at path for the specified preset, containing only the files that have changed since the last patch.

Note: patches is an optional override of the set of patches defined in the export preset. When empty the patches defined in the export preset will be used instead.
int export_project<>( EditorExportPreset preset=, preset:EditorExportPreset=, bool debug=, debug:bool=, String path=, path:String=, int flags=0, flags:int=0, ):int
Creates a full project at path for the specified preset.

int export_project_files<>( EditorExportPreset preset=, preset:EditorExportPreset=, bool debug=, debug:bool=, Callable save_cb=, save_cb:Callable=, Callable shared_cb=Callable(), shared_cb:Callable=Callable(), ):int
Exports project files for the specified preset. This method can be used to implement custom export format, other than PCK and ZIP. One of the callbacks is called for each exported file.

save_cb is called for all exported files and have the following arguments: file_path: String, file_data: PackedByteArray, file_index: int, file_count: int, encryption_include_filters: PackedStringArray, encryption_exclude_filters: PackedStringArray, encryption_key: PackedByteArray.
shared_cb is called for exported native shared/static libraries and have the following arguments: file_path: String, tags: PackedStringArray, target_folder: String.
Note: file_index and file_count are intended for progress tracking only and aren't necessarily unique and precise.
int export_zip<>( EditorExportPreset preset=, preset:EditorExportPreset=, bool debug=, debug:bool=, String path=, path:String=, int flags=0, flags:int=0, ):int
Create a ZIP archive at path for the specified preset.

int export_zip_patch<>( EditorExportPreset preset=, preset:EditorExportPreset=, bool debug=, debug:bool=, String path=, path:String=, PackedStringArray patches=PackedStringArray(), patches:PackedStringArray=PackedStringArray(), int flags=0, flags:int=0, ):int
Create a patch ZIP archive at path for the specified preset, containing only the files that have changed since the last patch.

Note: patches is an optional override of the set of patches defined in the export preset. When empty the patches defined in the export preset will be used instead.
Dictionary find_export_template<>( String template_file_name=, template_file_name:String=, ):Dictionary
Locates export template for the platform, and returns Dictionary with the following keys: path: String and error: String. This method is provided for convenience and custom export platforms aren't required to use it or keep export templates stored in the same way official templates are.

PackedStringArray gen_export_flags<>( int flags=, flags:int=, ):PackedStringArray
Generates array of command line arguments for the default export templates for the debug flags and editor settings.

Array get_current_presets<>():Array
Returns array of EditorExportPresets for this platform.

PackedStringArray get_forced_export_files<>( EditorExportPreset preset=null, preset:EditorExportPreset=null, ):PackedStringArray
Returns array of core file names that always should be exported regardless of preset config.

Dictionary get_internal_export_files<>( EditorExportPreset preset=, preset:EditorExportPreset=, bool debug=, debug:bool=, ):Dictionary
Returns additional files that should always be exported regardless of preset configuration, and are not part of the project source. The returned Dictionary contains filename keys (String) and their corresponding raw data (PackedByteArray).

String get_message_category<>( int index=, index:int=, ):String
Returns message category, for the message with index.

int get_message_count<>():int
Returns number of messages in the export log.

String get_message_text<>( int index=, index:int=, ):String
Returns message text, for the message with index.

int get_message_type<>( int index=, index:int=, ):int
Returns message type, for the message with index.

String get_os_name<>():String
Returns the name of the export operating system handled by this EditorExportPlatform class, as a friendly string. Possible return values are Windows, Linux, macOS, Android, iOS, and Web.

int get_worst_message_type<>():int
Returns most severe message type currently present in the export log.

Dictionary save_pack<>( EditorExportPreset preset=, preset:EditorExportPreset=, bool debug=, debug:bool=, String path=, path:String=, bool embed=false, embed:bool=false, ):Dictionary
Saves PCK archive and returns Dictionary with the following keys: result: Error, so_files: Array (array of the shared/static objects which contains dictionaries with the following keys: path: String, tags: PackedStringArray, and target_folder: String).

If embed is true, PCK content is appended to the end of path file and return Dictionary additionally include following keys: embedded_start: int (embedded PCK offset) and embedded_size: int (embedded PCK size).
Dictionary save_pack_patch<>( EditorExportPreset preset=, preset:EditorExportPreset=, bool debug=, debug:bool=, String path=, path:String=, ):Dictionary
Saves patch PCK archive and returns Dictionary with the following keys: result: Error, so_files: Array (array of the shared/static objects which contains dictionaries with the following keys: path: String, tags: PackedStringArray, and target_folder: String).

Dictionary save_zip<>( EditorExportPreset preset=, preset:EditorExportPreset=, bool debug=, debug:bool=, String path=, path:String=, ):Dictionary
Saves ZIP archive and returns Dictionary with the following keys: result: Error, so_files: Array (array of the shared/static objects which contains dictionaries with the following keys: path: String, tags: PackedStringArray, and target_folder: String).

Dictionary save_zip_patch<>( EditorExportPreset preset=, preset:EditorExportPreset=, bool debug=, debug:bool=, String path=, path:String=, ):Dictionary
Saves patch ZIP archive and returns Dictionary with the following keys: result: Error, so_files: Array (array of the shared/static objects which contains dictionaries with the following keys: path: String, tags: PackedStringArray, and target_folder: String).

int ssh_push_to_remote<>( String host=, host:String=, String port=, port:String=, PackedStringArray scp_args=, scp_args:PackedStringArray=, String src_file=, src_file:String=, String dst_file=, dst_file:String=, ):int
Uploads specified file over SCP protocol to the remote host.

int ssh_run_on_remote<>( String host=, host:String=, String port=, port:String=, PackedStringArray ssh_arg=, ssh_arg:PackedStringArray=, String cmd_args=, cmd_args:String=, Array output=[], output:Array=[], int port_fwd=-1, port_fwd:int=-1, ):int
Executes specified command on the remote host via SSH protocol and returns command output in the output.

int ssh_run_on_remote_no_wait<>( String host=, host:String=, String port=, port:String=, PackedStringArray ssh_args=, ssh_args:PackedStringArray=, String cmd_args=, cmd_args:String=, int port_fwd=-1, port_fwd:int=-1, ):int
Executes specified command on the remote host via SSH protocol and returns process ID (on the remote host) without waiting for command to finish.




All social media brands are registrated trademarks and belong to their respective owners.





CONTACT IMPRINT TERMS OF USE PRIVACY © ROKOROJI ® 2021 rokojori.com
CONTACT IMPRINT TERMS OF USE PRIVACY © ROKOROJI ® 2021 rokojori.com
We are using cookies on this site. Read more... Wir benutzen Cookies auf dieser Seite. Mehr lesen...