mirror of
https://github.com/tauri-apps/tauri.git
synced 2024-12-26 12:31:47 +03:00
fix(bundler/rpm): Reduce compression level to gzip/6 (#9840)
This commit is contained in:
parent
5d20530c91
commit
781d74799a
5
.changes/rpm-compression-level.md
Normal file
5
.changes/rpm-compression-level.md
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
---
|
||||||
|
tauri-bundler: patch:enhance
|
||||||
|
---
|
||||||
|
|
||||||
|
Reduced the compression level for rpm bundles from 9 (max) to 6. This has almost no effect on file size but should reduce build time by roughly 25%.
|
@ -47,7 +47,9 @@ pub fn bundle_project(settings: &Settings) -> crate::Result<Vec<PathBuf>> {
|
|||||||
let license = settings.license().unwrap_or_default();
|
let license = settings.license().unwrap_or_default();
|
||||||
let mut builder = rpm::PackageBuilder::new(name, version, &license, arch, summary)
|
let mut builder = rpm::PackageBuilder::new(name, version, &license, arch, summary)
|
||||||
.epoch(epoch)
|
.epoch(epoch)
|
||||||
.release(release);
|
.release(release)
|
||||||
|
// This matches .deb compression. On a 240MB source binary the bundle will be 100KB larger than rpm's default while reducing build times by ~25%.
|
||||||
|
.compression(rpm::CompressionWithLevel::Gzip(6));
|
||||||
|
|
||||||
if let Some(description) = settings.long_description() {
|
if let Some(description) = settings.long_description() {
|
||||||
builder = builder.description(description.trim())
|
builder = builder.description(description.trim())
|
||||||
|
Loading…
Reference in New Issue
Block a user