update asset tool to 0.4.x
This commit is contained in:
parent
e92528ad83
commit
167be8f587
14
src/main.rs
14
src/main.rs
@ -446,10 +446,9 @@ fn upload() -> AResult<()>{
|
|||||||
UploadAction::Upload(asset_id) => {
|
UploadAction::Upload(asset_id) => {
|
||||||
let status=std::process::Command::new("asset-tool")
|
let status=std::process::Command::new("asset-tool")
|
||||||
.args([
|
.args([
|
||||||
"upload",
|
"upload-asset",
|
||||||
"--cookie-type","environment",
|
"--cookie-envvar","RBXCOOKIE",
|
||||||
"--cookie","RBXCOOKIE",
|
"--group-id","6980477"
|
||||||
"--group","6980477"
|
|
||||||
])
|
])
|
||||||
.arg("--asset-id").arg(asset_id.to_string())
|
.arg("--asset-id").arg(asset_id.to_string())
|
||||||
.arg("--input-file").arg(file_thing.path().into_os_string().into_string().unwrap())
|
.arg("--input-file").arg(file_thing.path().into_os_string().into_string().unwrap())
|
||||||
@ -469,10 +468,9 @@ fn upload() -> AResult<()>{
|
|||||||
UploadAction::New => {
|
UploadAction::New => {
|
||||||
let output=std::process::Command::new("asset-tool")
|
let output=std::process::Command::new("asset-tool")
|
||||||
.args([
|
.args([
|
||||||
"create",
|
"create-asset",
|
||||||
"--cookie-type","environment",
|
"--cookie-envvar","RBXCOOKIE",
|
||||||
"--cookie","RBXCOOKIE",
|
"--group-id","6980477"
|
||||||
"--group","6980477"
|
|
||||||
])
|
])
|
||||||
.arg("--model-name").arg(modelname.as_str())
|
.arg("--model-name").arg(modelname.as_str())
|
||||||
.arg("--input-file").arg(file_thing.path().into_os_string().into_string().unwrap())
|
.arg("--input-file").arg(file_thing.path().into_os_string().into_string().unwrap())
|
||||||
|
Loading…
Reference in New Issue
Block a user