mirror of
https://github.com/GopeedLab/gopeed.git
synced 2026-11-17 13:53:41 +00:00
fix
This commit is contained in:
1 parent
0b1d6ca1f6
commit
864e6b0477
3 files changed
+13
-3
No files matched your search
@@ -36,7 +36,12 @@ Future<void> doInstallHost() async {
|
||||
// Check if host binary is not installed
|
||||
if (!await File(hostPath).exists()) {
|
||||
final hostData = await getHostAssetData();
|
||||
await File(hostPath).writeAsBytes(hostData);
|
||||
final file = File(hostPath);
|
||||
await file.writeAsBytes(hostData);
|
||||
// Add execute permission
|
||||
if (!Platform.isWindows) {
|
||||
await Process.run('chmod', ['+x', hostPath]);
|
||||
}
|
||||
return;
|
||||
}
|
||||
// Check if host binary is outdated
|
||||
|
||||
Reference in new issue
Block a user