Files
spark-wine/打包用例/pre_update.sh
2025-04-12 10:49:44 +00:00

17 lines
548 B
Bash
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
function Remove_Bottle_Before_Update(){
local BOTTLENAME="容器名"
echo "$HOME/.deepinwine/${BOTTLENAME} is going to be deleted before Update"
chmod -R +w $HOME/.deepinwine/${BOTTLENAME}
rm -rf $HOME/.deepinwine/${BOTTLENAME}
}
#########这是个例子,对于那些需要删除容器再更新的软件用的,不是每个都需要
function CallPreUpdate(){
Remove_Bottle_Before_Update
DeployApp
########这里是非常非常坑虽然名字是pre_update但是实际上会直接替换掉整个update过程所以deploy也需要加上
}