mirror of
https://github.com/rojo-rbx/rojo.git
synced 2026-10-23 14:01:37 +00:00
Update vscode-rojo submodule and add new rokit.toml configuration
- Updated the subproject commit reference for vscode-rojo. - Introduced a new rokit.toml file with dependencies for atlas, selene, and stylua. - Refactored upload asset logging for improved readability.
This commit is contained in:
parent
2803c2d73a
commit
431a8b3073
3 changed files with 11 additions and 8 deletions
4
assets/project-templates/place/rokit.toml
Normal file
4
assets/project-templates/place/rokit.toml
Normal file
|
|
@ -0,0 +1,4 @@
|
||||||
|
[tools]
|
||||||
|
atlas = "UserGeneratedLLC/rojo@{rojo_version}"
|
||||||
|
selene = "Kampfkarren/selene@0.30.0"
|
||||||
|
stylua = "JohnnyMorganz/stylua@2.3.1"
|
||||||
|
|
@ -180,8 +180,7 @@ fn do_upload_asset(buffer: Vec<u8>, asset_id: u64, api_key: &str) -> anyhow::Res
|
||||||
let form = multipart::Form::new()
|
let form = multipart::Form::new()
|
||||||
.part(
|
.part(
|
||||||
"request",
|
"request",
|
||||||
multipart::Part::text(request_json)
|
multipart::Part::text(request_json).mime_str("application/json")?,
|
||||||
.mime_str("application/json")?,
|
|
||||||
)
|
)
|
||||||
.part(
|
.part(
|
||||||
"fileContent",
|
"fileContent",
|
||||||
|
|
@ -230,7 +229,10 @@ fn do_upload_asset(buffer: Vec<u8>, asset_id: u64, api_key: &str) -> anyhow::Res
|
||||||
.strip_prefix("operations/")
|
.strip_prefix("operations/")
|
||||||
.unwrap_or(operation_path);
|
.unwrap_or(operation_path);
|
||||||
|
|
||||||
log::info!("Upload accepted, waiting for processing (operation: {})...", operation_id);
|
log::info!(
|
||||||
|
"Upload accepted, waiting for processing (operation: {})...",
|
||||||
|
operation_id
|
||||||
|
);
|
||||||
|
|
||||||
let mut retry_delay = std::time::Duration::from_secs(1);
|
let mut retry_delay = std::time::Duration::from_secs(1);
|
||||||
|
|
||||||
|
|
@ -238,10 +240,7 @@ fn do_upload_asset(buffer: Vec<u8>, asset_id: u64, api_key: &str) -> anyhow::Res
|
||||||
std::thread::sleep(retry_delay);
|
std::thread::sleep(retry_delay);
|
||||||
|
|
||||||
let op_url = format!("{}/operations/{}", ASSETS_API_BASE, operation_id);
|
let op_url = format!("{}/operations/{}", ASSETS_API_BASE, operation_id);
|
||||||
let op_response = client
|
let op_response = client.get(&op_url).header("x-api-key", api_key).send()?;
|
||||||
.get(&op_url)
|
|
||||||
.header("x-api-key", api_key)
|
|
||||||
.send()?;
|
|
||||||
|
|
||||||
let op_status = op_response.status();
|
let op_status = op_response.status();
|
||||||
let op_body: Value = op_response
|
let op_body: Value = op_response
|
||||||
|
|
|
||||||
|
|
@ -1 +1 @@
|
||||||
Subproject commit 89816a68a5f6b89f330f5722ae3a880dbe9f8c1d
|
Subproject commit 5e65520996e34467199d1498f3dc3659dcd93485
|
||||||
Loading…
Add table
Add a link
Reference in a new issue