mirror of
https://github.com/ivabus/pantry
synced 2024-09-20 08:40:50 +03:00
parent
d9be5a35f9
commit
b814c21be3
|
@ -84,6 +84,8 @@ async function __build(pkg: Package): Promise<BuildResult> {
|
|||
const bld = src ?? Path.mktmp({ prefix: pkg.project }).join("wd").mkdir()
|
||||
const sh = await pantry.getScript(pkg, 'build', resolved)
|
||||
|
||||
const brewkit = new URL(import.meta.url).path().parent().parent().join("brewkit")
|
||||
|
||||
const cmd = bld.parent().join("build.sh").write({ force: true, text: undent`
|
||||
#!/bin/bash
|
||||
|
||||
|
@ -95,8 +97,7 @@ async function __build(pkg: Package): Promise<BuildResult> {
|
|||
export SRCROOT="${bld}"
|
||||
${expand(env)}
|
||||
|
||||
${/*FIXME hardcoded paths*/ ''}
|
||||
export PATH=/opt/tea.xyz/var/pantry/scripts/brewkit:"$PATH"
|
||||
export PATH=${brewkit}:"$PATH"
|
||||
|
||||
${sh}
|
||||
`
|
||||
|
|
Loading…
Reference in a new issue