mirror of
https://gitee.com/amber-ce/amber-ce-bookworm.git
synced 2025-10-06 01:42:22 +08:00
fix: UOS package uninstall
This commit is contained in:
parent
666cbf3cc2
commit
259957fb9e
@ -47,7 +47,8 @@ fi
|
||||
|
||||
# 验证文件并执行操作
|
||||
if [ -f "$DPKG_LIST_FILE" ]; then
|
||||
if grep -q "$IN_CONTAINER_PATH" "$DPKG_LIST_FILE" || grep -q "$ACE_ENV_PATH/opt/apps/$PKGNAME_GUESS/entires/$IN_CONTAINER_PATH.desktop" "$DPKG_LIST_FILE"; then
|
||||
|
||||
if grep -q "$IN_CONTAINER_PATH" "$DPKG_LIST_FILE" || grep -q "/opt/apps/$PKGNAME_GUESS/entries/applications/$PKGNAME_GUESS.desktop" "$DPKG_LIST_FILE"; then
|
||||
bookworm-run apt autopurge $PKGNAME_GUESS -y
|
||||
ret=$?
|
||||
if [ "$ret" = "0" ];then
|
||||
|
@ -1,5 +1,5 @@
|
||||
Package: ace-host-integration
|
||||
Version: 1.1
|
||||
Version: 1.2
|
||||
Section: misc
|
||||
Priority: optional
|
||||
Depends: bash
|
||||
|
@ -24,10 +24,12 @@ local file=$1
|
||||
|
||||
|
||||
|
||||
for app_dir in /opt/apps/*; do
|
||||
for file in $app_dir/entries/applications/*.desktop;do
|
||||
for app_dir in $(ls /opt/apps/); do
|
||||
for file in /opt/apps/$app_dir/entries/applications/*.desktop;do
|
||||
do_integrate $file
|
||||
host-spawn ln -sf "$ACE_dir/$file" "$ACE_dir/usr/share/applications/"
|
||||
DESKTOP_FILE_NAME=$(basename $file)
|
||||
pushd /usr/share/applications
|
||||
ln -sf "../../../opt/apps/$app_dir/entries/applications/$DESKTOP_FILE_NAME" "./"
|
||||
done
|
||||
done
|
||||
|
||||
@ -35,5 +37,5 @@ done
|
||||
for file in /usr/share/applications/*.desktop; do
|
||||
do_integrate $file
|
||||
done
|
||||
host-spawn find "$ACE_dir/usr/share/applications/" -xtype l -delete
|
||||
find "/usr/share/applications/" -xtype l -delete
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user