From 6fb473f5d19e33537fa96b447de147d25536960f Mon Sep 17 00:00:00 2001 From: gfdgd_xi <3025613752@qq.com> Date: Wed, 26 Jul 2023 22:16:28 +0800 Subject: [PATCH] =?UTF-8?q?deb=E6=89=93=E5=8C=85=E6=94=AF=E6=8C=81?= =?UTF-8?q?=E5=A4=9A=E7=BA=BF=E7=A8=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- deepin-wine-easy-packager.py | 2 +- deepin-wine-packager.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/deepin-wine-easy-packager.py b/deepin-wine-easy-packager.py index a4285f7..b5691cb 100755 --- a/deepin-wine-easy-packager.py +++ b/deepin-wine-easy-packager.py @@ -571,7 +571,7 @@ class RunThread(QtCore.QThread): self.RunCommand(f"chmod -Rv 755 '{debBuildPath}/opt/apps/{debPackageName}/entries/applications/'*.desktop") ########### 打包 deb print(debPackageVersion) - self.RunCommand(f"dpkg-deb -Z xz -b '{debBuildPath}' '{desktopPath}/{debPackageName}_{debPackageVersion}_all.deb'") + self.RunCommand(f"dpkg-deb -Z xz -z $(($(grep -c processor < /proc/cpuinfo)*2)) -b '{debBuildPath}' '{desktopPath}/{debPackageName}_{debPackageVersion}_all.deb'") self.info.emit("打包完成!") self.disbledAll.emit(False) ########### 移除临时文件 diff --git a/deepin-wine-packager.py b/deepin-wine-packager.py index 589459f..24de5c2 100755 --- a/deepin-wine-packager.py +++ b/deepin-wine-packager.py @@ -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())) ################ # 删除临时文件 ################