mirror of
https://github.com/rojo-rbx/rojo.git
synced 2026-04-23 22:25:26 +00:00
Change rojo upload to upload binary files
This commit is contained in:
@@ -38,11 +38,8 @@ pub fn upload(options: UploadCommand) -> Result<(), anyhow::Error> {
|
|||||||
|
|
||||||
let mut buffer = Vec::new();
|
let mut buffer = Vec::new();
|
||||||
|
|
||||||
log::trace!("Encoding XML model");
|
log::trace!("Encoding binary model");
|
||||||
let config = rbx_xml::EncodeOptions::new()
|
rbx_binary::to_writer_default(&mut buffer, tree.inner(), &encode_ids)?;
|
||||||
.property_behavior(rbx_xml::EncodePropertyBehavior::WriteUnknown);
|
|
||||||
|
|
||||||
rbx_xml::to_writer(&mut buffer, tree.inner(), &encode_ids, config)?;
|
|
||||||
do_upload(buffer, options.asset_id, &cookie)
|
do_upload(buffer, options.asset_id, &cookie)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user