@@ -1480,7 +1480,7 @@ impl Step for Extended {
14801480 build. cp_r ( & work. join ( & format ! ( "{}-{}" , pkgname( build, name) , target) )
14811481 . join ( dir) ,
14821482 & exe. join ( name) ) ;
1483- t ! ( fs :: remove_file ( exe. join( name) . join( "manifest.in" ) ) ) ;
1483+ build . remove ( & exe. join ( name) . join ( "manifest.in" ) ) ;
14841484 } ;
14851485 prepare ( "rustc" ) ;
14861486 prepare ( "cargo" ) ;
@@ -1498,7 +1498,7 @@ impl Step for Extended {
14981498 build. install ( & etc. join ( "exe/modpath.iss" ) , & exe, 0o644 ) ;
14991499 build. install ( & etc. join ( "exe/upgrade.iss" ) , & exe, 0o644 ) ;
15001500 build. install ( & etc. join ( "gfx/rust-logo.ico" ) , & exe, 0o644 ) ;
1501- t ! ( t! ( File :: create( exe. join( "LICENSE.txt" ) ) ) . write_all ( license. as_bytes ( ) ) ) ;
1501+ build . create ( & exe. join ( "LICENSE.txt" ) , & license) ;
15021502
15031503 // Generate exe installer
15041504 let mut cmd = Command :: new ( "iscc" ) ;
@@ -1633,7 +1633,7 @@ impl Step for Extended {
16331633 candle ( "GccGroup.wxs" . as_ref ( ) ) ;
16341634 }
16351635
1636- t ! ( t! ( File :: create( exe. join( "LICENSE.rtf" ) ) ) . write_all ( rtf. as_bytes ( ) ) ) ;
1636+ build . create ( & exe. join ( "LICENSE.rtf" ) , & rtf) ;
16371637 build. install ( & etc. join ( "gfx/banner.bmp" ) , & exe, 0o644 ) ;
16381638 build. install ( & etc. join ( "gfx/dialogbg.bmp" ) , & exe, 0o644 ) ;
16391639
@@ -1665,7 +1665,9 @@ impl Step for Extended {
16651665
16661666 build. run ( & mut cmd) ;
16671667
1668- t ! ( fs:: rename( exe. join( & filename) , distdir( build) . join( & filename) ) ) ;
1668+ if !build. config . dry_run {
1669+ t ! ( fs:: rename( exe. join( & filename) , distdir( build) . join( & filename) ) ) ;
1670+ }
16691671 }
16701672 }
16711673}
@@ -1717,6 +1719,9 @@ impl Step for HashSign {
17171719 fn run ( self , builder : & Builder ) {
17181720 let build = builder. build ;
17191721 let mut cmd = builder. tool_cmd ( Tool :: BuildManifest ) ;
1722+ if build. config . dry_run {
1723+ return ;
1724+ }
17201725 let sign = build. config . dist_sign_folder . as_ref ( ) . unwrap_or_else ( || {
17211726 panic ! ( "\n \n failed to specify `dist.sign-folder` in `config.toml`\n \n " )
17221727 } ) ;
0 commit comments