From 68802c2b28c22fbbce7636110ca101dd70d65bdc Mon Sep 17 00:00:00 2001 From: Muqtadir Date: Fri, 11 Nov 2022 18:05:38 +0530 Subject: [PATCH] add restricted-codecs in recipe and misc changes --- recipe.json | 27 +++++++++++++++++++++++++-- 1 file changed, 25 insertions(+), 2 deletions(-) diff --git a/recipe.json b/recipe.json index cc2e0c2..03144f6 100644 --- a/recipe.json +++ b/recipe.json @@ -127,7 +127,8 @@ "title": "Open VM Tools", "description": "Choose whether to install Open VM Tools for the virtual machine.", "buttons": { - "yes": "Yes, install", + "buttons": { + "yes": "Install", "no": "Skip", "info": { "type": "text", @@ -143,9 +144,31 @@ } ] }, + "codecs": { + "template": "yes-no", + "icon": "vanilla-puzzle-piece-symbolic", + "title": "Restricted Codecs", + "description": "Choose whether to install Restricted codecs and Fonts.", + "buttons": { + "yes": "Install", + "no": "Skip", + "info": { + "type": "text", + "title": "About Restricted Codecs", + "text": "Installs ubuntu-restricted-extras and ubuntu-restricted-addons." + } + }, + "final": [ + { + "if": "codecs", + "type": "command", + "commands": ["sudo apx --sys install -y ubuntu-restricted-addons ubuntu-restricted-extras"] + } + ] + }, "extra": { "template": "preferences", - "icon": "vanilla-puzzle-piece-symbolic", + "icon": "dialog-warning-symbolic", "title": "Extra Settings", "description": "The following are optional settings, leave them as they are if you don't know what they do.", "preferences": [