deb打包支持多线程

This commit is contained in:
2023-07-26 22:16:28 +08:00
parent c5e63f3699
commit 6fb473f5d1
2 changed files with 2 additions and 2 deletions

View File

@@ -1586,7 +1586,7 @@ StartupNotify=false
################
if not self.build:
self.label.emit("正在构建 deb 包……")
self.run_command("bash -c 'dpkg-deb -Z xz -b \"{}\" \"{}\"'".format(debPackagePath, e12_text.text()))
self.run_command("bash -c 'dpkg-deb -Z xz -z $(($(grep -c processor < /proc/cpuinfo)*2)) -b \"{}\" \"{}\"'".format(debPackagePath, e12_text.text()))
################
# 删除临时文件
################