Support-UOS-apps

This commit is contained in:
shenmo 2023-11-12 16:05:16 +08:00
parent 08a160114a
commit 666cbf3cc2
2 changed files with 4 additions and 2 deletions

View File

@ -4,5 +4,5 @@ Section: misc
Priority: optional
Depends: bubblewrap,flatpak,zenity
Maintainer: shenmo <shenmo@spark-app.store>
Architecture: arm64
Architecture: amd64
Description: bwrap wrapper for install and running debs inside a bookworm container

View File

@ -1,4 +1,5 @@
#!/bin/bash
ACE_dir="/opt/apps/cn.flamescion.bookworm-compatibility-mode/files/bookworm-env"
function do_integrate(){
local file=$1
if [ -f "$file" ]; then
@ -26,6 +27,7 @@ local file=$1
for app_dir in /opt/apps/*; do
for file in $app_dir/entries/applications/*.desktop;do
do_integrate $file
host-spawn ln -sf "$ACE_dir/$file" "$ACE_dir/usr/share/applications/"
done
done
@ -33,5 +35,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