fix: fix vcpkg deps on alpine

This commit is contained in:
Amin Yahyaabadi 2025-03-23 02:54:16 -07:00
parent e6bd753a7f
commit d04bcbf1dc
5 changed files with 13 additions and 4 deletions

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -5,6 +5,7 @@ import { addEnv, addPath } from "envosman"
import { execa } from "execa"
import { pathExists } from "path-exists"
import { addShExt, addShRelativePrefix } from "patha"
import { hasApk, installApkPackage } from "setup-alpine"
import { installAptPack } from "setup-apt"
import which from "which"
import { rcOptions } from "../cli-options.js"
@ -54,6 +55,14 @@ export async function setupVcpkg(version: string, setupDir: string, arch: string
{ name: "tar" },
{ name: "pkg-config" },
])
} else if (await hasApk()) {
await installApkPackage([
{ name: "curl" },
{ name: "zip" },
{ name: "unzip" },
{ name: "tar" },
{ name: "pkg-config" },
])
}
}