Add strings_ensure_wget_is_installed

This commit is contained in:
luboslenco
2025-09-11 14:30:04 +02:00
parent cbde3ff9ce
commit 6c3d37d17e
2 changed files with 10 additions and 4 deletions
+6 -4
View File
@@ -105,11 +105,9 @@ function file_download(url: string, dst_path: string, done: (url: string)=>void,
}
fdd.done(url);
});
///elseif arm_linux
iron_sys_command("wget -O \"" + dst_path + "\" \"" + url + "\"");
done(url);
///else
iron_sys_command("curl -L " + url + " -o \"" + dst_path + "\"");
iron_sys_command("wget -O \"" + dst_path + "\" \"" + url + "\"");
// iron_sys_command("curl -L " + url + " -o \"" + dst_path + "\"");
done(url);
///end
}
@@ -201,7 +199,11 @@ function file_init_cloud_bytes(done: ()=>void, append: string = "") {
if (buffer == null) {
let empty: string[] = [];
map_set(file_cloud, "cloud", empty);
///if arm_linux
console_error(strings_ensure_wget_is_installed());
///else
console_error(strings_check_internet_connection());
///end
return;
}
let files: string[] = [];
+4
View File
@@ -19,6 +19,10 @@ function strings_check_internet_connection(): string {
return tr("Error: Check internet connection to access the cloud");
}
function strings_ensure_wget_is_installed(): string {
return tr("Error: Ensure wget is installed");
}
function strings_asset_already_imported(): string {
return tr("Info: Asset already imported");
}