mirror of
https://github.com/rojo-rbx/rojo.git
synced 2026-10-22 13:14:08 +00:00
Change rojo upload to upload binary files
This commit is contained in:
parent
0d951c8ad1
commit
f4a790eb50
1 changed files with 2 additions and 5 deletions
|
|
@ -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)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue