mirror of
https://gitee.com/gfdgd-xi/deep-wine-runner
synced 2025-05-20 06:59:51 +08:00
更新更新内容
This commit is contained in:
parent
82bd073ff8
commit
7fa1edb3f8
3
Makefile
3
Makefile
@ -140,7 +140,8 @@ copy-files:
|
|||||||
cp -rv local deb/opt/apps/deepin-wine-runner
|
cp -rv local deb/opt/apps/deepin-wine-runner
|
||||||
cp -rv WindowModule.py deb/opt/apps/deepin-wine-runner
|
cp -rv WindowModule.py deb/opt/apps/deepin-wine-runner
|
||||||
cp -rv welcome.py deb/opt/apps/deepin-wine-runner
|
cp -rv welcome.py deb/opt/apps/deepin-wine-runner
|
||||||
cp -rv main.py deb/opt/apps/deepin-wine-runner/deepin-wine-runner
|
#cp -rv main.py deb/opt/apps/deepin-wine-runner/deepin-wine-runner
|
||||||
|
cp -rv mainwindow.py deb/opt/apps/deepin-wine-runner/deepin-wine-runner
|
||||||
mkdir -pv deb/opt/apps/deepin-wine-runner/entries/
|
mkdir -pv deb/opt/apps/deepin-wine-runner/entries/
|
||||||
cp -rv deb/usr/share/applications deb/opt/apps/deepin-wine-runner/entries/applications
|
cp -rv deb/usr/share/applications deb/opt/apps/deepin-wine-runner/entries/applications
|
||||||
python3 UpdateTime.py
|
python3 UpdateTime.py
|
||||||
|
19
README.md
19
README.md
@ -157,6 +157,21 @@ desktop文件中StartupWMClass字段。用于让桌面组件将窗口类名与de
|
|||||||

|

|
||||||
|
|
||||||
## 更新日志
|
## 更新日志
|
||||||
|
### 4.1.0(2024/09/15)
|
||||||
|
**※1、修复在 GXDE OS 下无法正常调用 gxde-terminal 的问题**
|
||||||
|
**※2、修复部分机器无法打开应用的问题**
|
||||||
|
**※3、修改打包器 wine 集成封装 机制以便可以被 uos 商店正确签名**
|
||||||
|
**※4、打包器支持内置 spark dwine helper**
|
||||||
|
**※5、重构虚拟机安装模块以支持更多机器**
|
||||||
|
**6、修复打包器设置依赖无法生效的问题**
|
||||||
|
**※7、补充图标**
|
||||||
|
**※8、修复 deb 安装过程中可能出现 dpkg 卡死的问题**
|
||||||
|
**※9、优化 Wine 安装器检测机制**
|
||||||
|
**※10、删除部分废弃组件**
|
||||||
|
**※11、修复 AOSC、Termux 无法正常打开 Wine 运行器的问题**
|
||||||
|
12、修改文案
|
||||||
|
13、修复其它 bug 若干
|
||||||
|
|
||||||
### 4.0.0(2024/07/22)
|
### 4.0.0(2024/07/22)
|
||||||
**※1、优化运行器窗口大小机制**
|
**※1、优化运行器窗口大小机制**
|
||||||
**※2、Wine 安装器支持根据机器实际情况自动推荐适合的 Wine**
|
**※2、Wine 安装器支持根据机器实际情况自动推荐适合的 Wine**
|
||||||
@ -830,11 +845,9 @@ make install -j4
|
|||||||
## 请作者喝杯茶
|
## 请作者喝杯茶
|
||||||
如果您觉得 Wine 运行器对你有帮助,可以请作者喝杯茶
|
如果您觉得 Wine 运行器对你有帮助,可以请作者喝杯茶
|
||||||
<img src="Icon/QR/Wechat.png" width="250" />
|
<img src="Icon/QR/Wechat.png" width="250" />
|
||||||
<img src="Icon/QR/Alipay.jpg" width="250" />
|
|
||||||
<img src="Icon/QR/QQ.png" width="250" >
|
|
||||||
|
|
||||||
### 广告
|
### 广告
|
||||||
支付宝官方活动,扫描获得支付红包!
|
支付宝官方活动,扫描获得支付红包!
|
||||||
<p><img src="Icon/QR/advertisement0.jpg" width="250" ></p>
|
<p><img src="Icon/QR/advertisement0.jpg" width="250" ></p>
|
||||||
|
|
||||||
# ©2020-Now gfdgd xi
|
# ©2020-Now gfdgd xi
|
||||||
|
12
StartVM.sh
12
StartVM.sh
@ -70,7 +70,7 @@ if [[ $? == 0 ]] && [[ -f "$HOME/Qemu/Windows/Windows.qcow2" ]]; then
|
|||||||
echo X86 架构,使用 kvm 加速
|
echo X86 架构,使用 kvm 加速
|
||||||
$qemuMore qemu-system-x86_64 --enable-kvm -cpu host --hda "$HOME/Qemu/Windows/Windows.qcow2" \
|
$qemuMore qemu-system-x86_64 --enable-kvm -cpu host --hda "$HOME/Qemu/Windows/Windows.qcow2" \
|
||||||
-smp $CpuCount,sockets=$CpuSocketNum,cores=$(($CpuCoreNum / $CpuSocketNum)),threads=$(($CpuCount / $CpuCoreNum / $CpuSocketNum)) \
|
-smp $CpuCount,sockets=$CpuSocketNum,cores=$(($CpuCoreNum / $CpuSocketNum)),threads=$(($CpuCount / $CpuCoreNum / $CpuSocketNum)) \
|
||||||
-m ${use}G -display vnc=:5 -display gtk -nic model=rtl8139 $qemuUEFI \
|
-m ${use}G -display gtk -nic model=rtl8139 $qemuUEFI \
|
||||||
-device AC97 -device ES1370 -device intel-hda -device hda-duplex \
|
-device AC97 -device ES1370 -device intel-hda -device hda-duplex \
|
||||||
--boot 'splash=VM/boot.jpg,menu=on,splash-time=2000' \
|
--boot 'splash=VM/boot.jpg,menu=on,splash-time=2000' \
|
||||||
-usb \
|
-usb \
|
||||||
@ -100,7 +100,7 @@ if [[ $? == 0 ]] && [[ -f "$HOME/Qemu/Windows/Windows.qcow2" ]]; then
|
|||||||
echo 不使用 kvm 加速
|
echo 不使用 kvm 加速
|
||||||
$qemuPath --hda "$HOME/Qemu/Windows/Windows.qcow2" \
|
$qemuPath --hda "$HOME/Qemu/Windows/Windows.qcow2" \
|
||||||
-smp $CpuCount,sockets=$CpuSocketNum,cores=$(($CpuCoreNum / $CpuSocketNum)),threads=$(($CpuCount / $CpuCoreNum / $CpuSocketNum)) \
|
-smp $CpuCount,sockets=$CpuSocketNum,cores=$(($CpuCoreNum / $CpuSocketNum)),threads=$(($CpuCount / $CpuCoreNum / $CpuSocketNum)) \
|
||||||
-m ${use}G -display vnc=:5 -display gtk -nic model=rtl8139 $qemuUEFI \
|
-m ${use}G -display gtk -nic model=rtl8139 $qemuUEFI \
|
||||||
-device AC97 -device ES1370 -device intel-hda -device hda-duplex \
|
-device AC97 -device ES1370 -device intel-hda -device hda-duplex \
|
||||||
--boot 'splash=VM/boot.jpg,menu=on,splash-time=2000' \
|
--boot 'splash=VM/boot.jpg,menu=on,splash-time=2000' \
|
||||||
> $TMPDIR/tmp/windows-virtual-machine-installer-for-wine-runner-run.log 2>&1 # 最新的 qemu 已经移除参数 -soundhw all
|
> $TMPDIR/tmp/windows-virtual-machine-installer-for-wine-runner-run.log 2>&1 # 最新的 qemu 已经移除参数 -soundhw all
|
||||||
@ -122,7 +122,7 @@ if [[ $? == 0 ]] && [[ -f "$HOME/Qemu/Windows/Windows.qcow2" ]]; then
|
|||||||
if [[ $? == 0 ]] && [[ `arch` == "aarch64" ]]; then
|
if [[ $? == 0 ]] && [[ `arch` == "aarch64" ]]; then
|
||||||
$qemuMore qemu-system-arm --enable-kvm --hda "$HOME/Qemu/Windows/Windows.qcow2" \
|
$qemuMore qemu-system-arm --enable-kvm --hda "$HOME/Qemu/Windows/Windows.qcow2" \
|
||||||
-smp $CpuCount,sockets=$CpuSocketNum,cores=$(($CpuCoreNum / $CpuSocketNum)),threads=$(($CpuCount / $CpuCoreNum / $CpuSocketNum)) \
|
-smp $CpuCount,sockets=$CpuSocketNum,cores=$(($CpuCoreNum / $CpuSocketNum)),threads=$(($CpuCount / $CpuCoreNum / $CpuSocketNum)) \
|
||||||
-m ${use}G -display vnc=:5 -display gtk -usb -nic model=rtl8139 $qemuUEFI \
|
-m ${use}G -display gtk -usb -nic model=rtl8139 $qemuUEFI \
|
||||||
-cpu max -M virt -device virtio-gpu-pci \
|
-cpu max -M virt -device virtio-gpu-pci \
|
||||||
-device nec-usb-xhci,id=xhci,addr=0x1b \
|
-device nec-usb-xhci,id=xhci,addr=0x1b \
|
||||||
-device usb-tablet,id=tablet,bus=xhci.0,port=1 \
|
-device usb-tablet,id=tablet,bus=xhci.0,port=1 \
|
||||||
@ -134,7 +134,7 @@ if [[ $? == 0 ]] && [[ -f "$HOME/Qemu/Windows/Windows.qcow2" ]]; then
|
|||||||
fi
|
fi
|
||||||
$qemuMore qemu-system-arm --hda "$HOME/Qemu/Windows/Windows.qcow2" \
|
$qemuMore qemu-system-arm --hda "$HOME/Qemu/Windows/Windows.qcow2" \
|
||||||
-smp $CpuCount,sockets=$CpuSocketNum,cores=$(($CpuCoreNum / $CpuSocketNum)),threads=$(($CpuCount / $CpuCoreNum / $CpuSocketNum)) \
|
-smp $CpuCount,sockets=$CpuSocketNum,cores=$(($CpuCoreNum / $CpuSocketNum)),threads=$(($CpuCount / $CpuCoreNum / $CpuSocketNum)) \
|
||||||
-m ${use}G -display vnc=:5 -display gtk -usb -nic model=rtl8139 $qemuUEFI \
|
-m ${use}G -display gtk -usb -nic model=rtl8139 $qemuUEFI \
|
||||||
-cpu max -M virt -device virtio-gpu-pci \
|
-cpu max -M virt -device virtio-gpu-pci \
|
||||||
-device nec-usb-xhci,id=xhci,addr=0x1b \
|
-device nec-usb-xhci,id=xhci,addr=0x1b \
|
||||||
-device usb-tablet,id=tablet,bus=xhci.0,port=1 \
|
-device usb-tablet,id=tablet,bus=xhci.0,port=1 \
|
||||||
@ -160,7 +160,7 @@ if [[ $? == 0 ]] && [[ -f "$HOME/Qemu/Windows/Windows.qcow2" ]]; then
|
|||||||
if [[ $? == 0 ]] && [[ `arch` == "aarch64" ]]; then
|
if [[ $? == 0 ]] && [[ `arch` == "aarch64" ]]; then
|
||||||
$qemuMore qemu-system-aarch64 --enable-kvm --hda "$HOME/Qemu/Windows/Windows.qcow2" \
|
$qemuMore qemu-system-aarch64 --enable-kvm --hda "$HOME/Qemu/Windows/Windows.qcow2" \
|
||||||
-smp $CpuCount,sockets=$CpuSocketNum,cores=$(($CpuCoreNum / $CpuSocketNum)),threads=$(($CpuCount / $CpuCoreNum / $CpuSocketNum)) \
|
-smp $CpuCount,sockets=$CpuSocketNum,cores=$(($CpuCoreNum / $CpuSocketNum)),threads=$(($CpuCount / $CpuCoreNum / $CpuSocketNum)) \
|
||||||
-m ${use}G -display vnc=:5 -display gtk -usb -nic model=rtl8139 $qemuUEFI \
|
-m ${use}G -display gtk -usb -nic model=rtl8139 $qemuUEFI \
|
||||||
-cpu max -M virt \
|
-cpu max -M virt \
|
||||||
-device virtio-gpu-pci \
|
-device virtio-gpu-pci \
|
||||||
-device nec-usb-xhci,id=xhci,addr=0x1b \
|
-device nec-usb-xhci,id=xhci,addr=0x1b \
|
||||||
@ -173,7 +173,7 @@ if [[ $? == 0 ]] && [[ -f "$HOME/Qemu/Windows/Windows.qcow2" ]]; then
|
|||||||
fi
|
fi
|
||||||
$qemuMore qemu-system-aarch64 --hda "$HOME/Qemu/Windows/Windows.qcow2" \
|
$qemuMore qemu-system-aarch64 --hda "$HOME/Qemu/Windows/Windows.qcow2" \
|
||||||
-smp $CpuCount,sockets=$CpuSocketNum,cores=$(($CpuCoreNum / $CpuSocketNum)),threads=$(($CpuCount / $CpuCoreNum / $CpuSocketNum)) \
|
-smp $CpuCount,sockets=$CpuSocketNum,cores=$(($CpuCoreNum / $CpuSocketNum)),threads=$(($CpuCount / $CpuCoreNum / $CpuSocketNum)) \
|
||||||
-m ${use}G -display vnc=:5 -display gtk -usb -nic model=rtl8139 $qemuUEFI \
|
-m ${use}G -display gtk -usb -nic model=rtl8139 $qemuUEFI \
|
||||||
-cpu max -M virt \
|
-cpu max -M virt \
|
||||||
-device virtio-gpu-pci \
|
-device virtio-gpu-pci \
|
||||||
-device nec-usb-xhci,id=xhci,addr=0x1b \
|
-device nec-usb-xhci,id=xhci,addr=0x1b \
|
||||||
|
14
VM/qemu.py
14
VM/qemu.py
@ -86,9 +86,9 @@ class qemu:
|
|||||||
# 如果存在拓展 Qemu,则调用此
|
# 如果存在拓展 Qemu,则调用此
|
||||||
qemuPath = "/opt/apps/deepin-wine-runner-qemu-system-extra/files/run.sh qemu-system-arm"
|
qemuPath = "/opt/apps/deepin-wine-runner-qemu-system-extra/files/run.sh qemu-system-arm"
|
||||||
if(subprocess.getoutput("arch").replace("\n", "").replace(" ", "") == "aarch64" and not os.system((self.applicationDirPath() + "/kvm-ok"))):
|
if(subprocess.getoutput("arch").replace("\n", "").replace(" ", "") == "aarch64" and not os.system((self.applicationDirPath() + "/kvm-ok"))):
|
||||||
return os.system((qemuPath + " --boot 'splash=" + self.GetBootLogoPath() + ",order=d,menu=on,splash-time=2000' -display vnc=:5 -display gtk --enable-kvm -cpu host -M virt " + self.commandOption + " -device virtio-gpu-pci -device nec-usb-xhci,id=xhci,addr=0x1b -device usb-tablet,id=tablet,bus=xhci.0,port=1 -device usb-kbd,id=keyboard,bus=xhci.0,port=2 > /tmp/windows-virtual-machine-installer-for-wine-runner-install.log 2>&1 &"))
|
return os.system((qemuPath + " --boot 'splash=" + self.GetBootLogoPath() + ",order=d,menu=on,splash-time=2000' -display gtk --enable-kvm -cpu host -M virt " + self.commandOption + " -device virtio-gpu-pci -device nec-usb-xhci,id=xhci,addr=0x1b -device usb-tablet,id=tablet,bus=xhci.0,port=1 -device usb-kbd,id=keyboard,bus=xhci.0,port=2 > /tmp/windows-virtual-machine-installer-for-wine-runner-install.log 2>&1 &"))
|
||||||
|
|
||||||
return os.system((qemuPath + " --boot 'splash=" + self.GetBootLogoPath() + ",order=d,menu=on,splash-time=2000' -display vnc=:5 -display gtk -cpu max -M virt " + self.commandOption + " -device virtio-gpu-pci -device nec-usb-xhci,id=xhci,addr=0x1b -device usb-tablet,id=tablet,bus=xhci.0,port=1 -device usb-kbd,id=keyboard,bus=xhci.0,port=2 > /tmp/windows-virtual-machine-installer-for-wine-runner-install.log 2>&1 &"))
|
return os.system((qemuPath + " --boot 'splash=" + self.GetBootLogoPath() + ",order=d,menu=on,splash-time=2000' -display gtk -cpu max -M virt " + self.commandOption + " -device virtio-gpu-pci -device nec-usb-xhci,id=xhci,addr=0x1b -device usb-tablet,id=tablet,bus=xhci.0,port=1 -device usb-kbd,id=keyboard,bus=xhci.0,port=2 > /tmp/windows-virtual-machine-installer-for-wine-runner-install.log 2>&1 &"))
|
||||||
|
|
||||||
def StartAarch64(self):
|
def StartAarch64(self):
|
||||||
bootScreenLogo = ""
|
bootScreenLogo = ""
|
||||||
@ -107,9 +107,9 @@ class qemu:
|
|||||||
|
|
||||||
print(self.commandOption)
|
print(self.commandOption)
|
||||||
if(subprocess.getoutput("arch").replace("\n", "").replace(" ", "") == "aarch64" and not os.system((self.applicationDirPath() + "/kvm-ok"))):
|
if(subprocess.getoutput("arch").replace("\n", "").replace(" ", "") == "aarch64" and not os.system((self.applicationDirPath() + "/kvm-ok"))):
|
||||||
return os.system((qemuPath + " --boot 'splash=" + self.GetBootLogoPath() + ",order=d,menu=on,splash-time=2000' -display vnc=:5 -display gtk --enable-kvm -cpu host -M virt " + self.commandOption + " -device virtio-gpu-pci -device nec-usb-xhci,id=xhci,addr=0x1b -device usb-tablet,id=tablet,bus=xhci.0,port=1 -device usb-kbd,id=keyboard,bus=xhci.0,port=2 > /tmp/windows-virtual-machine-installer-for-wine-runner-install.log 2>&1 &"))
|
return os.system((qemuPath + " --boot 'splash=" + self.GetBootLogoPath() + ",order=d,menu=on,splash-time=2000' -display gtk --enable-kvm -cpu host -M virt " + self.commandOption + " -device virtio-gpu-pci -device nec-usb-xhci,id=xhci,addr=0x1b -device usb-tablet,id=tablet,bus=xhci.0,port=1 -device usb-kbd,id=keyboard,bus=xhci.0,port=2 > /tmp/windows-virtual-machine-installer-for-wine-runner-install.log 2>&1 &"))
|
||||||
|
|
||||||
return os.system((qemuPath + " --boot 'splash=" + self.GetBootLogoPath() + ",order=d,menu=on,splash-time=2000' -display vnc=:5 -display gtk -cpu max -M virt " + self.commandOption + " -device virtio-gpu-pci -device nec-usb-xhci,id=xhci,addr=0x1b -device usb-tablet,id=tablet,bus=xhci.0,port=1 -device usb-kbd,id=keyboard,bus=xhci.0,port=2 > /tmp/windows-virtual-machine-installer-for-wine-runner-install.log 2>&1 &"))
|
return os.system((qemuPath + " --boot 'splash=" + self.GetBootLogoPath() + ",order=d,menu=on,splash-time=2000' -display gtk -cpu max -M virt " + self.commandOption + " -device virtio-gpu-pci -device nec-usb-xhci,id=xhci,addr=0x1b -device usb-tablet,id=tablet,bus=xhci.0,port=1 -device usb-kbd,id=keyboard,bus=xhci.0,port=2 > /tmp/windows-virtual-machine-installer-for-wine-runner-install.log 2>&1 &"))
|
||||||
|
|
||||||
def StartLoong64(self):
|
def StartLoong64(self):
|
||||||
return 1
|
return 1
|
||||||
@ -134,8 +134,8 @@ class qemu:
|
|||||||
qemuPath = "/opt/apps/deepin-wine-runner-qemu-system-extra/files/run.sh qemu-system-x86_64"
|
qemuPath = "/opt/apps/deepin-wine-runner-qemu-system-extra/files/run.sh qemu-system-x86_64"
|
||||||
print(self.commandOption)
|
print(self.commandOption)
|
||||||
if(subprocess.getoutput("arch").replace("\n", "").replace(" ", "") == "x86_64" and not os.system((self.applicationDirPath() + "/kvm-ok"))):
|
if(subprocess.getoutput("arch").replace("\n", "").replace(" ", "") == "x86_64" and not os.system((self.applicationDirPath() + "/kvm-ok"))):
|
||||||
return os.system((qemuPath + " --boot 'splash=" + self.GetBootLogoPath() + ",order=d,menu=on,splash-time=2000' -display vnc=:5 -display gtk --enable-kvm -cpu host " + newCommandOption + " > /tmp/windows-virtual-machine-installer-for-wine-runner-install.log 2>&1 &"))
|
return os.system((qemuPath + " --boot 'splash=" + self.GetBootLogoPath() + ",order=d,menu=on,splash-time=2000' -display gtk --enable-kvm -cpu host " + newCommandOption + " > /tmp/windows-virtual-machine-installer-for-wine-runner-install.log 2>&1 &"))
|
||||||
return os.system((qemuPath + " --boot 'splash=" + self.GetBootLogoPath() + ",order=d,menu=on,splash-time=2000' -display vnc=:5 -display gtk -nic model=rtl8139 " + newCommandOption + " > /tmp/windows-virtual-machine-installer-for-wine-runner-install.log 2>&1 &"))
|
return os.system((qemuPath + " --boot 'splash=" + self.GetBootLogoPath() + ",order=d,menu=on,splash-time=2000' -display gtk -nic model=rtl8139 " + newCommandOption + " > /tmp/windows-virtual-machine-installer-for-wine-runner-install.log 2>&1 &"))
|
||||||
|
|
||||||
def Stop(self):
|
def Stop(self):
|
||||||
os.system("killall qemu-system-x86_64 -9")
|
os.system("killall qemu-system-x86_64 -9")
|
||||||
@ -245,4 +245,4 @@ class qemu:
|
|||||||
|
|
||||||
def GetArch(self) -> str:
|
def GetArch(self) -> str:
|
||||||
return subprocess.getoutput("uname -m").replace("\n", "").replace(" ", "")
|
return subprocess.getoutput("uname -m").replace("\n", "").replace(" ", "")
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user