added web export and docker files
This commit is contained in:
1 parent
fc18e56b3f
commit
2d2bed4ace
4 files changed
+87
No files matched your search
@@ -0,0 +1,20 @@
|
|||||||
|
FROM barichello/godot-ci:4.6.2 AS builder
|
||||||
|
|
||||||
|
|
||||||
|
WORKDIR /app
|
||||||
|
|
||||||
|
COPY . .
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
RUN mkdir -p /build
|
||||||
|
|
||||||
|
RUN godot --headless --verbose --export-release "Web" "/build/index.html"
|
||||||
|
|
||||||
|
|
||||||
|
FROM nginx:1.30.0
|
||||||
|
|
||||||
|
COPY docker/nginx.conf /etc/nginx/default.conf
|
||||||
|
|
||||||
|
COPY --from=builder /build /usr/share/nginx/html
|
||||||
|
|
||||||
@@ -0,0 +1,20 @@
|
|||||||
|
server {
|
||||||
|
listen 80;
|
||||||
|
server_name localhost;
|
||||||
|
|
||||||
|
add_header Cross-Origin-Embedder-Policy 'require-corp';
|
||||||
|
add_header Cross-Origin-Opener-Policy 'same-origin';
|
||||||
|
|
||||||
|
location / {
|
||||||
|
root /usr/share/nginx/html;
|
||||||
|
index index.html index.htm;
|
||||||
|
try_files $uri $uri/ =404;
|
||||||
|
|
||||||
|
types {
|
||||||
|
application/wasm wasm;
|
||||||
|
text/html html;
|
||||||
|
application/javascript js;
|
||||||
|
text/css css;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,45 @@
|
|||||||
|
[preset.0]
|
||||||
|
|
||||||
|
name="Web"
|
||||||
|
platform="Web"
|
||||||
|
runnable=true
|
||||||
|
advanced_options=false
|
||||||
|
dedicated_server=false
|
||||||
|
custom_features=""
|
||||||
|
export_filter="all_resources"
|
||||||
|
include_filter="*.md, *txt, assest/Sounds/*"
|
||||||
|
exclude_filter=""
|
||||||
|
export_path="builds/web/build/index.html"
|
||||||
|
patches=PackedStringArray()
|
||||||
|
encryption_include_filters=""
|
||||||
|
encryption_exclude_filters=""
|
||||||
|
seed=0
|
||||||
|
encrypt_pck=false
|
||||||
|
encrypt_directory=false
|
||||||
|
script_export_mode=2
|
||||||
|
|
||||||
|
[preset.0.options]
|
||||||
|
|
||||||
|
custom_template/debug=""
|
||||||
|
custom_template/release=""
|
||||||
|
variant/extensions_support=true
|
||||||
|
variant/thread_support=false
|
||||||
|
vram_texture_compression/for_desktop=true
|
||||||
|
vram_texture_compression/for_mobile=false
|
||||||
|
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/ensure_cross_origin_isolation_headers=true
|
||||||
|
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)
|
||||||
|
threads/emscripten_pool_size=8
|
||||||
|
threads/godot_pool_size=4
|
||||||
Reference in new issue
Block a user