From 12c1e4df869764600f31e9536784df680f0c3d11 Mon Sep 17 00:00:00 2001 From: Martin Felis Date: Thu, 8 Dec 2022 21:27:28 +0100 Subject: [PATCH] Added html export upload script --- .gitignore | 3 +++ export/upload.sh | 4 ++++ export_presets.cfg | 35 +++++++++++++++++++++++++++++++++++ project.godot | 8 ++++---- 4 files changed, 46 insertions(+), 4 deletions(-) create mode 100755 export/upload.sh diff --git a/.gitignore b/.gitignore index d9927ad..14fafd0 100644 --- a/.gitignore +++ b/.gitignore @@ -7,3 +7,6 @@ *.idsig mono_crash.* + +export/html +export/android diff --git a/export/upload.sh b/export/upload.sh new file mode 100755 index 0000000..1a4f898 --- /dev/null +++ b/export/upload.sh @@ -0,0 +1,4 @@ +#!/bin/bash + +rsync --delete -a --progress ./html/ martin@i13s.de:/home/martin/public_html/pirategame/ + diff --git a/export_presets.cfg b/export_presets.cfg index db1cb56..ab4a628 100644 --- a/export_presets.cfg +++ b/export_presets.cfg @@ -203,3 +203,38 @@ permissions/write_sms=false permissions/write_social_stream=false permissions/write_sync_settings=false permissions/write_user_dictionary=false + +[preset.1] + +name="GodotComponentTest" +platform="HTML5" +runnable=true +custom_features="" +export_filter="all_resources" +include_filter="" +exclude_filter="" +export_path="export/html/index.html" +script_export_mode=1 +script_encryption_key="" + +[preset.1.options] + +custom_template/debug="" +custom_template/release="" +variant/export_type=0 +vram_texture_compression/for_desktop=true +vram_texture_compression/for_mobile=true +html/export_icon=true +html/custom_html_shell="" +html/head_include="" +html/canvas_resize_policy=2 +html/focus_canvas_on_start=true +html/experimental_virtual_keyboard=false +progressive_web_app/enabled=false +progressive_web_app/offline_page="" +progressive_web_app/display=1 +progressive_web_app/orientation=0 +progressive_web_app/icon_144x144="" +progressive_web_app/icon_180x180="" +progressive_web_app/icon_512x512="" +progressive_web_app/background_color=Color( 0, 0, 0, 1 ) diff --git a/project.godot b/project.godot index eb2ae4a..2c5ac05 100644 --- a/project.godot +++ b/project.godot @@ -9,17 +9,17 @@ config_version=4 _global_script_classes=[ { -"base": "Reference", +"base": "Node", "class": "ClickableComponent", "language": "GDScript", "path": "res://components/ClickableComponent.gd" }, { -"base": "Reference", +"base": "KinematicBody2D", "class": "CollisionLine", "language": "GDScript", "path": "res://utils/CollisionLine.gd" }, { -"base": "Reference", +"base": "Node", "class": "ColorComponent", "language": "GDScript", "path": "res://components/ColorComponent.gd" @@ -54,7 +54,7 @@ _global_script_classes=[ { "language": "GDScript", "path": "res://utils/SpringDamper.gd" }, { -"base": "Reference", +"base": "Sprite", "class": "TintedSpriteComponent", "language": "GDScript", "path": "res://components/TintedSpriteComponent.gd"