APP打包方式及工具
2019-06-25 本文已影响0人
AF_DEM
APP打包方式及工具
打包工具:Hbuilder
下载地址:http://www.dcloud.io/hbuilderx.html
打包步骤
npm install安装依赖
npm run serve运行
npm run build打包
[if !supportLists]1. [endif]先使用vscode或者 cmd 或者 shell 打包出dist文件夹
打包中。。。

打包完成。

[if !supportLists]2. [endif]把dist的文件全部替换到app安装包目录中

打开刚刚打包好的dist目录,选中全部的文件,ctrl+c复制。
[if !supportLists]3. [endif]替换app打包中的文件。

打开app的项目目录 ctrl + v 粘贴,替换全部静态文件
[if !supportLists]4. [endif]手机连接电脑调试运行(手机打开usb调试权限和开发者模式)
选中项目,点击运行——》真机运行 ——)选择运行的手机
[if !supportLists]5. [endif]发行
1检查基本信息

如果是打升级包,那么版本号必须大于上次的版本号
如果是初始化安装包,那么版本号根据情况定义。
2检查logo配置

[if !supportLists]3. [endif]检查启动图是否配置正常
