blob: 77eb236b86c47ed4ade4df2ae9a6458709a1572e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
post_install(){
pkexec bash /opt/apps/cn.flamescion.bookworm-compatibility-mode/files/bin/ace-init
systemctl enable --now ace-bookworm-auto-upgrade.service
echo "This package will be replaced by amber-ce-bookworm, please remove this package and install amber-ce-bookworm"
echo "这个包将会被 amber-ce-bookworm 替代,请卸载此包,安装 amber-ce-bookworm"
}
post_upgrade(){
if [ -d /opt/apps/cn.flamescion.bookworm-compatibility-mode/files/bookworm-env ];then
mv /opt/apps/cn.flamescion.bookworm-compatibility-mode/files/bookworm-env /opt/apps/cn.flamescion.bookworm-compatibility-mode/files/ace-env
ln -sfv /opt/apps/cn.flamescion.bookworm-compatibility-mode/files/ace-env /opt/apps/cn.flamescion.bookworm-compatibility-mode/files/bookworm-env
fi
pkexec bash /opt/apps/cn.flamescion.bookworm-compatibility-mode/files/bin/ace-init
systemctl enable --now ace-bookworm-auto-upgrade.service
echo "This package will be replaced by amber-ce-bookworm"
echo "这个包将会被 amber-ce-bookworm 替代"
}
post_remove(){
rm -f /usr/bin/bookworm-run
rm -f /usr/bin/ace-uninstall-helper
rm -f /usr/bin/ace-uninstall-helper-gui
rm -rf /opt/apps/cn.flamescion.bookworm-compatibility-mode
}
|