mirror of
https://gitee.com/gfdgd-xi/deep-wine-runner
synced 2025-01-13 01:58:27 +08:00
修复问题 dpkg在打包时候包时报 无效的压缩参数 z 16 https://gitee.com/gfdgd-xi/deep-wine-runner/issues/I7SMTJ
This commit is contained in:
parent
a1b2915e3a
commit
5fb2bdf5f9
@ -572,7 +572,7 @@ class RunThread(QtCore.QThread):
|
|||||||
self.RunCommand(f"chmod -Rv 755 '{debBuildPath}/opt/apps/{debPackageName}/entries/applications/'*.desktop")
|
self.RunCommand(f"chmod -Rv 755 '{debBuildPath}/opt/apps/{debPackageName}/entries/applications/'*.desktop")
|
||||||
########### 打包 deb
|
########### 打包 deb
|
||||||
print(debPackageVersion)
|
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.info.emit("打包完成!")
|
||||||
self.disbledAll.emit(False)
|
self.disbledAll.emit(False)
|
||||||
########### 移除临时文件
|
########### 移除临时文件
|
||||||
|
@ -1589,7 +1589,7 @@ StartupNotify=false
|
|||||||
################
|
################
|
||||||
if not self.build:
|
if not self.build:
|
||||||
self.label.emit("正在构建 deb 包……")
|
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()))
|
||||||
################
|
################
|
||||||
# 删除临时文件
|
# 删除临时文件
|
||||||
################
|
################
|
||||||
|
Loading…
Reference in New Issue
Block a user