Commit a5ae4a93 authored by haiyoucuv's avatar haiyoucuv

上传

parent 66a57594
...@@ -6,7 +6,83 @@ const html = fs.readFileSync('./build/web-mobile/index.html', 'utf8'); ...@@ -6,7 +6,83 @@ const html = fs.readFileSync('./build/web-mobile/index.html', 'utf8');
const json = JSON.stringify({ const json = JSON.stringify({
skinId:"Cave_Cruiser", skinId:"Cave_Cruiser",
html: html, html: `<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<meta name="theme-color" content="#000000">
<link rel="dns-prefetch" href="//yun.duiba.com.cn" />
<link rel="preconnect" href="//embedlog.duiba.com.cn">
<title>B client</title>
<script type="text/javascript">
if (localStorage && localStorage.isWebp) {
document
.getElementsByTagName('html')[0]
.setAttribute('duiba-webp', 'true');
}
</script>
<script src="//duiba-credits-test.oss-cn-hangzhou.aliyuncs.com/TNGD_GAMES/libs/zepto.min.js"></script>
<script>
var CFG = CFG || {};
CFG.projectId = location.pathname.split('/')[2] || '1';
function getUrlParam(name) {
var search = window.location.search;
var matched = search
.slice(1)
.match(new RegExp('(^|&)' + name + '=([^&]*)(&|$)', 'i'));
return search.length ? matched && matched[2] : null;
}
// document.addEventListener("DOMContentLoaded", function () {
// !(function (e, i) {
// var t = e.documentElement,
// n = navigator.userAgent.match(/iphone|ipod|ipad/gi),
// a = n ? Math.min(i.devicePixelRatio, 3) : 1,
// m = 'orientationchange' in window ? 'orientationchange' : 'resize';
// t.dataset.dpr = a;
// for (
// var d, l, c = !1, o = e.getElementsByTagName('meta'), r = 0; r < o.length; r++
// )
// (l = o[r]), 'viewport' == l.name && ((c = !0), (d = l));
// if (c)
// d.content =
// 'width=device-width,initial-scale=1.0,maximum-scale=1.0, minimum-scale=1.0,user-scalable=no';
// else {
// var o = e.createElement('meta');
// (o.name = 'viewport'),
// (o.content =
// 'width=device-width,initial-scale=1.0,maximum-scale=1.0, minimum-scale=1.0,user-scalable=no'),
// t.firstElementChild.appendChild(o);
// }
// var s = function () {
// var e = t.clientWidth;
// e / a > 750 && (e = 750 * a),
// (window.remScale = e / 750),
// (t.style.fontSize = 100 * (e / 750) + 'px');
// };
// s(), e.addEventListener && i.addEventListener(m, s, !1);
// })(document, window);
// })
if (!getUrlParam("appID")) {
// alert("【警告】检测到活动url中没有appID参数\\n缺少该参数会导致埋点、分享、app信息获取错误。")
}
</script>
<script type="module" crossorigin src="//duiba-credits-test.oss-cn-hangzhou.aliyuncs.com/TNGD_GAMES/B_Client/1725952333577/assets/index-BwkXRAMe.js"></script>
<link rel="stylesheet" crossorigin href="//duiba-credits-test.oss-cn-hangzhou.aliyuncs.com/TNGD_GAMES/B_Client/1725952333577/assets/index-BF9DaJcw.css">
<script type="module">import.meta.url;import("_").catch(()=>1);(async function*(){})().next();if(location.protocol!="file:"){window.__vite_is_modern_browser=true}</script>
<script type="module">!function(){if(window.__vite_is_modern_browser)return;console.warn("vite: loading legacy chunks, syntax error above and the same error below should be ignored");var e=document.getElementById("vite-legacy-polyfill"),n=document.createElement("script");n.src=e.src,n.onload=function(){System.import(document.getElementById('vite-legacy-entry').getAttribute('data-src'))},document.body.appendChild(n)}();</script>
</head>
<body>
<div id="root"></div>
<script nomodule>!function(){var e=document,t=e.createElement("script");if(!("noModule"in t)&&"onbeforeload"in t){var n=!1;e.addEventListener("beforeload",(function(e){if(e.target===t)n=!0;else if(!e.target.hasAttribute("nomodule")||!n)return;e.preventDefault()}),!0),t.type="module",t.src=".",e.head.appendChild(t),t.remove()}}();</script>
<script nomodule crossorigin id="vite-legacy-polyfill" src="//duiba-credits-test.oss-cn-hangzhou.aliyuncs.com/TNGD_GAMES/B_Client/1725952333577/assets/polyfills-legacy-DHW9fuyR.js"></script>
<script nomodule crossorigin id="vite-legacy-entry" data-src="//duiba-credits-test.oss-cn-hangzhou.aliyuncs.com/TNGD_GAMES/B_Client/1725952333577/assets/index-legacy-CsWoKdaf.js">System.import(document.getElementById('vite-legacy-entry').getAttribute('data-src'))</script>
</body>
</html>`,
}); });
fs.writeFileSync('./build/publish.json', json); fs.writeFileSync('./build/publish.json', json);
......
{"skinId":"Cave_Cruiser","html":"<!DOCTYPE html>\r\n<html>\r\n<head>\r\n <meta charset=\"utf-8\">\r\n\r\n <title>Cave Cruiser</title>\r\n\r\n <!--http://www.html5rocks.com/en/mobile/mobifying/-->\r\n <meta name=\"viewport\"\r\n content=\"width=device-width,user-scalable=no,initial-scale=1,minimum-scale=1,maximum-scale=1,minimal-ui=true\" />\r\n\r\n <!--https://developer.apple.com/library/safari/documentation/AppleApplications/Reference/SafariHTMLRef/Articles/MetaTags.html-->\r\n <meta name=\"apple-mobile-web-app-capable\" content=\"yes\">\r\n <meta name=\"apple-mobile-web-app-status-bar-style\" content=\"black-translucent\">\r\n <meta name=\"format-detection\" content=\"telephone=no\">\r\n\r\n <!-- force webkit on 360 -->\r\n <meta name=\"renderer\" content=\"webkit\" />\r\n <meta name=\"force-rendering\" content=\"webkit\" />\r\n <!-- force edge on IE -->\r\n <meta http-equiv=\"X-UA-Compatible\" content=\"IE=edge,chrome=1\" />\r\n <meta name=\"msapplication-tap-highlight\" content=\"no\">\r\n\r\n <!-- force full screen on some browser -->\r\n <meta name=\"full-screen\" content=\"yes\" />\r\n <meta name=\"x5-fullscreen\" content=\"true\" />\r\n <meta name=\"360-fullscreen\" content=\"true\" />\r\n\r\n <!--fix fireball/issues/3568 -->\r\n <!--<meta name=\"browsermode\" content=\"application\">-->\r\n <meta name=\"x5-page-mode\" content=\"app\">\r\n\r\n <!--<link rel=\"apple-touch-icon\" href=\".png\" />-->\r\n <!--<link rel=\"apple-touch-icon-precomposed\" href=\".png\" />-->\r\n\r\n <script src=\"//duiba-credits-test.oss-cn-hangzhou.aliyuncs.com/TNGD_GAMES/Cave_Cruiser/1725954824978/src/assets/plugin/zepto.min.js\"></script>\r\n <script src=\"//duiba-credits-test.oss-cn-hangzhou.aliyuncs.com/TNGD_GAMES/Cave_Cruiser/1725954824978/src/assets/plugin/declare-process.js\"></script>\r\n <script src=\"//duiba-credits-test.oss-cn-hangzhou.aliyuncs.com/TNGD_GAMES/Cave_Cruiser/1725954824978/src/assets/plugin/SVGA.Lite.v2.1.1.js\"></script>\r\n\r\n <link rel=\"stylesheet\" type=\"text/css\" href=\"//duiba-credits-test.oss-cn-hangzhou.aliyuncs.com/TNGD_GAMES/Cave_Cruiser/1725954824978/style.css\" />\r\n <link rel=\"stylesheet\" type=\"text/css\" href=\"//duiba-credits-test.oss-cn-hangzhou.aliyuncs.com/TNGD_GAMES/Cave_Cruiser/1725954824978/custom.css\" />\r\n\r\n <script type=\"text/javascript\" src=\"https://appx/web-view.min.js\"></script>\r\n\r\n</head>\r\n<body style=\"overflow: hidden;\">\r\n<div id=\"GameDiv\" cc_exact_fit_screen=\"true\" style=\"overflow: hidden;\">\r\n <div id=\"Cocos3dGameContainer\">\r\n <canvas id=\"GameCanvas\" oncontextmenu=\"event.preventDefault()\" tabindex=\"99\"></canvas>\r\n </div>\r\n</div>\r\n\r\n<!-- Polyfills bundle. -->\r\n<script src=\"//duiba-credits-test.oss-cn-hangzhou.aliyuncs.com/TNGD_GAMES/Cave_Cruiser/1725954824978/src/polyfills.bundle.js\" charset=\"utf-8\"></script>\r\n\r\n<!-- SystemJS support. -->\r\n<script src=\"//duiba-credits-test.oss-cn-hangzhou.aliyuncs.com/TNGD_GAMES/Cave_Cruiser/1725954824978/src/system.bundle.js\" charset=\"utf-8\"></script>\r\n\r\n<!-- Import map -->\r\n<script src=\"//duiba-credits-test.oss-cn-hangzhou.aliyuncs.com/TNGD_GAMES/Cave_Cruiser/1725954824978/src/import-map.json\" type=\"systemjs-importmap\" charset=\"utf-8\"></script>\r\n\r\n<script>\r\n System.import('//duiba-credits-test.oss-cn-hangzhou.aliyuncs.com/TNGD_GAMES/Cave_Cruiser/1725954824978/index.js').catch(function (err) {\r\n console.error(err);\r\n })\r\n</script>\r\n\r\n</body>\r\n</html>\r\n"} {"skinId":"Cave_Cruiser","html":"<!doctype html>\n<html lang=\"en\">\n <head>\n <meta charset=\"UTF-8\" />\n <meta name=\"viewport\" content=\"width=device-width, initial-scale=1, shrink-to-fit=no\">\n <meta name=\"theme-color\" content=\"#000000\">\n <link rel=\"dns-prefetch\" href=\"//yun.duiba.com.cn\" />\n <link rel=\"preconnect\" href=\"//embedlog.duiba.com.cn\">\n <title>B client</title>\n <script type=\"text/javascript\">\n if (localStorage && localStorage.isWebp) {\n document\n .getElementsByTagName('html')[0]\n .setAttribute('duiba-webp', 'true');\n }\n </script>\n <script src=\"//duiba-credits-test.oss-cn-hangzhou.aliyuncs.com/TNGD_GAMES/libs/zepto.min.js\"></script>\n <script>\n var CFG = CFG || {};\n CFG.projectId = location.pathname.split('/')[2] || '1';\n\n function getUrlParam(name) {\n var search = window.location.search;\n var matched = search\n .slice(1)\n .match(new RegExp('(^|&)' + name + '=([^&]*)(&|$)', 'i'));\n return search.length ? matched && matched[2] : null;\n }\n\n // document.addEventListener(\"DOMContentLoaded\", function () {\n // !(function (e, i) {\n // var t = e.documentElement,\n // n = navigator.userAgent.match(/iphone|ipod|ipad/gi),\n // a = n ? Math.min(i.devicePixelRatio, 3) : 1,\n // m = 'orientationchange' in window ? 'orientationchange' : 'resize';\n // t.dataset.dpr = a;\n // for (\n // var d, l, c = !1, o = e.getElementsByTagName('meta'), r = 0; r < o.length; r++\n // )\n // (l = o[r]), 'viewport' == l.name && ((c = !0), (d = l));\n // if (c)\n // d.content =\n // 'width=device-width,initial-scale=1.0,maximum-scale=1.0, minimum-scale=1.0,user-scalable=no';\n // else {\n // var o = e.createElement('meta');\n // (o.name = 'viewport'),\n // (o.content =\n // 'width=device-width,initial-scale=1.0,maximum-scale=1.0, minimum-scale=1.0,user-scalable=no'),\n // t.firstElementChild.appendChild(o);\n // }\n // var s = function () {\n // var e = t.clientWidth;\n // e / a > 750 && (e = 750 * a),\n // (window.remScale = e / 750),\n // (t.style.fontSize = 100 * (e / 750) + 'px');\n // };\n // s(), e.addEventListener && i.addEventListener(m, s, !1);\n // })(document, window);\n // })\n\n\n if (!getUrlParam(\"appID\")) {\n // alert(\"【警告】检测到活动url中没有appID参数\\n缺少该参数会导致埋点、分享、app信息获取错误。\")\n }\n </script>\n <script type=\"module\" crossorigin src=\"//duiba-credits-test.oss-cn-hangzhou.aliyuncs.com/TNGD_GAMES/B_Client/1725952333577/assets/index-BwkXRAMe.js\"></script>\n <link rel=\"stylesheet\" crossorigin href=\"//duiba-credits-test.oss-cn-hangzhou.aliyuncs.com/TNGD_GAMES/B_Client/1725952333577/assets/index-BF9DaJcw.css\">\n <script type=\"module\">import.meta.url;import(\"_\").catch(()=>1);(async function*(){})().next();if(location.protocol!=\"file:\"){window.__vite_is_modern_browser=true}</script>\n <script type=\"module\">!function(){if(window.__vite_is_modern_browser)return;console.warn(\"vite: loading legacy chunks, syntax error above and the same error below should be ignored\");var e=document.getElementById(\"vite-legacy-polyfill\"),n=document.createElement(\"script\");n.src=e.src,n.onload=function(){System.import(document.getElementById('vite-legacy-entry').getAttribute('data-src'))},document.body.appendChild(n)}();</script>\n </head>\n <body>\n <div id=\"root\"></div>\n <script nomodule>!function(){var e=document,t=e.createElement(\"script\");if(!(\"noModule\"in t)&&\"onbeforeload\"in t){var n=!1;e.addEventListener(\"beforeload\",(function(e){if(e.target===t)n=!0;else if(!e.target.hasAttribute(\"nomodule\")||!n)return;e.preventDefault()}),!0),t.type=\"module\",t.src=\".\",e.head.appendChild(t),t.remove()}}();</script>\n <script nomodule crossorigin id=\"vite-legacy-polyfill\" src=\"//duiba-credits-test.oss-cn-hangzhou.aliyuncs.com/TNGD_GAMES/B_Client/1725952333577/assets/polyfills-legacy-DHW9fuyR.js\"></script>\n <script nomodule crossorigin id=\"vite-legacy-entry\" data-src=\"//duiba-credits-test.oss-cn-hangzhou.aliyuncs.com/TNGD_GAMES/B_Client/1725952333577/assets/index-legacy-CsWoKdaf.js\">System.import(document.getElementById('vite-legacy-entry').getAttribute('data-src'))</script>\n </body>\n</html>"}
\ No newline at end of file \ No newline at end of file
...@@ -33,12 +33,12 @@ ...@@ -33,12 +33,12 @@
<!--<link rel="apple-touch-icon" href=".png" />--> <!--<link rel="apple-touch-icon" href=".png" />-->
<!--<link rel="apple-touch-icon-precomposed" href=".png" />--> <!--<link rel="apple-touch-icon-precomposed" href=".png" />-->
<script src="//duiba-credits-test.oss-cn-hangzhou.aliyuncs.com/TNGD_GAMES/Cave_Cruiser/1725971510457/src/assets/plugin/zepto.min.js"></script> <script src="//duiba-credits-test.oss-cn-hangzhou.aliyuncs.com/TNGD_GAMES/Cave_Cruiser/1725972478927/src/assets/plugin/zepto.min.js"></script>
<script src="//duiba-credits-test.oss-cn-hangzhou.aliyuncs.com/TNGD_GAMES/Cave_Cruiser/1725971510457/src/assets/plugin/declare-process.js"></script> <script src="//duiba-credits-test.oss-cn-hangzhou.aliyuncs.com/TNGD_GAMES/Cave_Cruiser/1725972478927/src/assets/plugin/declare-process.js"></script>
<script src="//duiba-credits-test.oss-cn-hangzhou.aliyuncs.com/TNGD_GAMES/Cave_Cruiser/1725971510457/src/assets/plugin/SVGA.Lite.v2.1.1.js"></script> <script src="//duiba-credits-test.oss-cn-hangzhou.aliyuncs.com/TNGD_GAMES/Cave_Cruiser/1725972478927/src/assets/plugin/SVGA.Lite.v2.1.1.js"></script>
<link rel="stylesheet" type="text/css" href="//duiba-credits-test.oss-cn-hangzhou.aliyuncs.com/TNGD_GAMES/Cave_Cruiser/1725971510457/style.css" /> <link rel="stylesheet" type="text/css" href="//duiba-credits-test.oss-cn-hangzhou.aliyuncs.com/TNGD_GAMES/Cave_Cruiser/1725972478927/style.css" />
<link rel="stylesheet" type="text/css" href="//duiba-credits-test.oss-cn-hangzhou.aliyuncs.com/TNGD_GAMES/Cave_Cruiser/1725971510457/custom.css" /> <link rel="stylesheet" type="text/css" href="//duiba-credits-test.oss-cn-hangzhou.aliyuncs.com/TNGD_GAMES/Cave_Cruiser/1725972478927/custom.css" />
<script type="text/javascript" src="https://appx/web-view.min.js"></script> <script type="text/javascript" src="https://appx/web-view.min.js"></script>
...@@ -51,16 +51,16 @@ ...@@ -51,16 +51,16 @@
</div> </div>
<!-- Polyfills bundle. --> <!-- Polyfills bundle. -->
<script src="//duiba-credits-test.oss-cn-hangzhou.aliyuncs.com/TNGD_GAMES/Cave_Cruiser/1725971510457/src/polyfills.bundle.js" charset="utf-8"></script> <script src="//duiba-credits-test.oss-cn-hangzhou.aliyuncs.com/TNGD_GAMES/Cave_Cruiser/1725972478927/src/polyfills.bundle.js" charset="utf-8"></script>
<!-- SystemJS support. --> <!-- SystemJS support. -->
<script src="//duiba-credits-test.oss-cn-hangzhou.aliyuncs.com/TNGD_GAMES/Cave_Cruiser/1725971510457/src/system.bundle.js" charset="utf-8"></script> <script src="//duiba-credits-test.oss-cn-hangzhou.aliyuncs.com/TNGD_GAMES/Cave_Cruiser/1725972478927/src/system.bundle.js" charset="utf-8"></script>
<!-- Import map --> <!-- Import map -->
<script src="//duiba-credits-test.oss-cn-hangzhou.aliyuncs.com/TNGD_GAMES/Cave_Cruiser/1725971510457/src/import-map.json" type="systemjs-importmap" charset="utf-8"></script> <script src="//duiba-credits-test.oss-cn-hangzhou.aliyuncs.com/TNGD_GAMES/Cave_Cruiser/1725972478927/src/import-map.json" type="systemjs-importmap" charset="utf-8"></script>
<script> <script>
System.import('//duiba-credits-test.oss-cn-hangzhou.aliyuncs.com/TNGD_GAMES/Cave_Cruiser/1725971510457/index.js').catch(function (err) { System.import('//duiba-credits-test.oss-cn-hangzhou.aliyuncs.com/TNGD_GAMES/Cave_Cruiser/1725972478927/index.js').catch(function (err) {
console.error(err); console.error(err);
}) })
</script> </script>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment