Skip to content

Commit

Permalink
bump
Browse files Browse the repository at this point in the history
  • Loading branch information
jondot committed Mar 7, 2023
1 parent 83408e4 commit c934e05
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion rustwrap/Cargo.toml
@@ -1,6 +1,6 @@
[package]
name = "rustwrap"
version = "1.0.4"
version = "1.0.5"
edition = "2021"

description = "A tool that helps wrap binary releases for easy distribution"
Expand Down
2 changes: 1 addition & 1 deletion rustwrap/src/download.rs
Expand Up @@ -119,7 +119,7 @@ impl Download {
ProgressStyle::default_bar()
.template(DEFAULT_PROGRESS_TEMPLATE)
.expect("set ProgressStyle template failed")
.progress_chars("━ ·"),
.progress_chars("━ ·"), // ━━╸━━━━━━━━━━━━━
);
pb
} else {
Expand Down
5 changes: 4 additions & 1 deletion rustwrap/src/providers/brew.rs
Expand Up @@ -12,6 +12,7 @@ use reqwest::header;
use serde::Deserialize;
use serde_json::json;
use sha2::Digest;
use tracing::info;

use crate::data::{Architecture, Platform, Session, Target};

Expand Down Expand Up @@ -61,6 +62,7 @@ pub fn publish(
let out_dir = out_dir
.join(format!("{}-{version}", opts.name))
.join("brew");
fs::create_dir_all(&out_dir)?;

let prefix = format!("{} {}", crate::console::COFFEE, style("brew").green());
session.console.say(&format!(
Expand Down Expand Up @@ -115,6 +117,8 @@ pub fn publish(
)
.send()?;

info!("getting existing file response: {}", resp.status());

let sha = match resp.status() {
reqwest::StatusCode::OK => match resp.json::<serde_json::Value>() {
Ok(parsed) => parsed
Expand Down Expand Up @@ -157,7 +161,6 @@ pub fn publish(
//
// save rendered file to disk
//
fs::create_dir_all(&out_dir)?;
let dest_file = out_dir.join(&fname);
fs::write(&dest_file, recipe)?;
session.console.say(&format!(
Expand Down

0 comments on commit c934e05

Please sign in to comment.