From b22a489f4bd0d8325355881af24229cb3eaf6be7 Mon Sep 17 00:00:00 2001 From: Ribbon Date: Thu, 29 May 2025 11:47:53 -0300 Subject: [PATCH] Fix the mousefood recipe and update a TODO --- recipes/wip/demos/mage/recipe.toml | 2 +- recipes/wip/demos/mousefood/recipe.toml | 14 +++++++++++++- 2 files changed, 14 insertions(+), 2 deletions(-) diff --git a/recipes/wip/demos/mage/recipe.toml b/recipes/wip/demos/mage/recipe.toml index a9754c6e5..9a14f3e90 100644 --- a/recipes/wip/demos/mage/recipe.toml +++ b/recipes/wip/demos/mage/recipe.toml @@ -1,4 +1,4 @@ -#TODO not compiled or tested +#TODO compiled but not tested [source] git = "https://github.com/baad-c0de/mage-core" [build] diff --git a/recipes/wip/demos/mousefood/recipe.toml b/recipes/wip/demos/mousefood/recipe.toml index c323b674f..94ee5dfd9 100644 --- a/recipes/wip/demos/mousefood/recipe.toml +++ b/recipes/wip/demos/mousefood/recipe.toml @@ -4,5 +4,17 @@ git = "https://github.com/j-g00da/mousefood" [build] template = "custom" script = """ -cookbook_cargo_examples simulator +recipe="$(basename "${COOKBOOK_RECIPE}")" + for example in simulator + do + "${COOKBOOK_CARGO}" build \ + --manifest-path "${COOKBOOK_SOURCE}/${PACKAGE_PATH}/Cargo.toml" \ + --example "${example}" \ + --release \ + --simulator + mkdir -pv "${COOKBOOK_STAGE}/usr/bin" + cp -v \ + "target/${TARGET}/${build_type}/examples/${example}" \ + "${COOKBOOK_STAGE}/usr/bin/${recipe}_${example}" + done """