mirror of
https://github.com/ivabus/pantry
synced 2025-06-08 08:20:32 +03:00
Set MACOSX_DEPLOYMENT_TARGET to 11
This commit is contained in:
parent
83360e127c
commit
d3042ca9dc
1 changed files with 6 additions and 1 deletions
|
@ -25,6 +25,7 @@ import hydrate from "prefab/hydrate.ts"
|
|||
import resolve from "prefab/resolve.ts"
|
||||
import { get_build_deps } from "./_lib.ts"
|
||||
import useFlags from "hooks/useFlags.ts"
|
||||
import usePlatform from "hooks/usePlatform.ts"
|
||||
|
||||
useFlags()
|
||||
|
||||
|
@ -93,7 +94,11 @@ async function b(pkg: Package) {
|
|||
|
||||
const deps = await pantry.getDeps(pkg)
|
||||
|
||||
const env = usePlatform().platform == 'darwin'
|
||||
? {MACOSX_DEPLOYMENT_TARGET: ['11.0']}
|
||||
: undefined
|
||||
|
||||
// Build and link
|
||||
const path = await build({ pkg, deps, prebuild })
|
||||
const path = await build({ pkg, deps, prebuild, env })
|
||||
await link({ path, pkg })
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue