From 81f49ae83c1fa1b336083df64b5172fdeb981344 Mon Sep 17 00:00:00 2001 From: gfdgd_xi <3025613752@qq.com> Date: Sun, 18 Jun 2023 11:18:11 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E4=B8=BA=E6=89=93=E5=8C=85xz?= =?UTF-8?q?=E6=A0=BC=E5=BC=8F=E7=9A=84deb=E5=8C=85?= 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 6bfea10..185a814 100755 --- a/deepin-wine-easy-packager.py +++ b/deepin-wine-easy-packager.py @@ -562,7 +562,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 -b '{debBuildPath}' '{desktopPath}/{debPackageName}_{debPackageVersion}_i386.deb'") + self.RunCommand(f"dpkg-deb -Z xz -b '{debBuildPath}' '{desktopPath}/{debPackageName}_{debPackageVersion}_i386.deb'") self.info.emit("打包完成!") self.disbledAll.emit(False) ########### 移除临时文件 diff --git a/deepin-wine-packager.py b/deepin-wine-packager.py index 466ab2e..7e7f7de 100755 --- a/deepin-wine-packager.py +++ b/deepin-wine-packager.py @@ -1575,7 +1575,7 @@ StartupNotify=false ################ if not self.build: self.label.emit("正在构建 deb 包……") - self.run_command("bash -c 'dpkg -b \"{}\" \"{}\"'".format(debPackagePath, e12_text.text())) + self.run_command("bash -c 'dpkg-deb -Z xz -b \"{}\" \"{}\"'".format(debPackagePath, e12_text.text())) ################ # 删除临时文件 ################