Skip to content

Commit

Permalink
feat: change the compression strategy of uab
Browse files Browse the repository at this point in the history
Signed-off-by: ComixHe <[email protected]>
  • Loading branch information
ComixHe committed Jan 10, 2025
1 parent ba889e2 commit ee8b878
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion libs/linglong/src/linglong/package/uab_packager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -664,9 +664,15 @@ utils::error::Result<void> UABPackager::packBundle(bool onlyApp) noexcept
return ret;
}

// https://github.com/erofs/erofs-utils/blob/dev/README
if (auto ret =
utils::command::Exec("mkfs.erofs",
{ "-zzstd,11", "-b4096", bundleFile, bundleDir.absolutePath() });
{ "-zzstd,17",
"-Efragments,dedupe,ztailpacking",
"-C1048576",
"-b4096", // force 4096 block size, default is page size
bundleFile,
bundleDir.absolutePath() });
!ret) {
return LINGLONG_ERR(ret);
}
Expand Down

0 comments on commit ee8b878

Please sign in to comment.