change readme

script-cicd
guofei 2024-12-11 11:38:59 +08:00
parent c9d1d5f056
commit 0bbfc9d1b8
1 changed files with 24 additions and 5 deletions

View File

@ -41,20 +41,26 @@ SoyooFacade.InstallGame()
0. 把目标目录web-mobile复制到soyoo-cocos目录下。
1. 删掉index.html里的js代码部分
2. 在body最后加上
`<script src="loader-and-starter.js" charset="utf-8"></script>
<script src="asset-map.js" charset="utf-8"></script>`
`
<script src="loader-and-starter.js" charset="utf-8"></script>
<script src="asset-map.js" charset="utf-8"></script>
`
## 渠道处理
### applovin
1. 把networks/applovin.js 复制到web-mobile下
2. 编辑复制的applovin.js, 在前几行填入对应的iosUrl和androidUrl
3. 编辑index.html在body最后加上
`<script src="applovin.js" charset="utf-8"></script>`
`
<script src="applovin.js" charset="utf-8"></script>
`
### applovin
1. 把networks/mintegral.js 复制到web-mobile下
2. 编辑index.html在body最后加上
`<script src="mintegral.js" charset="utf-8"></script>`
`
<script src="mintegral.js" charset="utf-8"></script>
`
### moloco
1. 把`networks/moloco.js`复制到web-mobile目录下。
@ -66,3 +72,16 @@ SoyooFacade.InstallGame()
## 打包
执行命令 `node single-html/build.js`
生成目标文件 `dist/index.html`即为目标文件
```css
@media (orientation: landscape) {#splash {background-size: 15% !important;}}
```
```js
<script src="https://cdn.bootcdn.net/ajax/libs/vConsole/3.15.1/vconsole.min.js"></script>
<script>new VConsole()</script>
```