一个将 WebGAL 游戏打包到安卓平台的简易模板
A simple template for packaging WebGAL games to Android platform
- 安装 android studio 并导入本项目
- 将游戏移动到
app\src\main\assets\webgal
。默认加载app\src\main\assets\webgal\index.html
,如有需要自定义加载链接请修改app\src\main\res\values\values.xml
文件里面的load_url
字段 - 更改包名以及游戏名和图标
- 点击菜单栏
Build
->Generate Signed Bundle or APK
构建 apk
- Install android studio and import this project
- Move the game to
app\src\main\assets\webgal
. Loadapp\src\main\assets\webgal\index.html
by default, if you need to customize the load link, please modify theload_url
field inside theapp\src\main\res\values\values.xml
file - Change the package name and the game name and icon
- Click
Build
->Generate Signed Bundle or APK
in the menu bar to build the apk