diff options
| author | Juan Linietsky | 2016-03-12 10:44:12 -0300 |
|---|---|---|
| committer | Juan Linietsky | 2016-03-12 10:46:38 -0300 |
| commit | 8b1dcbfe4d92f9d7273bbd2f1eb805e5c508961a (patch) | |
| tree | 77bd972e494e7deeef49bfa271c94d03ef2af749 /tools/editor/SCsub | |
| parent | d85f06c42d54971af5da826581c75d1ed001475e (diff) | |
| download | godot-8b1dcbfe4d92f9d7273bbd2f1eb805e5c508961a.tar.gz godot-8b1dcbfe4d92f9d7273bbd2f1eb805e5c508961a.tar.zst godot-8b1dcbfe4d92f9d7273bbd2f1eb805e5c508961a.zip | |
-Made editor support SSL certs by default (embedded them)
-Made asset sharing support https
-Many fixes to HTTPRequest
-Added an asset installer dialog
-Visual cleanups to asset sharing tab
-Fixed some issues in ScrollContainer, hope it does not break things
-Asset sharing tab is not visible (hidden on purpose) for now.
Diffstat (limited to 'tools/editor/SCsub')
| -rw-r--r-- | tools/editor/SCsub | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/tools/editor/SCsub b/tools/editor/SCsub index cd46ff835..34651b36f 100644 --- a/tools/editor/SCsub +++ b/tools/editor/SCsub @@ -26,6 +26,31 @@ def make_doc_header(target,source,env): +def make_certs_header(target,source,env): + + src = source[0].srcnode().abspath + dst = target[0].srcnode().abspath + f = open(src,"rb") + g = open(dst,"wb") + buf = f.read() + decomp_size = len(buf) + import zlib + buf = zlib.compress(buf) + + + g.write("/* THIS FILE IS GENERATED DO NOT EDIT */\n") + g.write("#ifndef _CERTS_RAW_H\n") + g.write("#define _CERTS_RAW_H\n") + g.write("static const int _certs_compressed_size="+str(len(buf))+";\n") + g.write("static const int _certs_uncompressed_size="+str(decomp_size)+";\n") + g.write("static const unsigned char _certs_compressed[]={\n") + for i in range(len(buf)): + g.write(str(ord(buf[i]))+",\n") + g.write("};\n") + g.write("#endif") + + + @@ -47,6 +72,9 @@ if (env["tools"]=="yes"): env.Depends("#tools/editor/doc_data_compressed.h","#doc/base/classes.xml") env.Command("#tools/editor/doc_data_compressed.h","#doc/base/classes.xml",make_doc_header) + env.Depends("#tools/editor/certs_compressed.h","#tools/certs/ca-certificates.crt") + env.Command("#tools/editor/certs_compressed.h","#tools/certs/ca-certificates.crt",make_certs_header) + #make_doc_header(env.File("#tools/editor/doc_data_raw.h").srcnode().abspath,env.File("#doc/base/classes.xml").srcnode().abspath,env) env.add_source_files(env.tool_sources,"*.cpp") |
