Support cargo-deb

This commit is contained in:
Taiki Endo
2026-04-05 17:16:30 +09:00
parent 7a562dfa95
commit 55a981690b
6 changed files with 73 additions and 0 deletions

View File

@@ -8,6 +8,7 @@ cd -- "$(dirname -- "$0")"/../..
# They don't provide prebuilt binaries for musl or old glibc host.
# version `GLIBC_2.35' not found
glibc_pre_2_39_incompat=(
cargo-deb
zizmor
)
glibc_pre_2_35_incompat=(
@@ -116,6 +117,9 @@ case "$(uname -s)" in
if [[ "${runner}" == "ubuntu:14.04" ]]; then
incompat_tools+=(cyclonedx)
fi
if [[ "${runner}" == "almalinux:10"* ]]; then
incompat_tools+=(cargo-deb) # no dpkg in package manager
fi
;;
Darwin) host_os=macos ;;
MINGW* | MSYS* | CYGWIN* | Windows_NT) host_os=windows ;;

View File

@@ -0,0 +1,12 @@
{
"repository": "https://github.com/kornelski/cargo-deb",
"license_markdown": "[MIT](https://github.com/kornelski/cargo-deb/blob/main/LICENSE)",
"tag_prefix": "v",
"rust_crate": "${package}",
"platform": {
"x86_64_linux_gnu": {
"asset_name": "${package}_${version}-1_amd64.deb",
"bin": "usr/bin/${package}"
}
}
}