From 636b5f8a7dcb190a8cc3dbf15294abb6284534ad Mon Sep 17 00:00:00 2001 From: Cappy Ishihara Date: Mon, 26 Dec 2022 18:41:24 +0700 Subject: [PATCH] added transaction scripts --- .../appimagelauncher/appimagelauncher.spec | 32 +++++++++++++++++++ 1 file changed, 32 insertions(+) diff --git a/anda/tools/appimagelauncher/appimagelauncher.spec b/anda/tools/appimagelauncher/appimagelauncher.spec index 199eacf5de..21ebfa5626 100644 --- a/anda/tools/appimagelauncher/appimagelauncher.spec +++ b/anda/tools/appimagelauncher/appimagelauncher.spec @@ -57,6 +57,38 @@ popd %cmake_install +%post +echo "Installing AppImageLauncher as interpreter for AppImages" +# as there's no _real_ package that we could use as a dependency to take care of the kernel module, +# we need to make sure that the kernel module is loaded manually +modprobe -v binfmt_misc + +(set -x; systemctl restart systemd-binfmt) + + +%postun + +echo "Removing AppImageLauncher as interpreter for AppImages" +(set -x; systemctl restart systemd-binfmt) + +update_notifier="/usr/share/update-notifier/notify-reboot-required" +if [ -x "$update_notifier" ]; then + "$update_notifier" +fi + +cat <