Plugin manager added. No more hand editing the settings file to enable and disable plugins. Hopefully less breakage. Updates to the local build and clean files for installing test builds.

This commit is contained in:
Storm Dragon
2025-08-02 05:11:56 -04:00
parent cb20579625
commit 06894693b0
9 changed files with 472 additions and 4 deletions

View File

@ -57,15 +57,18 @@ uninstall_local() {
# Remove Python modules
rm -rf "${LOCAL_PREFIX}/lib/python"*/site-packages/cthulhu*
# Remove data files but preserve user settings
# Remove data files but preserve user settings and UI files
if [[ -d "${LOCAL_PREFIX}/share/cthulhu" ]]; then
# Backup user settings if they exist
# Backup user settings and UI files if they exist
if [[ -f "${LOCAL_PREFIX}/share/cthulhu/user-settings.conf" ]]; then
cp "${LOCAL_PREFIX}/share/cthulhu/user-settings.conf" /tmp/cthulhu-user-settings.backup
fi
if [[ -f "${LOCAL_PREFIX}/share/cthulhu/cthulhu-customizations.py" ]]; then
cp "${LOCAL_PREFIX}/share/cthulhu/cthulhu-customizations.py" /tmp/cthulhu-customizations.backup
fi
if [[ -d "${LOCAL_PREFIX}/share/cthulhu/ui" ]]; then
cp -r "${LOCAL_PREFIX}/share/cthulhu/ui" /tmp/cthulhu-ui.backup
fi
# Remove the directory
rm -rf "${LOCAL_PREFIX}/share/cthulhu"
@ -78,6 +81,9 @@ uninstall_local() {
if [[ -f /tmp/cthulhu-customizations.backup ]]; then
mv /tmp/cthulhu-customizations.backup "${LOCAL_PREFIX}/share/cthulhu/cthulhu-customizations.py"
fi
if [[ -d /tmp/cthulhu-ui.backup ]]; then
mv /tmp/cthulhu-ui.backup "${LOCAL_PREFIX}/share/cthulhu/ui"
fi
fi
# Remove docs