From 5fb2bdf5f96580cdfab58bde0d4bf2a537f4e4de Mon Sep 17 00:00:00 2001 From: gfdgd_xi <3025613752@qq.com> Date: Sun, 13 Aug 2023 21:10:04 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E9=97=AE=E9=A2=98=20dpkg?= =?UTF-8?q?=E5=9C=A8=E6=89=93=E5=8C=85=E6=97=B6=E5=80=99=E5=8C=85=E6=97=B6?= =?UTF-8?q?=E6=8A=A5=20=E6=97=A0=E6=95=88=E7=9A=84=E5=8E=8B=E7=BC=A9?= =?UTF-8?q?=E5=8F=82=E6=95=B0=20z=2016=20https://gitee.com/gfdgd-xi/deep-w?= =?UTF-8?q?ine-runner/issues/I7SMTJ?= 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 91b8cbf..6683ad1 100755 --- a/deepin-wine-easy-packager.py +++ b/deepin-wine-easy-packager.py @@ -572,7 +572,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 -z $(($(grep -c processor < /proc/cpuinfo)*2)) -b '{debBuildPath}' '{desktopPath}/{debPackageName}_{debPackageVersion}_all.deb'") + self.RunCommand(f"dpkg-deb -Z xz -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 ec0d4dc..29da9fd 100755 --- a/deepin-wine-packager.py +++ b/deepin-wine-packager.py @@ -1589,7 +1589,7 @@ StartupNotify=false ################ if not self.build: self.label.emit("正在构建 deb 包……") - self.run_command("bash -c 'dpkg-deb -Z xz -z $(($(grep -c processor < /proc/cpuinfo)*2)) -b \"{}\" \"{}\"'".format(debPackagePath, e12_text.text())) + self.run_command("bash -c 'dpkg-deb -Z xz -b \"{}\" \"{}\"'".format(debPackagePath, e12_text.text())) ################ # 删除临时文件 ################