mirror of
https://gitee.com/gfdgd-xi/deep-wine-runner
synced 2025-12-14 11:02:04 +08:00
初步精简
This commit is contained in:
30
deb/DEBIAN/control
Executable file
30
deb/DEBIAN/control
Executable file
@@ -0,0 +1,30 @@
|
||||
Package: spark-deepin-wine-runner
|
||||
Version: 3.1.0
|
||||
Maintainer: gfdgd xi <3025613752@qq.com>
|
||||
Homepage: https://gitee.com/gfdgd-xi-org/deep-wine-runner
|
||||
Architecture: all
|
||||
Severity: serious
|
||||
Certainty: possible
|
||||
Check: binaries
|
||||
Type: binary, udeb
|
||||
Priority: optional
|
||||
Depends: python3, python3-pil, libc6, python3-pil.imagetk, python3-pyquery, aria2, curl, unrar, unzip, python3-requests, python3-pyqt5, python3-psutil, deepin-terminal | mate-terminal | gnome-terminal | xfce4-terminal, python3-dbus, python3-pip, p7zip-full, sudo
|
||||
Recommends: winbind, wimtools, python3-pyqt5.qtwebengine
|
||||
Section: utils
|
||||
Conflicts: spark.deepin-venturi-setter, spark-deepin-wine5-application-packer, spark-deepin-wine-runner-52, spark-deepin-wine-runner
|
||||
Replaces: spark.deepin-venturi-setter, spark-deepin-wine5-application-packer, spark-deepin-wine-runner-52, spark-deepin-wine-runner
|
||||
Installed-Size: 25856
|
||||
Description: gfdgd xi、为什么您不喜欢熊出没和阿布呢 制作的 wine 运行器,RacoonGX 团队作品
|
||||
3.1.0 更新内容:
|
||||
※1、不基于生态适配脚本打包器支持禁用 Mono/Gecko 打包器;
|
||||
※2、自动容器配置脚本新增命令 decompressionbottle、programforum、installmsi 以及上述命令的帮助;
|
||||
※3、自动容器配置脚本新增评论功能;
|
||||
※4、自动容器配置脚本新增许多应用安装脚本;
|
||||
※5、安装 Windows 虚拟机功能更换应答镜像图标并添加常用 Windows 组件安装功能;
|
||||
※6、安装 Windows 虚拟机功能提供镜像下载的网盘链接;
|
||||
※7、简易打包器支持自动添加宋体;
|
||||
8、修复 installfont 命令下载的字体目录错误问题;
|
||||
9、修复提交日志功能在提交成功时依旧提示提交失败问题;
|
||||
10、支持强制启用所有被禁用的组件(不推荐)。
|
||||
更新时间:2023年01月06日
|
||||
作者:gfdgd xi、为什么您不喜欢熊出没和阿布呢,RacoonGX 团队作品
|
||||
67
deb/DEBIAN/postinst
Executable file
67
deb/DEBIAN/postinst
Executable file
@@ -0,0 +1,67 @@
|
||||
#!/bin/sh
|
||||
# 使用系统默认的 sh 运行
|
||||
#################################################################################################################
|
||||
# 作者:gfdgd xi、为什么您不喜欢熊出没和阿布呢
|
||||
# 版本:3.0.0
|
||||
# 更新时间:2022年10月02日
|
||||
# 感谢:感谢 wine、deepin-wine 以及星火团队,提供了 wine、deepin-wine、spark-wine-devel 给大家使用,让我能做这个程序
|
||||
# 基于 sh
|
||||
#################################################################################################################
|
||||
# 非强制性的必应组件,所以成功不成功都行
|
||||
echo 安装组件
|
||||
python3 -m pip install --upgrade pynput --trusted-host https://repo.huaweicloud.com -i https://repo.huaweicloud.com/repository/pypi/simple > /dev/null 2>&1 | true
|
||||
python3 -m pip install --upgrade xpinyin --trusted-host https://repo.huaweicloud.com -i https://repo.huaweicloud.com/repository/pypi/simple > /dev/null 2>&1 | true
|
||||
echo 执行完成
|
||||
echo 移除旧组件
|
||||
if [ -d /opt/apps/deepin-wine-runner/arm-package ]; then
|
||||
rm -rf /opt/apps/deepin-wine-runner/arm-package
|
||||
fi
|
||||
if [ -d /opt/apps/deepin-wine-runner/dlls-arm ]; then
|
||||
rm -rf /opt/apps/deepin-wine-runner/dlls-arm
|
||||
fi
|
||||
if [ -d /opt/apps/deepin-wine-runner/exa ]; then
|
||||
rm -rf /opt/apps/deepin-wine-runner/exa
|
||||
fi
|
||||
if [ -d /opt/apps/deepin-wine-runner/dxvk ]; then
|
||||
rm -rf /opt/apps/deepin-wine-runner/dxvk
|
||||
fi
|
||||
echo 移除完成
|
||||
# 如果为非 X86 PC,可以删除掉一些无用组件(主要是用不了)
|
||||
if [ `arch` != "x86_64" ]; then
|
||||
echo 非X86架构,删除对非X86架构无用的组件
|
||||
# 删除虚拟机功能
|
||||
rm -rf /opt/apps/deepin-wine-runner/StartVM.sh
|
||||
rm -rf /opt/apps/deepin-wine-runner/RunVM.sh
|
||||
rm -rf /opt/apps/deepin-wine-runner/VM
|
||||
rm -rf /usr/share/applications/spark-deepin-wine-runner-control-vm.desktop
|
||||
rm -rf /usr/share/applications/spark-deepin-wine-runner-start-vm.desktop
|
||||
# 删除安装 wine 功能
|
||||
rm -rf "/opt/apps/deepin-wine-runner/wine install"
|
||||
# 这个注释掉的理论可用,不移除
|
||||
#rm -rf "/opt/apps/deepin-wine-runner/wine"
|
||||
rm -rf /usr/bin/deepin-wine-runner-wine-installer
|
||||
rm -rf /usr/bin/deepin-wine-runner-wine-install-deepin23
|
||||
rm -rf /usr/bin/deepin-wine-runner-wine-install
|
||||
rm -rf /usr/bin/deepin-wine-runner-winehq-install
|
||||
rm -rf /opt/apps/deepin-wine-runner/InstallWineOnDeepin23.py
|
||||
rm -rf /opt/apps/deepin-wine-runner/sparkstore.list
|
||||
rm -rf /opt/apps/deepin-wine-runner/AllInstall.py
|
||||
rm -rf /opt/apps/deepin-wine-runner/InstallNewWineHQ.sh
|
||||
fi
|
||||
# 到时候切换 gpg 源会方便很多
|
||||
if [ -r /etc/apt/sources.list.d/better-dde.list ]; then
|
||||
if [ -d /usr/share/deepin-installer ]; then
|
||||
# 用于修复 Deepin Community Live CD Install 版签名过期的问题
|
||||
wget -P /tmp/gfdgd-xi-sources https://code.gitlink.org.cn/gfdgd_xi/gfdgd-xi-apt-mirrors/raw/branch/master/gpg.asc
|
||||
rm -rfv /etc/apt/trusted.gpg.d/gfdgdxi-list.gpg | true
|
||||
cp -v /tmp/gfdgd-xi-sources/gpg.asc.gpg /etc/apt/trusted.gpg.d/gfdgdxi-list.gpg
|
||||
# 用于修复 2022.11.25 Better DDE 导致的 Deepin Community Live CD Install 版问题
|
||||
# 移除 Better DDE 源
|
||||
rm -rfv /etc/apt/sources.list.d/better-dde.list
|
||||
apt update > /dev/null 2>&1 | true
|
||||
fi
|
||||
fi
|
||||
# 设置目录权限,让用户可读可写,方便后续删除组件
|
||||
chmod 777 -R /opt/apps/deepin-wine-runner
|
||||
# 向服务器返回安装数加1(不显示内容且忽略错误)
|
||||
python3 /opt/apps/deepin-wine-runner/Download.py 3.1.0 > /dev/null 2>&1 | true
|
||||
54
deb/DEBIAN/postrm
Executable file
54
deb/DEBIAN/postrm
Executable file
@@ -0,0 +1,54 @@
|
||||
#!/bin/bash
|
||||
# 使用系统默认的 sh 运行
|
||||
#################################################################################################################
|
||||
# 作者:gfdgd xi、为什么您不喜欢熊出没和阿布呢
|
||||
# 版本:2.2.0
|
||||
# 更新时间:2022年09月24日
|
||||
# 感谢:感谢 wine、deepin-wine 以及星火团队,提供了 wine、deepin-wine、spark-wine-devel 给大家使用,让我能做这个程序
|
||||
# 基于 sh
|
||||
#################################################################################################################
|
||||
# 删除软件残留,简单粗暴一点直接全部删掉,防止出现警告
|
||||
# 加判断是为了怕 reinstall 后程序就再也打不开了(除非卸载后重新安装)
|
||||
if [ "$1" = "remove" ] || [ "$1" = "purge" ]; then
|
||||
rm -rf /opt/apps/deepin-wine-runner/
|
||||
fi
|
||||
# 删除软件缓存(留着也没什么用了)
|
||||
# 缓存目录:~/.cache/deepin-wine-runner
|
||||
if [ "$1" = "remove" ] || [ "$1" = "purge" ]; then
|
||||
|
||||
echo "清理程序缓存"
|
||||
|
||||
for username in $(ls /home); do
|
||||
echo /home/$username
|
||||
if [ -d "/home/$username/.cache/deepin-wine-runner/" ]; then
|
||||
rm -rf "/home/$username/.cache/deepin-wine-runner/"
|
||||
fi
|
||||
done
|
||||
# 清理 root 用户的缓存文件
|
||||
echo /root
|
||||
if [ -d "/root/.cache/deepin-wine-runner/" ]; then
|
||||
rm -rf "/root/.cache/deepin-wine-runner/"
|
||||
fi
|
||||
else
|
||||
echo "非卸载,跳过清理"
|
||||
fi
|
||||
# 删除软件配置文件(只限“purge”)
|
||||
# 配置目录:~/.config/deepin-wine-runner
|
||||
if [ "$1" = "purge" ]; then
|
||||
|
||||
echo "清理程序配置文件"
|
||||
|
||||
for username in $(ls /home); do
|
||||
echo /home/$username
|
||||
if [ -d "/home/$username/.config/deepin-wine-runner/" ]; then
|
||||
rm -rf "/home/$username/.config/deepin-wine-runner/"
|
||||
fi
|
||||
done
|
||||
# 清理 root 用户的配置文件
|
||||
echo /root
|
||||
if [ -d "/root/.config/deepin-wine-runner/" ]; then
|
||||
rm -rf "/root/.config/deepin-wine-runner/"
|
||||
fi
|
||||
else
|
||||
echo "非 purge,跳过清理"
|
||||
fi
|
||||
1
deb/usr/lib/python3/dist-packages/WineRunner
Symbolic link
1
deb/usr/lib/python3/dist-packages/WineRunner
Symbolic link
@@ -0,0 +1 @@
|
||||
/opt/apps/deepin-wine-runner/API/Python/
|
||||
@@ -0,0 +1,12 @@
|
||||
[Desktop Entry]
|
||||
Type=Application
|
||||
X-Categories=System;Wine;
|
||||
Exec=/usr/bin/deepin-wine-package-builder "~/.wine" %F
|
||||
Icon=/opt/apps/deepin-wine-runner/deepin-wine-runner.svg
|
||||
Name=Wine Package Builder
|
||||
Name[zh]=Wine 打包器
|
||||
Terminal=false
|
||||
StartupNotify=true
|
||||
NoDisplay=true
|
||||
Keywords=exe;scr;
|
||||
MimeType=application/x-ms-dos-executable;application/x-msi;application/x-ms-shortcut;
|
||||
@@ -0,0 +1,12 @@
|
||||
[Desktop Entry]
|
||||
Type=Application
|
||||
X-Categories=System;Wine;
|
||||
Exec=/usr/bin/deepin-wine-packager-easy-builder %F
|
||||
Icon=/opt/apps/deepin-wine-runner/deepin-wine-runner.svg
|
||||
Name=Wine Package Builder
|
||||
Name[zh]=Wine 简易打包器
|
||||
Terminal=false
|
||||
StartupNotify=true
|
||||
NoDisplay=true
|
||||
Keywords=exe;scr;
|
||||
MimeType=application/x-ms-dos-executable;application/x-msi;application/x-ms-shortcut;
|
||||
@@ -0,0 +1,10 @@
|
||||
[Desktop Entry]
|
||||
Type=Application
|
||||
X-Categories=System;Wine;
|
||||
Exec=/usr/bin/deepin-wine-packager-with-script
|
||||
Icon=/opt/apps/deepin-wine-runner/deepin-wine-runner.svg
|
||||
Name=Wine Package Builder For UOS
|
||||
NoDisplay=true
|
||||
Name[zh]=Wine 打包器(基于活动脚本)
|
||||
Terminal=false
|
||||
StartupNotify=true
|
||||
@@ -0,0 +1,10 @@
|
||||
[Desktop Entry]
|
||||
Type=Application
|
||||
X-Categories=System;Wine;
|
||||
Exec=/opt/apps/deepin-wine-runner/RunVM.sh %F
|
||||
Icon=/opt/apps/deepin-wine-runner/deepin-wine-runner.svg
|
||||
Name=Setting VirtualMachine
|
||||
Name[zh]=设置 Windows 虚拟机
|
||||
NoDisplay=true
|
||||
Terminal=false
|
||||
StartupNotify=true
|
||||
@@ -0,0 +1,9 @@
|
||||
[Desktop Entry]
|
||||
Type=Application
|
||||
X-Categories=System;
|
||||
Exec=/opt/apps/deepin-wine-runner/StartVM.sh %F
|
||||
Icon=/opt/apps/deepin-wine-runner/deepin-wine-runner.svg
|
||||
Name=Start Windows VirtualMachine
|
||||
Name[zh]=开启 Windows 虚拟机
|
||||
Terminal=false
|
||||
StartupNotify=true
|
||||
11
deb/usr/share/applications/spark-deepin-wine-runner.desktop
Normal file
11
deb/usr/share/applications/spark-deepin-wine-runner.desktop
Normal file
@@ -0,0 +1,11 @@
|
||||
[Desktop Entry]
|
||||
Type=Application
|
||||
X-Categories=System;Wine;
|
||||
Exec=/usr/bin/deepin-wine-runner %F
|
||||
Icon=/opt/apps/deepin-wine-runner/deepin-wine-runner.svg
|
||||
Name=Wine Runner
|
||||
Name[zh]=Wine 运行器
|
||||
Terminal=false
|
||||
StartupNotify=true
|
||||
Keywords=exe;scr;
|
||||
MimeType=application/x-ms-dos-executable;application/x-msi;application/x-ms-shortcut;
|
||||
@@ -0,0 +1,21 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE policyconfig PUBLIC
|
||||
"-//freedesktop//DTD PolicyKit Policy Configuration 1.0//EN"
|
||||
"http://www.freedesktop.org/standards/PolicyKit/1/policyconfig.dtd">
|
||||
<policyconfig>
|
||||
<vendor>gfdgd xi</vendor>
|
||||
<vendor_url>https://gitee.com/gfdgd-xi/deep-wine-runner/</vendor_url>
|
||||
<action id="com.deepin.pkexec.deepin-wine-venturi-setter">
|
||||
<message>Authentication is required to change run_v3 file manager</message>
|
||||
<message xml:lang="zh_CN">修改 run_v3 文管需要输入密码</message>
|
||||
<icon_name>preferences-system</icon_name>
|
||||
<defaults>
|
||||
<allow_any>no</allow_any>
|
||||
<allow_inactive>no</allow_inactive>
|
||||
<allow_active>auth_admin_keep</allow_active>
|
||||
</defaults>
|
||||
<annotate key="org.freedesktop.policykit.exec.path">/opt/apps/deepin-wine-runner/deepin-wine-venturi-setter.py</annotate>
|
||||
<annotate key="org.freedesktop.policykit.exec.allow_gui">true</annotate>
|
||||
</action>
|
||||
|
||||
</policyconfig>
|
||||
21
deb/usr/share/polkit-1/actions/com.deepin.pkexec.mount.policy
Executable file
21
deb/usr/share/polkit-1/actions/com.deepin.pkexec.mount.policy
Executable file
@@ -0,0 +1,21 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE policyconfig PUBLIC
|
||||
"-//freedesktop//DTD PolicyKit Policy Configuration 1.0//EN"
|
||||
"http://www.freedesktop.org/standards/PolicyKit/1/policyconfig.dtd">
|
||||
<policyconfig>
|
||||
<vendor>gfdgd xi</vendor>
|
||||
<vendor_url>https://gitee.com/gfdgd-xi/deep-wine-runner/</vendor_url>
|
||||
<action id="com.deepin.pkexec.mount">
|
||||
<message>Authentication is required to mount file</message>
|
||||
<message xml:lang="zh_CN">挂载文件需要输入密码</message>
|
||||
<icon_name>preferences-system</icon_name>
|
||||
<defaults>
|
||||
<allow_any>no</allow_any>
|
||||
<allow_inactive>no</allow_inactive>
|
||||
<allow_active>auth_admin_keep</allow_active>
|
||||
</defaults>
|
||||
<annotate key="org.freedesktop.policykit.exec.path">/usr/bin/mount</annotate>
|
||||
<annotate key="org.freedesktop.policykit.exec.allow_gui">true</annotate>
|
||||
</action>
|
||||
|
||||
</policyconfig>
|
||||
21
deb/usr/share/polkit-1/actions/com.deepin.pkexec.umount.policy
Executable file
21
deb/usr/share/polkit-1/actions/com.deepin.pkexec.umount.policy
Executable file
@@ -0,0 +1,21 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE policyconfig PUBLIC
|
||||
"-//freedesktop//DTD PolicyKit Policy Configuration 1.0//EN"
|
||||
"http://www.freedesktop.org/standards/PolicyKit/1/policyconfig.dtd">
|
||||
<policyconfig>
|
||||
<vendor>gfdgd xi</vendor>
|
||||
<vendor_url>https://gitee.com/gfdgd-xi/deep-wine-runner/</vendor_url>
|
||||
<action id="com.deepin.pkexec.umount">
|
||||
<message>Authentication is required to unmount file</message>
|
||||
<message xml:lang="zh_CN">卸载文件需要输入密码</message>
|
||||
<icon_name>preferences-system</icon_name>
|
||||
<defaults>
|
||||
<allow_any>no</allow_any>
|
||||
<allow_inactive>no</allow_inactive>
|
||||
<allow_active>auth_admin_keep</allow_active>
|
||||
</defaults>
|
||||
<annotate key="org.freedesktop.policykit.exec.path">/usr/bin/umount</annotate>
|
||||
<annotate key="org.freedesktop.policykit.exec.allow_gui">true</annotate>
|
||||
</action>
|
||||
|
||||
</policyconfig>
|
||||
Reference in New Issue
Block a user