Skip to content

Commit c49df22

Browse files
committed
fix(appimage-maker): Fix compressor customization.
There was a logical bug in (intentional) switch fall-through, where all compilers would pick flags intended only for `xz`. This is a regression. Resolves: #23 Fixes: d15e983
1 parent 01449f0 commit c49df22

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

makers/appimage/src/main.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -230,13 +230,13 @@ export default class MakerAppImage extends MakerBase<MakerAppImageConfig> {
230230
// Set compressor options if available
231231
switch(compressor) {
232232
case undefined: break;
233-
//@ts-expect-error falls through
234-
default: mkSquashFsArgs.push("-comp", compressor);
235233
// Defaults for `xz` took from AppImageTool:
234+
//@ts-expect-error falls through
236235
case "xz": mkSquashFsArgs.push(
237236
"-Xdict-size", "100%",
238237
"-b", "16384"
239238
);
239+
default: mkSquashFsArgs.push("-comp", compressor);
240240
}
241241
d("Queuing 'mksquashfs' task.")
242242
await new Promise((resolve, reject) => {

0 commit comments

Comments
 (0)