alroyso 1 năm trước cách đây
mục cha
commit
9a5a4351d0
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      scripts/init.dart

+ 1 - 1
scripts/init.dart

@@ -42,7 +42,7 @@ Future downloadLatestClashCore() async {
     await Process.run('chmod', ['+x', filePath]);
   } else {
     final file = ZipDecoder().decodeBytes(tempBetys).first;
-    await File(path.join(binDir.path, file.name)).writeAsBytes(file.content);
+    await File(path.join(binDir.path, newName)).writeAsBytes(file.content);
   }
   await tempFile.delete();
   print('Unarchiv Success');