@@ -59,13 +59,13 @@ fn dev_install(build: bool) -> Result<()> {
59
59
if build {
60
60
dist ( ) . unwrap ( ) ;
61
61
}
62
- let bins = vec ! [ "iroh" , "iroh-one" , "iroh-gateway" , "iroh-p2p" , "iroh-store" ] ;
62
+ let bins = [ "iroh" , "iroh-one" , "iroh-gateway" , "iroh-p2p" , "iroh-store" ] ;
63
63
let home = dirs_next:: home_dir ( ) . unwrap ( ) ;
64
64
for bin in bins {
65
65
let from = project_root ( ) . join ( format ! ( "target/release/{}" , bin) ) ;
66
66
let to = home. join ( format ! ( ".cargo/bin/{}" , bin) ) ;
67
- println ! ( "copying {} to {}" , bin, to. to_str ( ) . unwrap ( ) ) ;
68
- fs:: copy ( from, to) . unwrap ( ) ;
67
+ println ! ( "copying {} to {}" , bin, to. display ( ) ) ;
68
+ fs:: copy ( from, to) ? ;
69
69
}
70
70
Ok ( ( ) )
71
71
}
@@ -81,20 +81,6 @@ fn dist_binaries() -> Result<()> {
81
81
Err ( anyhow:: anyhow!( "cargo build failed" ) ) ?;
82
82
}
83
83
84
- let dst = project_root ( ) . join ( "target/release/iroh" ) ;
85
-
86
- fs:: copy ( & dst, dist_dir ( ) . join ( "iroh" ) ) ?;
87
-
88
- if which:: which ( "strip" ) . is_ok ( ) {
89
- eprintln ! ( "stripping the binary" ) ;
90
- let status = Command :: new ( "strip" ) . arg ( & dst) . status ( ) ?;
91
- if !status. success ( ) {
92
- Err ( anyhow:: anyhow!( "strip failed" ) ) ?;
93
- }
94
- } else {
95
- eprintln ! ( "no `strip` utility found" )
96
- }
97
-
98
84
Ok ( ( ) )
99
85
}
100
86
0 commit comments