chore:更新Web导出产物并新增本地服务脚本
This commit is contained in:
40
tools/serve_web_assets.bat
Normal file
40
tools/serve_web_assets.bat
Normal file
@@ -0,0 +1,40 @@
|
|||||||
|
@echo off
|
||||||
|
echo ========================================
|
||||||
|
echo 鲸鱼镇 Web服务器 (web_assets)
|
||||||
|
echo ========================================
|
||||||
|
echo.
|
||||||
|
|
||||||
|
set "PORT=8000"
|
||||||
|
|
||||||
|
REM 检查Python
|
||||||
|
python --version >nul 2>&1
|
||||||
|
if %ERRORLEVEL% neq 0 (
|
||||||
|
echo [错误] 未找到Python!
|
||||||
|
echo 请安装Python: https://python.org/downloads
|
||||||
|
pause
|
||||||
|
exit /b 1
|
||||||
|
)
|
||||||
|
|
||||||
|
REM 检查文件
|
||||||
|
if not exist "web_assets\index.html" (
|
||||||
|
echo [错误] 未找到 web_assets\index.html
|
||||||
|
pause
|
||||||
|
exit /b 1
|
||||||
|
)
|
||||||
|
|
||||||
|
echo [启动] 启动服务器...
|
||||||
|
echo 端口: %PORT%
|
||||||
|
echo 目录: web_assets
|
||||||
|
echo.
|
||||||
|
echo 访问地址: http://localhost:%PORT%
|
||||||
|
echo.
|
||||||
|
echo 按 Ctrl+C 停止服务器
|
||||||
|
echo.
|
||||||
|
|
||||||
|
REM 启动服务器
|
||||||
|
cd web_assets
|
||||||
|
start http://localhost:%PORT%
|
||||||
|
python -m http.server %PORT%
|
||||||
|
|
||||||
|
cd ..
|
||||||
|
pause
|
||||||
@@ -112,7 +112,7 @@ body {
|
|||||||
|
|
||||||
<script src="index.js"></script>
|
<script src="index.js"></script>
|
||||||
<script>
|
<script>
|
||||||
const GODOT_CONFIG = {"args":[],"canvasResizePolicy":2,"emscriptenPoolSize":8,"ensureCrossOriginIsolationHeaders":true,"executable":"index","experimentalVK":false,"fileSizes":{"index.pck":35119676,"index.wasm":36145869},"focusCanvas":true,"gdextensionLibs":[],"godotPoolSize":4,"serviceWorker":"index.service.worker.js"};
|
const GODOT_CONFIG = {"args":[],"canvasResizePolicy":2,"emscriptenPoolSize":8,"ensureCrossOriginIsolationHeaders":true,"executable":"index","experimentalVK":false,"fileSizes":{"index.pck":46883000,"index.wasm":37686550},"focusCanvas":true,"gdextensionLibs":[],"godotPoolSize":4,"serviceWorker":"index.service.worker.js"};
|
||||||
const GODOT_THREADS_ENABLED = false;
|
const GODOT_THREADS_ENABLED = false;
|
||||||
const engine = new Engine(GODOT_CONFIG);
|
const engine = new Engine(GODOT_CONFIG);
|
||||||
|
|
||||||
|
|||||||
File diff suppressed because one or more lines are too long
@@ -1 +1 @@
|
|||||||
{"background_color":"#316cff","display":"standalone","icons":[{"sizes":"144x144","src":"index.144x144.png","type":"image/png"},{"sizes":"180x180","src":"index.180x180.png","type":"image/png"},{"sizes":"512x512","src":"index.512x512.png","type":"image/png"}],"name":"whaleTown","orientation":"any","start_url":"./index.html"}
|
{"background_color":"#1349ff","display":"standalone","icons":[{"sizes":"144x144","src":"index.144x144.png","type":"image/png"},{"sizes":"180x180","src":"index.180x180.png","type":"image/png"},{"sizes":"512x512","src":"index.512x512.png","type":"image/png"}],"name":"whaleTown","orientation":"any","start_url":"./index.html"}
|
||||||
Binary file not shown.
@@ -4,7 +4,7 @@
|
|||||||
// Incrementing CACHE_VERSION will kick off the install event and force
|
// Incrementing CACHE_VERSION will kick off the install event and force
|
||||||
// previously cached resources to be updated from the network.
|
// previously cached resources to be updated from the network.
|
||||||
/** @type {string} */
|
/** @type {string} */
|
||||||
const CACHE_VERSION = '1766673973|3863914';
|
const CACHE_VERSION = '1773130384|168741112';
|
||||||
/** @type {string} */
|
/** @type {string} */
|
||||||
const CACHE_PREFIX = 'whaleTown-sw-cache-';
|
const CACHE_PREFIX = 'whaleTown-sw-cache-';
|
||||||
const CACHE_NAME = CACHE_PREFIX + CACHE_VERSION;
|
const CACHE_NAME = CACHE_PREFIX + CACHE_VERSION;
|
||||||
|
|||||||
Binary file not shown.
Reference in New Issue
Block a user