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())) ################ # 删除临时文件 ################