diff --git a/README.md b/README.md index 9610e30..cb08666 100644 --- a/README.md +++ b/README.md @@ -44,7 +44,7 @@ flutter pub run grinder build-apk --v //签名前请确保已安装java环境 //签名前请将加固后的的安装包重命名为"RECOOK_reinforce.apk",并移动至”/Users/$name/Downloads/buils/“目录下 ```bash -flutter pub run grinder sign --input=xxx.apk +grind sign ``` ### 预安装软件包 diff --git a/android/app/src/main/AndroidManifest.xml b/android/app/src/main/AndroidManifest.xml index 88be7f3..2a45ce6 100644 --- a/android/app/src/main/AndroidManifest.xml +++ b/android/app/src/main/AndroidManifest.xml @@ -34,6 +34,7 @@ new TestRunner().testAsync(); Future releaseApk() async { stdout.write("Build APK 📦\n"); stdout.write("BUILDINGAPK\n"); - await Process.start('flutter', [ + await Process.start('fvm', [ + 'flutter', 'build', 'apk', '--target-platform=android-arm64', @@ -61,7 +62,14 @@ Future releaseDev() async { stdout.write("Build Dev APK 📦\n"); stdout.write("BUILDINGAPK\n"); - await Process.start('flutter', ['build', 'apk']).then((proc) async { + await Process.start('fvm', [ + 'flutter', + 'build', + 'apk', + '--target-platform=android-arm64', + '--dart-define', + 'ISDEBUG=false' + ]).then((proc) async { await stdout.addStream(proc.stdout); await stderr.addStream(proc.stderr); });