Pārlūkot izejas kodu

修改版本号:v0.0.15

maqiang 1 gadu atpakaļ
vecāks
revīzija
8a63136441
2 mainītis faili ar 4 papildinājumiem un 2 dzēšanām
  1. 3 1
      lib/widget/upgrade_dialog.dart
  2. 1 1
      pubspec.yaml

+ 3 - 1
lib/widget/upgrade_dialog.dart

@@ -33,6 +33,7 @@ class UpgradeDialog extends StatelessWidget {
33
     UpgradeService.getName(path);
33
     UpgradeService.getName(path);
34
     // 拆分文件名
34
     // 拆分文件名
35
     var apkName = UpgradeService.getName(path);
35
     var apkName = UpgradeService.getName(path);
36
+    logger.d('path:$path');
36
     logger.d('apkName:$apkName');
37
     logger.d('apkName:$apkName');
37
 
38
 
38
     var file = await UpgradeService.getApkFile(apkName);
39
     var file = await UpgradeService.getApkFile(apkName);
@@ -49,7 +50,8 @@ class UpgradeDialog extends StatelessWidget {
49
         (count, total) => progress.value = count / total,
50
         (count, total) => progress.value = count / total,
50
       );
51
       );
51
       installApk(file.path);
52
       installApk(file.path);
52
-    } catch (_) {
53
+    } catch (e) {
54
+      logger.e(e);
53
       MyNavigator.showToast('下载失败,请重试');
55
       MyNavigator.showToast('下载失败,请重试');
54
       progress.value = -1;
56
       progress.value = -1;
55
     }
57
     }

+ 1 - 1
pubspec.yaml

@@ -16,7 +16,7 @@ publish_to: 'none' # Remove this line if you wish to publish to pub.dev
16
 # https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html
16
 # https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html
17
 # In Windows, build-name is used as the major, minor, and patch parts
17
 # In Windows, build-name is used as the major, minor, and patch parts
18
 # of the product and file versions while build-number is used as the build suffix.
18
 # of the product and file versions while build-number is used as the build suffix.
19
-version: 0.0.14+14
19
+version: 0.0.15+15
20
 
20
 
21
 environment:
21
 environment:
22
   sdk: '>=3.1.5 <4.0.0'
22
   sdk: '>=3.1.5 <4.0.0'