imporove platform detection
This commit is contained in:
parent
893afd4d98
commit
e8f35ee392
1 changed files with 9 additions and 5 deletions
|
|
@ -21,11 +21,11 @@ build_binary_package <- function(package_name, tag = NULL, codename = NULL,
|
|||
|
||||
if (is.null(platform)) {
|
||||
platform <- switch(codename,
|
||||
"jammy" = "ubuntu",
|
||||
"noble" = "ubuntu",
|
||||
"rhel9" = "redhat",
|
||||
"rhel8" = "redhat",
|
||||
"alpine" = "alpine"
|
||||
"jammy" = "ubuntu-2204",
|
||||
"noble" = "ubuntu-2404",
|
||||
"rhel9" = "redhat-9",
|
||||
"rhel8" = "redhat-8",
|
||||
"alpine" = "alpine-320"
|
||||
)
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue