alroyso преди 1 година
родител
ревизия
9a5a4351d0
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  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');