docs: 增加APP运行和发行文档
This commit is contained in:
parent
3e3e90a0f1
commit
a40fd8255e
14
README.md
14
README.md
@ -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基座。
|
||||

|
||||
|
||||
## 发布
|
||||
|
||||
- web平台: `pnpm build:h5`,打包后的文件在 `dist/build/h5`,可以放到web服务器,如nginx运行。如果最终不是放在根目录,可以在 `vite.config.ts` 的 `base` 属性进行配置。[vite官网](https://cn.vitejs.dev/config/shared-options.html#base)
|
||||

|
||||
- 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` 文件。
|
||||

|
||||
|
BIN
screenshots/app-build.png
Normal file
BIN
screenshots/app-build.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 28 KiB |
BIN
screenshots/app-dev.png
Normal file
BIN
screenshots/app-dev.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 88 KiB |
Loading…
x
Reference in New Issue
Block a user