Skip to content
Snippets Groups Projects
Commit 1070ccd6 authored by Ribbon's avatar Ribbon :speech_balloon:
Browse files

Update recipes

parent 5a3fcbde
No related branches found
No related tags found
No related merge requests found
......@@ -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
"""
......@@ -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
"""
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment