File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -155,9 +155,10 @@ fn impl_package(sh: &Shell) -> Result<Package> {
155
155
)
156
156
. run ( ) ?;
157
157
}
158
- // Compress with zstd
159
- let srcpath: Utf8PathBuf = format ! ( "{p}.zstd" ) . into ( ) ;
160
- cmd ! ( sh, "zstd --rm -f {p} -o {srcpath}" ) . run ( ) ?;
158
+ // Compress with gzip
159
+ let srcpath: Utf8PathBuf = format ! ( "target/{namev}.crate" ) . into ( ) ;
160
+ cmd ! ( sh, "gzip --force --best {p}" ) . run ( ) ?;
161
+ std:: fs:: rename ( format ! ( "{p}.gz" ) , & srcpath) ?;
161
162
162
163
Ok ( Package {
163
164
version : v,
@@ -176,8 +177,7 @@ fn impl_srpm(sh: &Shell) -> Result<Utf8PathBuf> {
176
177
let pkg = impl_package ( sh) ?;
177
178
vendor ( sh) ?;
178
179
let td = tempfile:: tempdir_in ( "target" ) . context ( "Allocating tmpdir" ) ?;
179
- let td = td. into_path ( ) ;
180
- let td: & Utf8Path = td. as_path ( ) . try_into ( ) . unwrap ( ) ;
180
+ let td: & Utf8Path = td. path ( ) . try_into ( ) . unwrap ( ) ;
181
181
let srcpath = td. join ( pkg. srcpath . file_name ( ) . unwrap ( ) ) ;
182
182
std:: fs:: rename ( pkg. srcpath , srcpath) ?;
183
183
let v = pkg. version ;
You can’t perform that action at this time.
0 commit comments