Now change to ACE Bookworm

This commit is contained in:
2024-03-23 13:40:19 +08:00
parent d74b603469
commit 24fe84d5be
47 changed files with 64 additions and 52 deletions

View File

@@ -1,8 +1,8 @@
Package: cn.flamescion.bookworm-compatibility-mode
Version: 12.4.10
Package: amber-ce-bookworm
Version: 12.4.11
Section: misc
Priority: optional
Depends: bubblewrap,flatpak,zenity,policykit-1,gcc,systemd
Maintainer: shenmo <shenmo@spark-app.store>
Architecture: amd64
Architecture: loong64
Description: bwrap wrapper for install and running debs inside a bookworm container

View File

@@ -1,9 +1,9 @@
#!/bin/bash
export PACKAGE_NAME="$DPKG_MAINTSCRIPT_PACKAGE"
/opt/apps/$PACKAGE_NAME/files/bin/bookworm-init
/opt/apps/$PACKAGE_NAME/files/bin/ace-init
if [ "${PACKAGE_NAME}" = "cn.flamescion.bookworm-compatibility-mode" ];then
if [ "${PACKAGE_NAME}" = "amber-ce-bookworm" ];then
systemctl daemon-reload
systemctl enable ace-auto-upgrade
systemctl start ace-auto-upgrade
systemctl enable ace-bookworm-auto-upgrade
systemctl start ace-bookworm-auto-upgrade
fi

View File

@@ -1,9 +1,9 @@
#!/bin/bash
PACKAGE_NAME="$DPKG_MAINTSCRIPT_PACKAGE"
if [ "${PACKAGE_NAME}" = "cn.flamescion.bookworm-compatibility-mode" ];then
systemctl stop ace-auto-upgrade
systemctl disable ace-auto-upgrade
if [ "${PACKAGE_NAME}" = "amber-ce-bookworm" ];then
systemctl stop ace-bookworm-auto-upgrade
systemctl disable ace-bookworm-auto-upgrade
fi

9
src/DEBIAN/preinst Executable file
View File

@@ -0,0 +1,9 @@
#!/bin/bash
if [ "${PACKAGE_NAME}" = "amber-ce-bookworm" ];then
if [ -e /opt/apps/cn.flamescion.bookworm-compatibility-mode/files/bookworm-env ];then
if [ "$(arch)" != "loongarch64" ];then
mv /opt/apps/cn.flamescion.bookworm-compatibility-mode/files/bookworm-env /opt/apps/amber-ce-bookworm/files/bookworm-env
fi
fi
fi