alroyso 1 éve
szülő
commit
a54808333f
1 módosított fájl, 1 hozzáadás és 2 törlés
  1. 1 2
      scripts/init.dart

+ 1 - 2
scripts/init.dart

@@ -26,9 +26,8 @@ Future downloadLatestClashCore() async {
   final String downloadUrl = latest['browser_download_url'];
 
   //final String newName = 'clash-${ClashName.platform}-${ClashName.arch}';
-  final String name = clashCoreName;
+  final String name = latest['name'];
   final tempFile = File(path.join(binDir.path, '$name.temp'));
-
   print('Downloading $name');
   await dio.download(downloadUrl, tempFile.path); // Use the obtained download URL
   print('Download Success');