Skip to content

Commit

Permalink
use prefix for zip
Browse files Browse the repository at this point in the history
  • Loading branch information
BrettMayson committed Mar 4, 2023
1 parent ee6acc1 commit 3728363
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bin/app/src/modules/archive.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ pub fn release(ctx: &Context) -> Result<(), Error> {
create_dir_all(&output)?;
}
let output = output
.join(format!("{}-latest", ctx.config().name()))
.join(format!("{}-latest", ctx.config().prefix()))
.with_extension("zip");
let options = zip::write::FileOptions::default().compression_level(Some(9));

Expand Down Expand Up @@ -54,7 +54,7 @@ pub fn release(ctx: &Context) -> Result<(), Error> {
let mut output = output.clone();
output.set_file_name(format!(
"{}-{}.zip",
ctx.config().name(),
ctx.config().prefix(),
ctx.config().version().get()?
));
info!("Created release: {}", output.display());
Expand Down

0 comments on commit 3728363

Please sign in to comment.