From 3874142a821552f4e9b3b583b13b2026ed140d7a Mon Sep 17 00:00:00 2001 From: Wildan M Date: Mon, 24 Nov 2025 21:30:09 -0800 Subject: [PATCH] Add installations to website recipe --- recipes/web/website/recipe.toml | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/recipes/web/website/recipe.toml b/recipes/web/website/recipe.toml index e9d240f1..5dc7f937 100644 --- a/recipes/web/website/recipe.toml +++ b/recipes/web/website/recipe.toml @@ -3,6 +3,20 @@ git = "https://gitlab.redox-os.org/redox-os/website" [build] template = "custom" script = """ +export PATH="$HOME/.local/bin:$HOME/.local/opt/node/bin:$PATH" +if ! command -v node &> /dev/null; then + echo "Installing Node via webi..." + curl -sS https://webi.sh/node | sh +fi +if ! command -v hugo &> /dev/null; then + echo "Installing Hugo via webi..." + curl -sS https://webi.sh/hugo | sh +fi +if ! command -v postcss &> /dev/null; then + echo "Installing PostCSS via npm..." + npm install -g postcss-cli +fi + rsync -a "${COOKBOOK_SOURCE}/" ./ ./hugo.sh mkdir -pv "${COOKBOOK_STAGE}"/usr/share/website