From 6936ac9d5dbea9c9edddd014e2d16533bf3e079e Mon Sep 17 00:00:00 2001 From: Fabio Alessandrelli Date: Sat, 5 Dec 2020 21:02:31 +0100 Subject: [PATCH] [HTML5] Add logo and favicon to editor html. --- misc/dist/html/editor.html | 2 + misc/dist/html/logo.svg | 219 +++++++++++++++++++++++++++++++++++++ platform/javascript/SCsub | 6 + 3 files changed, 227 insertions(+) create mode 100644 misc/dist/html/logo.svg diff --git a/misc/dist/html/editor.html b/misc/dist/html/editor.html index abe1b32535..3c3f5d4a3e 100644 --- a/misc/dist/html/editor.html +++ b/misc/dist/html/editor.html @@ -169,6 +169,8 @@
+ +

diff --git a/misc/dist/html/logo.svg b/misc/dist/html/logo.svg new file mode 100644 index 0000000000..94641b054b --- /dev/null +++ b/misc/dist/html/logo.svg @@ -0,0 +1,219 @@ + + + +image/svg+xml diff --git a/platform/javascript/SCsub b/platform/javascript/SCsub index 9c6894cfef..38a5ea417a 100644 --- a/platform/javascript/SCsub +++ b/platform/javascript/SCsub @@ -98,6 +98,12 @@ elif env["threads_enabled"]: in_files.append(build[2]) # Worker out_files.append(zip_dir.File(binary_name + ".worker.js")) +if env["tools"]: + in_files.append("#misc/dist/html/logo.svg") + out_files.append(zip_dir.File("logo.svg")) + in_files.append("#icon.png") + out_files.append(zip_dir.File("favicon.png")) + zip_files = env.InstallAs(out_files, in_files) env.Zip( "#bin/godot",