فهرست منبع

Add strings_ensure_wget_is_installed

luboslenco 1 هفته پیش
والد
کامیت
6c3d37d17e
2فایلهای تغییر یافته به همراه10 افزوده شده و 4 حذف شده
  1. 6 4
      base/sources/ts/file.ts
  2. 4 0
      paint/sources/strings.ts

+ 6 - 4
base/sources/ts/file.ts

@@ -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 - 0
paint/sources/strings.ts

@@ -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");
 }