Fix the mousefood recipe and update a TODO

This commit is contained in:
Ribbon 2025-05-29 11:47:53 -03:00
parent cecc4641da
commit b22a489f4b
2 changed files with 14 additions and 2 deletions

View File

@ -1,4 +1,4 @@
#TODO not compiled or tested
#TODO compiled but not tested
[source]
git = "https://github.com/baad-c0de/mage-core"
[build]

View File

@ -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
"""