From ea6daed9bc1f885ba0cbcd1a86f5aefbe26749a1 Mon Sep 17 00:00:00 2001 From: XargonWan Date: Sat, 30 Nov 2024 23:01:23 +0900 Subject: [PATCH] PORTMASTER: initializing config even to set Dracula color scheme --- config/portmaster/config.json | 9 +++++++++ functions/prepare_component.sh | 3 +++ 2 files changed, 12 insertions(+) create mode 100644 config/portmaster/config.json diff --git a/config/portmaster/config.json b/config/portmaster/config.json new file mode 100644 index 00000000..8b6241ef --- /dev/null +++ b/config/portmaster/config.json @@ -0,0 +1,9 @@ +{ + "change_channel": false, + "first-run": true, + "release_channel": "stable", + "show_experimental": false, + "theme": "default_theme", + "theme-scheme": "Dracula", + "version": 2 +} diff --git a/functions/prepare_component.sh b/functions/prepare_component.sh index 9d2e4ba1..6844dbab 100644 --- a/functions/prepare_component.sh +++ b/functions/prepare_component.sh @@ -889,6 +889,9 @@ prepare_component() { chmod +x "/var/data/PortMaster/PortMaster.sh" rm -f "$roms_folder/portmaster/PortMaster.sh" install -Dm755 "/var/data/PortMaster/PortMaster.sh" "$roms_folder/portmaster/PortMaster.sh" + create_dir "/var/data/PortMaster/config/" + cp "$config/portmaster/config.json" "/var/data/PortMaster/config/config.json" + fi if [[ "$component" =~ ^(ruffle|all)$ ]]; then