From 1070ccd6efccea9e145f7202e0b7ffaf6a105d42 Mon Sep 17 00:00:00 2001 From: Ribbon Date: Wed, 4 Dec 2024 08:33:28 +0000 Subject: [PATCH] Update recipes --- recipes/wip/demos/firework-rs/recipe.toml | 10 +++++++++- recipes/wip/demos/fonterator/recipe.toml | 15 ++++++++++++++- 2 files changed, 23 insertions(+), 2 deletions(-) diff --git a/recipes/wip/demos/firework-rs/recipe.toml b/recipes/wip/demos/firework-rs/recipe.toml index 09d6ed281..f1bd17a6b 100644 --- a/recipes/wip/demos/firework-rs/recipe.toml +++ b/recipes/wip/demos/firework-rs/recipe.toml @@ -4,6 +4,14 @@ git = "https://github.com/Wayoung7/firework-rs" [build] template = "custom" script = """ -cookbook_cargo_packages firework-rs +package=firework-rs +"${COOKBOOK_CARGO}" build \ + --manifest-path "${COOKBOOK_SOURCE}/Cargo.toml" \ + --package "${package}" \ + --release + mkdir -pv "${COOKBOOK_STAGE}/usr/bin" + cp -v \ + "target/${TARGET}/release/${package}" \ + "${COOKBOOK_STAGE}/usr/bin/${package}" cookbook_cargo_examples fountain heart vortex """ diff --git a/recipes/wip/demos/fonterator/recipe.toml b/recipes/wip/demos/fonterator/recipe.toml index f204ae617..ae463a62e 100644 --- a/recipes/wip/demos/fonterator/recipe.toml +++ b/recipes/wip/demos/fonterator/recipe.toml @@ -4,5 +4,18 @@ git = "https://github.com/ardaku/fonterator" [build] template = "custom" script = """ -cookbook_cargo_examples main directions image raster +recipe="$(basename "${COOKBOOK_RECIPE}")" +examples="main directions image raster" +for example in "${examples}" + do + "${COOKBOOK_CARGO}" build \ + --manifest-path "${COOKBOOK_SOURCE}/${PACKAGE_PATH}/Cargo.toml" \ + --example "${example}" \ + --release \ + --features "monospace-font" + mkdir -pv "${COOKBOOK_STAGE}/usr/bin" + cp -v \ + "target/${TARGET}/${build_type}/examples/${example}" \ + "${COOKBOOK_STAGE}/usr/bin/${recipe}_${example}" + done """