From 2b5392173c5b2da4c0bdee137d01080c837456b9 Mon Sep 17 00:00:00 2001 From: taoya7 Date: Thu, 19 May 2022 08:58:11 +0800 Subject: [PATCH] =?UTF-8?q?=E3=80=90update=E3=80=91=20doc?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/部署上线/H5.md | 22 +++++++++++++++++ src/部署上线/开发环境.md | 51 ++++++++++++++++++++++++++++++++++++++++ 2 files changed, 73 insertions(+) create mode 100644 src/部署上线/H5.md create mode 100644 src/部署上线/开发环境.md diff --git a/src/部署上线/H5.md b/src/部署上线/H5.md new file mode 100644 index 0000000..36fe363 --- /dev/null +++ b/src/部署上线/H5.md @@ -0,0 +1,22 @@ + +# H5 + +### 生产环境 + +```js +npm run build:h5 + +或者 + +set NODE_ENV=production && quasar build -m pwa +``` + +输出目录为当前环境下 dist/pwa/ + +### 测试环境 + +```js +set NODE_ENV=development && quasar build -m pwa +``` + +输出目录为当前环境下 dist/pwa/ diff --git a/src/部署上线/开发环境.md b/src/部署上线/开发环境.md new file mode 100644 index 0000000..d120716 --- /dev/null +++ b/src/部署上线/开发环境.md @@ -0,0 +1,51 @@ + +# 安卓 + +#### 第一步 + +```js +npm run build + +|| + +set NODE_ENV=prodiction && quasar build -m cordova -T android && node cmd/apk.js +``` + +此时会在根目录dist/pwa目录 + +将此目录上传至服务器。 然后记录域名信息 + +#### 第二步 + +打开src-cordova/config.xml + +```js + + + Quasar App + A Quasar Project + + Apache Cordova Team + + + + + + + +``` + + +修改content标签 src为线上地址 + +然后执行根目录执行 + +```js +yarn build:apk + +|| + +cd src-cordova && cordova run android && node cmd/moveAPK.js +``` + +将会在dist生成app-debug.apk