mirror of
https://gitee.com/gfdgd-xi/deep-wine-runner
synced 2025-01-12 01:28:28 +08:00
更新geek.exe
This commit is contained in:
parent
75fc007863
commit
f8fa1f2a9f
@ -8,7 +8,7 @@ Certainty: possible
|
||||
Check: binaries
|
||||
Type: binary, udeb
|
||||
Priority: optional
|
||||
Depends: python3, python3-pil, python3-pil.imagetk, python3-pyquery, aria2, curl, unrar | unrar-free , unzip, python3-requests, python3-pyqt5, python3-psutil, xfce4-terminal | deepin-terminal | mate-terminal | gnome-terminal, python3-dbus, python3-pip, p7zip-full (< 16.02+transitional.1) | p7zip-legacy (>= 16.02+dfsg-8+Mejituu-2024022216), sudo, python3-pyperclip, bubblewrap, zenity, tree, dpkg, fakeroot
|
||||
Depends: python3, python3-pil, python3-pil.imagetk, python3-pyquery, aria2, curl, unrar | unrar-free , unzip, python3-requests, python3-pyqt5, python3-psutil, xfce4-terminal | deepin-terminal | mate-terminal | gnome-terminal, python3-dbus, python3-pip, p7zip-full (<< 16.02+transitional.1) | p7zip-legacy (>= 16.02+dfsg-8+Mejituu-2024022216), sudo, python3-pyperclip, bubblewrap, zenity, tree, dpkg, fakeroot
|
||||
Recommends: winbind, wimtools, python3-pyqt5.qtwebengine, binfmt-support, libc6:i386, libc6:armhf, libwine, qemu-system, qemu-full, alien
|
||||
Section: utils
|
||||
Conflicts: spark.deepin-venturi-setter, spark-deepin-wine5-application-packer, spark-deepin-wine-runner-52
|
||||
|
@ -2428,7 +2428,7 @@ moreSetting = QtWidgets.QGroupBox(transla.transe("U", "高级设置"))
|
||||
debDepends = QtWidgets.QLineEdit()
|
||||
debRecommend = QtWidgets.QLineEdit()
|
||||
debFirstArch = QtWidgets.QComboBox()
|
||||
debFirstArch.addItems(["all", "i386", "arm64", "armhf", "arm64", "loongarch64", "loong64", "riscv64"])
|
||||
debFirstArch.addItems(["all", "i386", "amd64", "armhf", "arm64", "loongarch64", "loong64", "riscv64"])
|
||||
debFirstArch.setCurrentIndex(0)
|
||||
debFirstArch.currentIndexChanged.connect(AutoPathSet)
|
||||
debDepends.setPlaceholderText(transla.transe("U", "deb 包的依赖(如无特殊需求默认即可)"))
|
||||
|
25
loongarch64-to-loong64.py
Executable file
25
loongarch64-to-loong64.py
Executable file
@ -0,0 +1,25 @@
|
||||
#!/usr/bin/env python3
|
||||
import os
|
||||
import sys
|
||||
|
||||
def ReadTXT(path):
|
||||
with open(path, "r") as file:
|
||||
thing = file.read()
|
||||
return thing
|
||||
|
||||
def WriteTXT(path, data):
|
||||
with open(path, "w") as file:
|
||||
file.write(data)
|
||||
|
||||
debList = sys.argv[1:]
|
||||
for i in debList:
|
||||
# 解包
|
||||
os.system("rm -rf /tmp/change-old-to-new")
|
||||
os.system(f"dpkg -x '{i}' /tmp/change-old-to-new")
|
||||
os.system(f"dpkg -e '{i}' /tmp/change-old-to-new/DEBIAN")
|
||||
info = ReadTXT("/tmp/change-old-to-new/DEBIAN/control").replace(": loongarch64", ": loong64").replace("Depends: ", "Depends: liblol, ")
|
||||
WriteTXT("/tmp/change-old-to-new/DEBIAN/control", info)
|
||||
os.system(f"dpkg -b /tmp/change-old-to-new 'change/{os.path.basename(i).replace('_loongarch64', '_loong64')}'")
|
||||
# 检查是否能正常安装
|
||||
if os.system(f"sudo chroot ../ apt install '/deb/change/{os.path.basename(i).replace('_loongarch64', '_loong64')}' --dry-run > /dev/null"):
|
||||
print("Bad: change/", os.path.basename(i).replace('_loongarch64', '_loong64'))
|
Loading…
Reference in New Issue
Block a user