Skip to content

Commit 777f63d

Browse files
committed
Using the new Archiver
1 parent 68e5767 commit 777f63d

File tree

1 file changed

+10
-4
lines changed

1 file changed

+10
-4
lines changed

src/targets.rs

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ use std::path::{Path, PathBuf};
55
use image::imageops::FilterType;
66
use image::{GenericImageView, ImageFormat, ImageReader};
77

8+
use crate::actions::Archiver;
89
use crate::{actions, appimage, config, files};
910
use crate::console::{exit_err, print_note, print_significant, print_step, print_success, print_warn};
1011
use crate::deps::Dependency;
@@ -337,7 +338,10 @@ pub fn build_windows_zip(arch: Arch) {
337338
};
338339

339340
if conf.build.zip {
340-
actions::archive(&path, &build_dir.join(format!("{}_{}.zip", pkg_name, &name)));
341+
Archiver::new(path)
342+
.add_progress_bar("Archiving build files")
343+
.archive(build_dir.join(format!("{}_{}.zip", pkg_name, &name)))
344+
;
341345
}
342346

343347
}
@@ -354,10 +358,12 @@ fn build_love() {
354358

355359
let output = build.join(config.package.name + ".love");
356360

357-
let ignored = vec![Path::new("conf.lua")];
358-
359361
actions::parse_all(&src);
360-
actions::archive_with_ignore(&src, &output, ignored);
362+
363+
Archiver::new(&src)
364+
.add_progress_bar("Building .love file")
365+
.ignore_file(Path::new("conf.lua"))
366+
.archive(&output);
361367

362368
let in_conf_path = src.join("conf.lua");
363369
let out_conf_path = temp.join("conf.lua");

0 commit comments

Comments
 (0)