jingcai-seller/README.md

134 lines
2.9 KiB
Markdown
Raw Permalink Blame History

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

# Jingcai Seller (jingcai-seller)
Jingcai Seller
## Install the dependencies
> 建议使用npm ci安装
```bash
yarn
# or
npm install
```
### Start the app in development mode (hot-code reloading, error reporting, etc.)
```bash
quasar dev
```
### Lint the files
```bash
yarn lint
# or
npm run lint
```
### Format the files
```bash
yarn format
# or
npm run format
```
### Build the app for production
```bash
# h5
quasar build
# android 打包转移到jingcai-shopkeeper-app中此项目为打包web应用+jingcai-shopkeeper-app中嵌入的web app
quasar build -m android
quasar build -m android --skip-pkg
# ios
quasar build -m ios -ide
```
### Customize the configuration
See [Configuring quasar.config.js](https://v2.quasar.dev/quasar-cli-vite/quasar-config-js).
# 签名
"D:\Program Files\Java\jdk1.8.0_202\bin\keytool.exe" -importkeystore -srckeystore buyer.yunduoxd.keystore -destkeystore seller.yunduoxd.keystore -deststoretype pkcs12
签名详细信息:
目标密钥库口令入源密钥库口令yunduoxd
# ios ipa
p12 password:yunduoxd verify:yunduoxd
# 应用图标
icongenie generate -p res/
# iOS打包
这几个信息目前后端已处理,这里可以随便填写
- https://file.daxiangzj.com/apps/ios/seller-0.0.4.ipa
- https://file.daxiangzj.com/apps/ios/seller.57x57.png
- https://file.daxiangzj.com/apps/ios/seller.512x512.png
# build
`quasar build -m android -d`开启调试模式可以在logcat中看到更详细的日志
按照src-cordova/build.json配置的构建已经配置为apk
## 构建apk
```bash
quasar build -m android -- -- --packageType=apk
```
### 安装apk
```bash
adb install ./dist/cordova/android/apk/release/app-release.apk
```
## 默认构建aab
```bash
quasar build -m android -- -- --packageType=bundle
```
### aab to apk
https://stackoverflow.com/questions/53040047/generate-apk-file-from-aab-file-android-app-bundle
#### For Debug apk command,
```bash
bundletool build-apks --bundle=/MyApp/my_app.aab --output=/MyApp/my_app.apks
```
// --mode=universal 不签名调试时可带上这个参数
#### For Release apk command,
```bash
bundletool build-apks --bundle=/MyApp/my_app.aab --output=/MyApp/my_app.apks --ks=/MyApp/keystore.jks --ks-pass=file:/MyApp/keystore.pwd --ks-key-alias=MyKeyAlias --key-pass=file:/MyApp/key.pwd
```
apks解压unzip后就是apk
```bash
java -jar "bundletool.jar" build-apks --bundle=./dist/cordova/android/bundle/release/app-release.aab --output=./my_app.apks --ks=/MyApp/keystore.jks --ks-pass=file:/MyApp/keystore.pwd --ks-key-alias=MyKeyAlias --key-pass=file:/MyApp/key.pwd
```
### 安装apks
```bash
java -jar "bundletool.jar" install-apks --apks=my_app.apks
adb install ./dist/cordova/android/apk/release/app-release.apk
```
- https://file.daxiangzj.com/apps/ios/seller-0.0.8.ipa
- https://file.daxiangzj.com/apps/ios/seller.57x57.png
- https://file.daxiangzj.com/apps/ios/seller.512x512.png