@@ -5,6 +5,7 @@ use std::path::{Path, PathBuf};
55use image:: imageops:: FilterType ;
66use image:: { GenericImageView , ImageFormat , ImageReader } ;
77
8+ use crate :: actions:: Archiver ;
89use crate :: { actions, appimage, config, files} ;
910use crate :: console:: { exit_err, print_note, print_significant, print_step, print_success, print_warn} ;
1011use 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