src update

This commit is contained in:
2025-10-21 20:00:21 +08:00
parent dfae67271b
commit 091176d017
49 changed files with 3101 additions and 1 deletions

13
src/DEBIAN/control Executable file
View File

@@ -0,0 +1,13 @@
Package: apm
Source: amber-ce
Version: 1.0.5
Architecture: amd64
Maintainer: shenmo <shenmo@spark-app.store>
Installed-Size: 48672
Depends: bubblewrap, flatpak, zenity, policykit-1 | pkexec | polkit-1 | polkit, systemd, procps,coreutils,fuse-overlayfs
Section: misc
Conflicts: ace-host-integration
Priority: optional
Multi-Arch: foreign
Homepage: https://gitee.com/amber-ce/amber-pm/
Description: bwrap wrapper for install and running debs inside a Amber-PM container

30
src/DEBIAN/postinst Executable file
View File

@@ -0,0 +1,30 @@
#!/bin/bash
export PACKAGE_NAME="$DPKG_MAINTSCRIPT_PACKAGE"
case "$1" in
configure)
/var/lib/apm/$PACKAGE_NAME/files/bin/ace-init
systemctl daemon-reload
systemctl enable gxde-apm-fixer
systemctl enable apm-daily-update
systemctl start gxde-apm-fixer
systemctl start apm-daily-update
if [ -f /usr/lib/sysctl.d/apm.conf ];then
sysctl -p /usr/lib/sysctl.d/apm.conf
fi
;;
triggered)
amber-pm-configure-nvidia-host
amber-pm-dstore-patch
;;
esac
true

20
src/DEBIAN/postrm Executable file
View File

@@ -0,0 +1,20 @@
#!/bin/bash
PACKAGE_NAME="$DPKG_MAINTSCRIPT_PACKAGE"
systemctl stop gxde-apm-fixer
systemctl disable gxde-apm-fixer
systemctl stop apm-daily-update
systemctl disable apm-daily-update
if [ "$1" = "remove" ] || [ "$1" = "purge" ];then
echo "清理卸载残留"
rm -rf /var/lib/apm/$PACKAGE_NAME
else
echo "非卸载,跳过清理"
fi

1
src/DEBIAN/triggers Executable file
View File

@@ -0,0 +1 @@
interest-noawait /var/lib/apm