修改: spark-dwine-helper/build.sh

This commit is contained in:
2022-08-10 17:58:19 +08:00
parent 4c0c6c3e62
commit dae6f3dd65

View File

@@ -37,24 +37,7 @@ Description: Spark Deepin Wine Helper
EOF
cat << EOF >pkg/DEBIAN/postrm
if [ "$1" = "remove" ] || [ "$1" = "purge" ];then
echo "清理卸载残留"
for username in `ls /home`
do
echo /home/$username
if [ -d /home/$username/.config/spark-wine ]
then
rm -rf /home/$username/.config/spark-wine
fi
done
else
echo "非卸载,跳过清理"
fi
EOF
chmod +x pkg/DEBIAN/postrm
cd pkg && fakeroot dpkg-deb -Z xz -b . ../