|
@@ -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');
|