mirror of
https://gitlab.redox-os.org/redox-os/redox.git
synced 2026-06-28 23:58:42 +08:00
18 lines
503 B
TOML
18 lines
503 B
TOML
#TODO Bash error with the "--build-binary" Cargo flag
|
|
[source]
|
|
git = "https://github.com/omnibor/omnibor-rs"
|
|
[build]
|
|
template = "custom"
|
|
script = """
|
|
binary=omnibor
|
|
"${COOKBOOK_CARGO}" build \
|
|
--manifest-path "${COOKBOOK_SOURCE}/Cargo.toml" \
|
|
--bin "${binary}" \
|
|
--release
|
|
--build-binary
|
|
mkdir -pv "${COOKBOOK_STAGE}/usr/bin"
|
|
cp -v \
|
|
"target/${TARGET}/release/${binary}" \
|
|
"${COOKBOOK_STAGE}/usr/bin/${binary}"
|
|
"""
|