Skip to content
Snippets Groups Projects
recipe.toml 488 B
Newer Older
#TODO not compiled or tested
Ribbon's avatar
Ribbon committed
[source]
git = "https://github.com/w-henderson/Humphrey"
[build]
template = "custom"
script = """
binary=humphrey_server
Ribbon's avatar
Ribbon committed
"${COOKBOOK_CARGO}" build \
            --manifest-path "${COOKBOOK_SOURCE}/Cargo.toml" \
            --bin "${binary}" \
Ribbon's avatar
Ribbon committed
            --release
            --all-features
        mkdir -pv "${COOKBOOK_STAGE}/usr/bin"
Ribbon's avatar
Ribbon committed
        cp -v \
            "target/${TARGET}/release/${binary}" \
            "${COOKBOOK_STAGE}/usr/bin/${binary}"
Ribbon's avatar
Ribbon committed
"""