update readme

update grind
master
laiiihz 5 years ago
parent a903a55316
commit f36d8558c8

@ -1,6 +1,8 @@
# recook
![recook](./assets/icon/recook_icon_120.png)
## 瑞库客 商城应用 📦
## 在运行和构建应用前请详细阅读本文档
@ -25,6 +27,24 @@
## Getting Started
### 打包apk
```bash
flutter pub run grinder build-apk
```
`with verbose`
```bash
flutter pub run grinder build-apk --v
```
### 加固应用后签名
```bash
flutter pub run grinder sign --input=xxx.apk
```
### 预安装软件包
在运行应用前请使用`./command/resource_gen.sh`来生成图片

@ -59,7 +59,6 @@ android {
}
defaultConfig {
// TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html).
applicationId "com.akuhome.recook"
minSdkVersion 23
targetSdkVersion 28
@ -94,7 +93,6 @@ android {
debug {
keyAlias 'alias'
keyPassword 'recook'
// storeFile file('/Users/nansi/Desktop/Flutter/Project/recook/jks/recook.keystore')
storeFile file('../../jks/recook.keystore');
storePassword 'recook'
}

@ -35,6 +35,7 @@ Future buildApk() async {
stdout.write("opening downloadPath 🛠\n");
await Process.run('open', ['${Config.downloadPath}/builds']);
await Process.run('open', ['${Config.downloadPath}']);
stdout.write("opening tencent reinforce 🛠\n");
await Process.run(
'open', ['https://console.cloud.tencent.com/ms/reinforce/upload']);
@ -49,6 +50,8 @@ rawBuild({bool verbose = false}) async {
///
@Task()
sign() async {
TaskArgs args = context.invocation.arguments;
String input = args.getOption('input');
stdout.write('start SIGN 🔑\n');
ProcessResult process = await Process.run(
Config.apksignerPath,
@ -64,7 +67,7 @@ sign() async {
'pass:${Config.recookPassword}',
'--out',
'${Config.downloadPath}/builds/${Config.packageName}_release_signed.apk',
'${Config.downloadPath}/builds/${Config.packageName}_release.apk',
input,
],
);
stdout.write(process.stdout);

Loading…
Cancel
Save