fix: fix setupBin with dnf

This commit is contained in:
Amin Yahyaabadi 2022-07-10 17:31:31 -07:00
parent f42bca4b35
commit 5ca7197035
5 changed files with 10 additions and 4 deletions

2
dist/setup_cpp.js vendored

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

2
dist/setup_cpp.mjs vendored

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -8,6 +8,8 @@ import { isGitHubCI } from "../env/isCI"
import { setupAptPack } from "./setupAptPack" import { setupAptPack } from "./setupAptPack"
import { setupPacmanPack } from "./setupPacmanPack" import { setupPacmanPack } from "./setupPacmanPack"
import { isArch } from "../env/isArch" import { isArch } from "../env/isArch"
import { hasDnf } from "../env/hasDnf"
import { setupDnfPack } from "./setupDnfPack"
/** A type that describes a package */ /** A type that describes a package */
export type PackageInfo = { export type PackageInfo = {
@ -94,6 +96,10 @@ export async function setupBin(
setupPacmanPack("unzip") setupPacmanPack("unzip")
setupPacmanPack("tar") setupPacmanPack("tar")
setupPacmanPack("xz") setupPacmanPack("xz")
} else if (hasDnf()) {
setupDnfPack("unzip")
setupDnfPack("tar")
setupDnfPack("xz")
} else { } else {
setupAptPack("unzip") setupAptPack("unzip")
setupAptPack("tar") setupAptPack("tar")