Skip to content

Commit 5e4a58d

Browse files
committed
Bump compression level to 9 for 64 MiB xz dictionary
Level 6 only gives an 8 MiB dictionary. Level 9 gives 64 MiB, matching the compression ratio seen in the existing GUI RPM. Made-with: Cursor
1 parent 0c6ac2d commit 5e4a58d

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

build_scripts/build_linux_deb-2-installer.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ cp assets/systemd/*.service "dist/$CLI_DEB_BASE/etc/systemd/system/"
6969
cp -r dist/daemon/* "dist/$CLI_DEB_BASE/opt/chia/"
7070

7171
ln -s ../../opt/chia/chia "dist/$CLI_DEB_BASE/usr/bin/chia"
72-
dpkg-deb -Zxz -z6 --build --root-owner-group "dist/$CLI_DEB_BASE"
72+
dpkg-deb -Zxz -z9 --build --root-owner-group "dist/$CLI_DEB_BASE"
7373
# CLI only .deb done
7474

7575
cp -r dist/daemon ../chia-blockchain-gui/packages/gui

build_scripts/build_linux_rpm-2-installer.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ fpm -s dir -t rpm \
8888
--before-install=assets/rpm/before-install.sh \
8989
--rpm-tag 'Requires(pre): findutils' \
9090
--rpm-compression xz \
91-
--rpm-compression-level 6 \
91+
--rpm-compression-level 9 \
9292
.
9393
# CLI only rpm done
9494
cp -r dist/daemon ../chia-blockchain-gui/packages/gui

build_scripts/electron-builder.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@
7878
"deb": {
7979
"afterInstall": "../../../build_scripts/assets/deb/postinst.sh",
8080
"afterRemove": "../../../build_scripts/assets/deb/prerm.sh",
81-
"fpm": ["--deb-compression", "xz", "--deb-compression-level", "6"],
81+
"fpm": ["--deb-compression", "xz", "--deb-compression-level", "9"],
8282
"depends": [
8383
"libgbm1",
8484
"libgtk-3-0",
@@ -106,7 +106,7 @@
106106
"--rpm-tag=Requires(pre): findutils",
107107
"--before-install=../../../build_scripts/assets/rpm/before-install.sh",
108108
"--rpm-compression=xz",
109-
"--rpm-compression-level=6"
109+
"--rpm-compression-level=9"
110110
]
111111
}
112112
}

0 commit comments

Comments
 (0)