alroyso 1 년 전
부모
커밋
a54808333f
1개의 변경된 파일1개의 추가작업 그리고 2개의 파일을 삭제
  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');