生态活动脚本更换helper和添加postrm

This commit is contained in:
gfdgd xi 2022-09-11 20:44:16 +08:00
parent d489f6f00d
commit c638648252
4 changed files with 22 additions and 4 deletions

Binary file not shown.

16
package-script/debian/postrm Executable file
View File

@ -0,0 +1,16 @@
#!/bin/bash
if [ "$1" = "remove" ] || [ "$1" = "purge" ];then
echo "清理卸载残留"
for username in `ls /home`
do
echo /home/$username
if [ -d "/home/$username/.deepinwine/@deb_package_name@" ]
then
rm -rf "/home/$username/.deepinwine/@deb_package_name@"
fi
done
else
echo "非卸载,跳过清理"
fi

View File

@ -2,8 +2,8 @@
# 使用系统默认的 python3 运行
###########################################################################################
# 作者gfdgd xi、为什么您不喜欢熊出没和阿布呢
# 版本:1.7.1
# 更新时间2022年07月19
# 版本:2.2.0
# 更新时间2022年09月11
# 感谢:感谢 wine 以及 deepin-wine 团队,提供了 wine 和 deepin-wine 给大家使用,让我能做这个程序
# 基于 Python3 的 tkinter 构建
###########################################################################################
@ -75,9 +75,9 @@ export deb_package_name="{packageName.text()}"
#最终生成的包的版本号,版本号命名规则:应用版本号+deepin+数字
export deb_version_string="{versionName.text()}"
export package_depends="deepin-wine6-stable:amd64 (>= 6.0.0.12-1), deepin-wine-helper (>= 5.1.25-1)"
export package_depends="deepin-wine6-stable:amd64 (>= 6.0.0.12-1), spark-dwine-helper | store.spark-app.spark-dwine-helper"
export apprun_cmd="deepin-wine6-stable"
#export package_depends="deepin-wine5-stable:amd64 (>= 5.0.29-1), deepin-wine-helper (>= 5.1.25-1)"
#export package_depends="deepin-wine5-stable:amd64 (>= 5.0.29-1), spark-dwine-helper | store.spark-app.spark-dwine-helper"
#export apprun_cmd="deepin-wine5-stable"
# rm -fr final.dir/

View File

@ -314,6 +314,8 @@ if [ -n "$desktop_file_categories" ]; then
find -iname "$desktop_file_icon" -exec cp "{}" "$outentries/icons/{}" \;
fi
# 写入 postrm 自动删除卸载残留脚本
$dstdir/DEBIAN/postrm
systemVersion=`cat /etc/os-version`
systemVersion=${systemVersion,,} # 获取系统版本
# 判断系统是否为 UOS