docs: 增加APP运行和发行文档

This commit is contained in:
Burt 2024-01-19 17:53:21 +08:00
parent 3e3e90a0f1
commit a40fd8255e
3 changed files with 4 additions and 10 deletions

View File

@ -75,20 +75,14 @@
- web平台 `pnpm dev:h5`, 然后打开 [http://localhost:9000/](http://localhost:9000/)。
- weixin平台`pnpm dev:mp-weixin` 然后打开微信开发者工具,导入本地文件夹,选择本项目的`dist/dev/mp-weixin` 文件。
- APP平台`pnpm dev:app`, 然后打开 `HBuilderX`,导入刚刚生成的`dist/dev/app` 文件夹,选择运行到模拟器,或者运行的安卓/ios基座。
![app运行](./screenshots/app-dev.png)
## 发布
- web平台 `pnpm build:h5`,打包后的文件在 `dist/build/h5`可以放到web服务器如nginx运行。如果最终不是放在根目录可以在 `vite.config.ts``base` 属性进行配置。[vite官网](https://cn.vitejs.dev/config/shared-options.html#base)
![vite.base](./screenshots/vite-base.png)
- weixin平台`pnpm build:h5`, 打包后的文件在 `dist/build/mp-weixin`,然后通过微信开发者工具导入,并点击右上角的“上传”按钮进行上传。
- APP平台`pnpm build:app`, 然后打开 `HBuilderX`,导入刚刚生成的`dist/build/app` 文件夹,选择发行 - APP云打包。
## 最佳推荐
- 无登录+无tabbar
- 无登录+有tabbar
- 有登录+无tabbar
- 有登录+有tabbar
## 注意事项
暂不支持APP尝试过程见 `README.issue.md` 文件。
![app发行](./screenshots/app-build.png)

BIN
screenshots/app-build.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 28 KiB

BIN
screenshots/app-dev.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 88 KiB