mirror of
https://gitee.com/amber-ce/amber-ce-bookworm.git
synced 2025-10-06 01:42:22 +08:00
Support-UOS-apps
This commit is contained in:
parent
08a160114a
commit
666cbf3cc2
@ -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
|
||||
|
@ -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
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user