ace包支持

This commit is contained in:
gfdgd xi 2023-11-11 23:12:30 +08:00
parent 370bde5e63
commit 03942892fd
24 changed files with 267 additions and 4 deletions

10
GetProgramVersion.py Executable file
View File

@ -0,0 +1,10 @@
#!/usr/bin/env python3
# 读取程序版本号
import os
import json
programPath = os.path.split(os.path.realpath(__file__))[0] # 返回 string
try:
with open(f"{programPath}/information.json") as file:
print(json.loads(file.read())["Version"])
except:
print("1.0.0")

View File

@ -8,6 +8,8 @@ clean:
rm -rfv VM-source/.qmake.stash
package:
# 读取程序版本号
PROGRAMVERSION=`python3 GetProgramVersion.py`
#cd VM-source && qmake
#cd VM-source && make
#cd wine && make
@ -127,6 +129,9 @@ package:
python3 RemovePycacheFile.py
sudo rm -rfv /tmp/spark-deepin-wine-runner-builder/
cp -rv deb /tmp/spark-deepin-wine-runner-builder
sed -i "s%@@VERSION@@%${PROGRAMVERSION}%g" /tmp/spark-deepin-wine-runner-builder/DEBIAN/control
SIZE=`du /tmp/spark-deepin-wine-runner-builder/`
sed -i "s%@@SIZE@@%${SIZE}%g" /tmp/spark-deepin-wine-runner-builder/DEBIAN/control
rm -rfv deb/opt/apps/deepin-wine-runner/*
rm -rfv package-script.zip
mkdir -pv /tmp/spark-deepin-wine-runner-builder/usr/bin
@ -152,7 +157,16 @@ package:
sudo chown -R root:root /tmp/spark-deepin-wine-runner-builder
dpkg-deb -Z xz -b /tmp/spark-deepin-wine-runner-builder spark-deepin-wine-runner.deb
dpkg-deb -Z xz -z 9 -b /tmp/spark-deepin-wine-runner-builder spark-deepin-wine-runner.deb
sudo rm -rfv /tmp/spark-deepin-wine-runner-builder
# 构建 ace 包
cp -rv deb-ace /tmp/spark-deepin-wine-runner-builder
cp -rv spark-deepin-wine-runner.deb /tmp/spark-deepin-wine-runner-builder/opt/apps/spark-deepin-wine-runner-ace
sed -i "s%@@VERSION@@%${PROGRAMVERSION}%g" /tmp/spark-deepin-wine-runner-builder/DEBIAN/control
SIZE=`du /tmp/spark-deepin-wine-runner-builder/`
sed -i "s%@@SIZE@@%${SIZE}%g" /tmp/spark-deepin-wine-runner-builder/DEBIAN/control
sudo chown -R root:root /tmp/spark-deepin-wine-runner-builder
dpkg-deb -Z xz -z 9 -b /tmp/spark-deepin-wine-runner-builder spark-deepin-wine-runner-ace.deb
sudo rm -rfv /tmp/spark-deepin-wine-runner-builder
install:

BIN
VM/AAVMF32_CODE.fd Normal file

Binary file not shown.

BIN
VM/QEMU_AARCH64_EFI.fd Normal file

Binary file not shown.

BIN
VM/QEMU_EFI_LOONG64_7.1.fd Normal file

Binary file not shown.

BIN
VM/test.qcow2 Normal file

Binary file not shown.

15
deb-ace/DEBIAN/control Executable file
View File

@ -0,0 +1,15 @@
Package: spark-deepin-wine-runner-ace
Version: @@VERSION@@
Maintainer: gfdgd xi <3025613752@qq.com>
Homepage: https://gitee.com/gfdgd-xi/deep-wine-runner
Architecture: all
Severity: serious
Certainty: possible
Check: binaries
Type: binary, udeb
Priority: optional
Depends: cn.flamescion.bookworm-compatibility-mode,bash,wget,sudo,libnotify-bin
Section: utils
Installed-Size: @@SIZE@@
Description: Wine运行器是一个能让Linux用户更加方便地运行Windows应用的程序内置了对Wine图形化的支持、各种Wine工具、自制的Wine程序打包器和运行库安装工具等。
它同时还内置了基于Qemu/VirtualBox制作的、专供小白使用的Windows虚拟机安装工具可以做到只需下载系统镜像并点击安装即可无需考虑虚拟机的安装、创建、分区等操作也能在非 X86 架构安装 X86 架构的 Windows 操作系统(但是效率较低)。

37
deb-ace/DEBIAN/postinst Executable file
View File

@ -0,0 +1,37 @@
#!/bin/bash
function notify-send(){
#Detect the user using such display
local user=$(who | awk '{print $1}' | head -n 1)
#Detect the id of the user
local uid=$(id -u $user)
sudo -u $user DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/$uid/bus notify-send "$@"
}
function zenity(){
#Detect the user using such display
local user=$(who | awk '{print $1}' | head -n 1)
#Detect the id of the user
local uid=$(id -u $user)
sudo -u $user DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/$uid/bus zenity "$@"
}
###检查aptss在不在
if [ -z `which bookworm-run` ];then
echo "Oh no, ssinstall have not installed bookworm-run dependency yet! Exit"
exit 1
fi
bookworm-run echo "Welcome to BCM! Trying to install package"
if [ -z "`bookworm-run which aptss`" ];then
wget https://zunyun01.store.deepinos.org.cn/store/depends/spark-store-console-in-container_4.2.6.2_all.deb -O /tmp/ssconsole.deb
bookworm-run apt install /tmp/ssconsole.deb -y
rm /tmp/ssconsole.deb -f
fi
notify-send "Installing Wine Runner BCM, may cost some time please ensure your network is fine"
notify-send "正在书虫兼容环境中安装 Wine 运行器,可能会花费一些时间,请保持网络畅通"
bookworm-run aptss update
cp /opt/apps/spark-deepin-wine-runner-ace/spark-deepin-wine-runner.deb /tmp
bookworm-run aptss install /tmp/spark-deepin-wine-runner.deb -y
bookworm-run aptss clean

54
deb-ace/DEBIAN/postrm Executable file
View 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

File diff suppressed because one or more lines are too long

After

Width:  |  Height:  |  Size: 11 KiB

View File

@ -0,0 +1,12 @@
[Desktop Entry]
Type=Application
X-Categories=System;Wine;
Exec=bookworm-run /usr/bin/deepin-wine-package-builder "~/.wine" %F
Icon=/opt/apps/spark-deepin-wine-runner-ace/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;

View File

@ -0,0 +1,13 @@
[Desktop Entry]
Exec=bookworm-run /usr/bin/deepin-wine-packager-easy-builder %F
Icon=/opt/apps/spark-deepin-wine-runner-ace/deepin-wine-runner.svg
Keywords=exe;scr;
MimeType=application/x-ms-dos-executable;application/x-msi;application/x-ms-shortcut;
Name=Wine Package Builder
Name[zh]=Wine
NoDisplay=true
StartupNotify=true
Terminal=false
Type=Application
X-Categories=System;Wine;
X-Deepin-Vendor=user-custom

View File

@ -0,0 +1,10 @@
[Desktop Entry]
Type=Application
X-Categories=System;Wine;
Exec=bookworm-run /usr/bin/deepin-wine-packager-with-script
Icon=/opt/apps/spark-deepin-wine-runner-ace/deepin-wine-runner.svg
Name=Wine Package Builder For UOS
NoDisplay=true
Name[zh]=Wine ()
Terminal=false
StartupNotify=true

View File

@ -0,0 +1,11 @@
[Desktop Entry]
Type=Application
X-Categories=System;Wine;
Exec=bookworm-run /usr/bin/deepin-wine-runner %F
Icon=/opt/apps/spark-deepin-wine-runner-ace/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;

View File

@ -0,0 +1,10 @@
[Desktop Entry]
Type=Application
X-Categories=System;Wine;
Exec=bookworm-run /opt/apps/deepin-wine-runner/RunVM.sh %F
Icon=/opt/apps/spark-deepin-wine-runner-ace/deepin-wine-runner.svg
Name=Setting VirtualMachine
Name[zh]= Windows
NoDisplay=true
Terminal=false
StartupNotify=true

View File

@ -0,0 +1,9 @@
[Desktop Entry]
Type=Application
X-Categories=System;
Exec=bookworm-run /opt/apps/deepin-wine-runner/StartVM.sh %F
Icon=/opt/apps/spark-deepin-wine-runner-ace/deepin-wine-runner.svg
Name=Start Windows VirtualMachine
Name[zh]= Windows
Terminal=false
StartupNotify=true

View File

@ -0,0 +1,12 @@
[Desktop Entry]
Type=Application
X-Categories=System;Wine;
Exec=bookworm-run /usr/bin/deepin-wine-package-builder "~/.wine" %F
Icon=/opt/apps/spark-deepin-wine-runner-ace/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;

View File

@ -0,0 +1,13 @@
[Desktop Entry]
Exec=bookworm-run /usr/bin/deepin-wine-packager-easy-builder %F
Icon=/opt/apps/spark-deepin-wine-runner-ace/deepin-wine-runner.svg
Keywords=exe;scr;
MimeType=application/x-ms-dos-executable;application/x-msi;application/x-ms-shortcut;
Name=Wine Package Builder
Name[zh]=Wine
NoDisplay=true
StartupNotify=true
Terminal=false
Type=Application
X-Categories=System;Wine;
X-Deepin-Vendor=user-custom

View File

@ -0,0 +1,10 @@
[Desktop Entry]
Type=Application
X-Categories=System;Wine;
Exec=bookworm-run /usr/bin/deepin-wine-packager-with-script
Icon=/opt/apps/spark-deepin-wine-runner-ace/deepin-wine-runner.svg
Name=Wine Package Builder For UOS
NoDisplay=true
Name[zh]=Wine ()
Terminal=false
StartupNotify=true

View File

@ -0,0 +1,11 @@
[Desktop Entry]
Type=Application
X-Categories=System;Wine;
Exec=bookworm-run /usr/bin/deepin-wine-runner %F
Icon=/opt/apps/spark-deepin-wine-runner-ace/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;

View File

@ -0,0 +1,10 @@
[Desktop Entry]
Type=Application
X-Categories=System;Wine;
Exec=bookworm-run /opt/apps/deepin-wine-runner/RunVM.sh %F
Icon=/opt/apps/spark-deepin-wine-runner-ace/deepin-wine-runner.svg
Name=Setting VirtualMachine
Name[zh]= Windows
NoDisplay=true
Terminal=false
StartupNotify=true

View File

@ -0,0 +1,9 @@
[Desktop Entry]
Type=Application
X-Categories=System;
Exec=bookworm-run /opt/apps/deepin-wine-runner/StartVM.sh %F
Icon=/opt/apps/spark-deepin-wine-runner-ace/deepin-wine-runner.svg
Name=Start Windows VirtualMachine
Name[zh]= Windows
Terminal=false
StartupNotify=true

View File

@ -1,5 +1,5 @@
Package: spark-deepin-wine-runner
Version: 3.4.1
Version: @@VERSION@@
Maintainer: gfdgd xi <3025613752@qq.com>
Homepage: https://gitee.com/gfdgd-xi/deep-wine-runner
Architecture: all
@ -14,6 +14,6 @@ Section: utils
Conflicts: spark.deepin-venturi-setter, spark-deepin-wine5-application-packer, spark-deepin-wine-runner-52
Replaces: spark.deepin-venturi-setter, spark-deepin-wine5-application-packer, spark-deepin-wine-runner-52
Provides: spark.deepin-venturi-setter, spark-deepin-wine5-application-packer, spark-deepin-wine-runner-52
Installed-Size: 83156
Installed-Size: @@SIZE@@
Description: Wine运行器是一个能让Linux用户更加方便地运行Windows应用的程序内置了对Wine图形化的支持、各种Wine工具、自制的Wine程序打包器和运行库安装工具等。
它同时还内置了基于Qemu/VirtualBox制作的、专供小白使用的Windows虚拟机安装工具可以做到只需下载系统镜像并点击安装即可无需考虑虚拟机的安装、创建、分区等操作也能在非 X86 架构安装 X86 架构的 Windows 操作系统(但是效率较低)。

View File

@ -1,7 +1,9 @@
{
"Version": "3.4.1",
"Version": "3.5.0",
"Time": "未知",
"Thank": [
"感性 @ёжезийлёзйз 进行 Loongarch 架构的测试(旧世界,远程)",
"感谢 @run@3a4k 提供 3a4000 测试机器(远程)",
"感谢 RacoonGX 的付出与贡献",
"感谢 @Amber 编写的《使用wine运行器打包无安装包的软件》https://bbs.deepin.org/post/247720",
"感谢 @豪 提供程序图标",