From 167be8f587d9242ade0994a46b54dfc90f3637e3 Mon Sep 17 00:00:00 2001 From: Quaternions Date: Mon, 15 Jul 2024 20:22:54 -0700 Subject: [PATCH] update asset tool to 0.4.x --- src/main.rs | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/src/main.rs b/src/main.rs index ffe47ad..759a219 100644 --- a/src/main.rs +++ b/src/main.rs @@ -446,10 +446,9 @@ fn upload() -> AResult<()>{ UploadAction::Upload(asset_id) => { let status=std::process::Command::new("asset-tool") .args([ - "upload", - "--cookie-type","environment", - "--cookie","RBXCOOKIE", - "--group","6980477" + "upload-asset", + "--cookie-envvar","RBXCOOKIE", + "--group-id","6980477" ]) .arg("--asset-id").arg(asset_id.to_string()) .arg("--input-file").arg(file_thing.path().into_os_string().into_string().unwrap()) @@ -469,10 +468,9 @@ fn upload() -> AResult<()>{ UploadAction::New => { let output=std::process::Command::new("asset-tool") .args([ - "create", - "--cookie-type","environment", - "--cookie","RBXCOOKIE", - "--group","6980477" + "create-asset", + "--cookie-envvar","RBXCOOKIE", + "--group-id","6980477" ]) .arg("--model-name").arg(modelname.as_str()) .arg("--input-file").arg(file_thing.path().into_os_string().into_string().unwrap())