@@ -1480,7 +1480,7 @@ impl Step for Extended {
1480
1480
build. cp_r ( & work. join ( & format ! ( "{}-{}" , pkgname( build, name) , target) )
1481
1481
. join ( dir) ,
1482
1482
& exe. join ( name) ) ;
1483
- t ! ( fs :: remove_file ( exe. join( name) . join( "manifest.in" ) ) ) ;
1483
+ build . remove ( & exe. join ( name) . join ( "manifest.in" ) ) ;
1484
1484
} ;
1485
1485
prepare ( "rustc" ) ;
1486
1486
prepare ( "cargo" ) ;
@@ -1498,7 +1498,7 @@ impl Step for Extended {
1498
1498
build. install ( & etc. join ( "exe/modpath.iss" ) , & exe, 0o644 ) ;
1499
1499
build. install ( & etc. join ( "exe/upgrade.iss" ) , & exe, 0o644 ) ;
1500
1500
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) ;
1502
1502
1503
1503
// Generate exe installer
1504
1504
let mut cmd = Command :: new ( "iscc" ) ;
@@ -1633,7 +1633,7 @@ impl Step for Extended {
1633
1633
candle ( "GccGroup.wxs" . as_ref ( ) ) ;
1634
1634
}
1635
1635
1636
- t ! ( t! ( File :: create( exe. join( "LICENSE.rtf" ) ) ) . write_all ( rtf. as_bytes ( ) ) ) ;
1636
+ build . create ( & exe. join ( "LICENSE.rtf" ) , & rtf) ;
1637
1637
build. install ( & etc. join ( "gfx/banner.bmp" ) , & exe, 0o644 ) ;
1638
1638
build. install ( & etc. join ( "gfx/dialogbg.bmp" ) , & exe, 0o644 ) ;
1639
1639
@@ -1665,7 +1665,9 @@ impl Step for Extended {
1665
1665
1666
1666
build. run ( & mut cmd) ;
1667
1667
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
+ }
1669
1671
}
1670
1672
}
1671
1673
}
@@ -1717,6 +1719,9 @@ impl Step for HashSign {
1717
1719
fn run ( self , builder : & Builder ) {
1718
1720
let build = builder. build ;
1719
1721
let mut cmd = builder. tool_cmd ( Tool :: BuildManifest ) ;
1722
+ if build. config . dry_run {
1723
+ return ;
1724
+ }
1720
1725
let sign = build. config . dist_sign_folder . as_ref ( ) . unwrap_or_else ( || {
1721
1726
panic ! ( "\n \n failed to specify `dist.sign-folder` in `config.toml`\n \n " )
1722
1727
} ) ;
0 commit comments