基于自定义规则的番剧采集APP,支持流媒体在线观看,支持弹幕,支持实时超分辨率。
fix: cannot use android third-party installer (#1395)
ErBW_se5cfdeb17bc5
diff --git a/lib/utils/auto_updater.dart b/lib/utils/auto_updater.dartindex 84d3926d..f75e6fa6 100644--- a/lib/utils/auto_updater.dart+++ b/lib/utils/auto_updater.dart@@ -561,13 +561,14 @@ class AutoUpdater {style: TextStyle(color: Theme.of(context).colorScheme.outline),),),- TextButton(- onPressed: () {- // 在文件管理器中显示文件- _revealInFileManager(filePath);- },- child: const Text('打开文件夹'),- ),+ if (Utils.isDesktop())+ TextButton(+ onPressed: () {+ // 在文件管理器中显示文件+ _revealInFileManager(filePath);+ },+ child: const Text('打开文件夹'),+ ),TextButton(onPressed: () {KazumiDialog.dismiss();@@ -662,6 +663,8 @@ class AutoUpdater {} else {await Process.start('explorer.exe', [filePath], runInShell: true);}+ await Future.delayed(const Duration(seconds: 1));+ exit(0);} else if (Platform.isMacOS) {if (filePath.endsWith('.dmg')) {await Process.start('open', [filePath]);@@ -674,10 +677,6 @@ class AutoUpdater {return;}}- if (!Platform.isAndroid) {- await Future.delayed(const Duration(seconds: 1));- exit(0);- }} catch (e) {KazumiDialog.showToast(message: '启动安装程序失败: ${e.toString()}');KazumiLogger().log(Level.error, '启动安装程序失败: ${e.toString()}');