Skip to content

Commit 5ca7197

Browse files
committed
fix: fix setupBin with dnf
1 parent f42bca4 commit 5ca7197

File tree

5 files changed

+10
-4
lines changed

5 files changed

+10
-4
lines changed

dist/setup_cpp.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/setup_cpp.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/setup_cpp.mjs

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

dist/setup_cpp.mjs.map

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

src/utils/setup/setupBin.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ import { isGitHubCI } from "../env/isCI"
88
import { setupAptPack } from "./setupAptPack"
99
import { setupPacmanPack } from "./setupPacmanPack"
1010
import { isArch } from "../env/isArch"
11+
import { hasDnf } from "../env/hasDnf"
12+
import { setupDnfPack } from "./setupDnfPack"
1113

1214
/** A type that describes a package */
1315
export type PackageInfo = {
@@ -94,6 +96,10 @@ export async function setupBin(
9496
setupPacmanPack("unzip")
9597
setupPacmanPack("tar")
9698
setupPacmanPack("xz")
99+
} else if (hasDnf()) {
100+
setupDnfPack("unzip")
101+
setupDnfPack("tar")
102+
setupDnfPack("xz")
97103
} else {
98104
setupAptPack("unzip")
99105
setupAptPack("tar")

0 commit comments

Comments
 (0)