alroyso 1 gadu atpakaļ
vecāks
revīzija
9a5a4351d0
1 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  1. 1 1
      scripts/init.dart

+ 1 - 1
scripts/init.dart

@@ -42,7 +42,7 @@ Future downloadLatestClashCore() async {
     await Process.run('chmod', ['+x', filePath]);
     await Process.run('chmod', ['+x', filePath]);
   } else {
   } else {
     final file = ZipDecoder().decodeBytes(tempBetys).first;
     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();
   await tempFile.delete();
   print('Unarchiv Success');
   print('Unarchiv Success');