autodetect platform
This commit is contained in:
parent
0daccc11dd
commit
36d95cf5d9
1 changed files with 10 additions and 0 deletions
|
|
@ -19,6 +19,16 @@ build_binary_package <- function(package_name, tag = NULL, codename = NULL,
|
|||
cli::cli_h2("Preparations ({.pkg {package_name}})")
|
||||
codename <- set_codename(codename)
|
||||
|
||||
if (is.null(platform)) {
|
||||
platform <- switch(codename,
|
||||
"jammy" = "ubuntu",
|
||||
"noble" = "ubuntu",
|
||||
"rhel9" = "redhat",
|
||||
"rhel8" = "redhat",
|
||||
"alpine" = "alpine"
|
||||
)
|
||||
}
|
||||
|
||||
if (debug) {
|
||||
cli::cli_alert_warning("DEBUG: codename {codename}.")
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue