From e94fa709232a5f9dddc14329ded750079554f93b Mon Sep 17 00:00:00 2001 From: Jeremy Soller <jackpot51@gmail.com> Date: Tue, 15 Nov 2022 15:51:37 -0700 Subject: [PATCH] Add freedoom manifest and icons --- recipes/freedoom/recipe.sh | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/recipes/freedoom/recipe.sh b/recipes/freedoom/recipe.sh index f60d7b2f3..1abb02082 100644 --- a/recipes/freedoom/recipe.sh +++ b/recipes/freedoom/recipe.sh @@ -17,7 +17,7 @@ function recipe_clean { } function recipe_stage { - mkdir -pv "$1/games" "$1/share/games/doom" + mkdir -pv "$1/games" "$1/share/games/doom" "$1/ui/apps" "$1/ui/icons/apps" for file in ./*.wad do game="$(basename "$file" .wad)" @@ -29,6 +29,12 @@ function recipe_stage { echo "#!/bin/ion" > "$1$bin" echo "/games/prboom -geom 800x600 -vidmode 32 -iwad $wad" >> "$1$bin" chmod +x "$1$bin" + + echo "name=$game" | sed 's/freedoom/FreeDOOM /' > "$1/ui/apps/$game" + echo "binary=/games/$game" >> "$1/ui/apps/$game" + echo "icon=/ui/icons/apps/$game.png" >> "$1/ui/apps/$game" + + cp -v "$game.png" "$1/ui/icons/apps/$game.png" done skip=1 } -- GitLab