diff --git a/recipe.json b/recipe.json index f3c334f..cc2e0c2 100644 --- a/recipe.json +++ b/recipe.json @@ -118,6 +118,31 @@ } ] }, + "vm": { + "template": "yes-no", + "display-conditions": [ + "grep 'hypervisor' /proc/cpuinfo" + ], + "icon": "application-x-appliance-symbolic", + "title": "Open VM Tools", + "description": "Choose whether to install Open VM Tools for the virtual machine.", + "buttons": { + "yes": "Yes, install", + "no": "Skip", + "info": { + "type": "text", + "title": "About Open VM Tools", + "text": "Open VM Tools can be used in GNOME Boxes." + } + }, + "final": [ + { + "if": "vm", + "type": "command", + "commands": ["sudo apx --sys install -y open-vm-tools"] + } + ] + }, "extra": { "template": "preferences", "icon": "vanilla-puzzle-piece-symbolic",