Fix asset-tool invocations when downloading assets
This commit is contained in:
parent
6f5a3c5176
commit
b6a5324ae7
@ -247,7 +247,7 @@ fn download_textures(paths:Vec<PathBuf>)->AResult<()>{
|
|||||||
let texture_list_string=texture_list.into_iter().map(|id|id.to_string()).collect::<Vec<String>>();
|
let texture_list_string=texture_list.into_iter().map(|id|id.to_string()).collect::<Vec<String>>();
|
||||||
println!("Texture list:{:?}",texture_list_string.join(" "));
|
println!("Texture list:{:?}",texture_list_string.join(" "));
|
||||||
let output=std::process::Command::new("asset-tool")
|
let output=std::process::Command::new("asset-tool")
|
||||||
.args(["download","environment","RBXCOOKIE","textures/unprocessed/"])
|
.args(["download","--cookie-literal","","--output-folder","textures/unprocessed/"])
|
||||||
.args(texture_list_string)
|
.args(texture_list_string)
|
||||||
.spawn()?
|
.spawn()?
|
||||||
.wait_with_output()?;
|
.wait_with_output()?;
|
||||||
@ -282,7 +282,7 @@ fn download_meshes(paths:Vec<PathBuf>)->AResult<()>{
|
|||||||
let mesh_list_string=mesh_list.into_iter().map(|id|id.to_string()).collect::<Vec<String>>();
|
let mesh_list_string=mesh_list.into_iter().map(|id|id.to_string()).collect::<Vec<String>>();
|
||||||
println!("Mesh list:{:?}",mesh_list_string.join(" "));
|
println!("Mesh list:{:?}",mesh_list_string.join(" "));
|
||||||
let output=std::process::Command::new("asset-tool")
|
let output=std::process::Command::new("asset-tool")
|
||||||
.args(["download","environment","RBXCOOKIE","meshes/"])
|
.args(["download","--cookie-literal","","--output-folder","meshes/"])
|
||||||
.args(mesh_list_string)
|
.args(mesh_list_string)
|
||||||
.spawn()?
|
.spawn()?
|
||||||
.wait_with_output()?;
|
.wait_with_output()?;
|
||||||
|
Loading…
Reference in New Issue
Block a user