mirror of
https://gitee.com/amber-ce/amber-ce-bookworm.git
synced 2025-12-14 02:52:04 +08:00
fix: UOS package uninstall
This commit is contained in:
@@ -47,7 +47,8 @@ fi
|
|||||||
|
|
||||||
# 验证文件并执行操作
|
# 验证文件并执行操作
|
||||||
if [ -f "$DPKG_LIST_FILE" ]; then
|
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
|
bookworm-run apt autopurge $PKGNAME_GUESS -y
|
||||||
ret=$?
|
ret=$?
|
||||||
if [ "$ret" = "0" ];then
|
if [ "$ret" = "0" ];then
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
Package: ace-host-integration
|
Package: ace-host-integration
|
||||||
Version: 1.1
|
Version: 1.2
|
||||||
Section: misc
|
Section: misc
|
||||||
Priority: optional
|
Priority: optional
|
||||||
Depends: bash
|
Depends: bash
|
||||||
|
|||||||
@@ -24,10 +24,12 @@ local file=$1
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
for app_dir in /opt/apps/*; do
|
for app_dir in $(ls /opt/apps/); do
|
||||||
for file in $app_dir/entries/applications/*.desktop;do
|
for file in /opt/apps/$app_dir/entries/applications/*.desktop;do
|
||||||
do_integrate $file
|
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
|
||||||
done
|
done
|
||||||
|
|
||||||
@@ -35,5 +37,5 @@ done
|
|||||||
for file in /usr/share/applications/*.desktop; do
|
for file in /usr/share/applications/*.desktop; do
|
||||||
do_integrate $file
|
do_integrate $file
|
||||||
done
|
done
|
||||||
host-spawn find "$ACE_dir/usr/share/applications/" -xtype l -delete
|
find "/usr/share/applications/" -xtype l -delete
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user