chore: try to fix yarn engine version problem

This commit is contained in:
mzz2017 2024-06-19 22:22:57 +08:00
parent d82960651a
commit 62c14cc980
2 changed files with 3 additions and 3 deletions

View File

@ -12,5 +12,5 @@ else
version="unstable"
fi
# https://github.com/webpack/webpack/issues/14532#issuecomment-947012063
cd "$CurrentDir"/gui && yarn && OUTPUT_DIR="$CurrentDir"/service/server/router/web yarn build
cd "$CurrentDir"/gui && yarn --ignore-engines && OUTPUT_DIR="$CurrentDir"/service/server/router/web yarn --ignore-engines build
cd "$CurrentDir"/service && CGO_ENABLED=0 go build -tags "with_gvisor" -ldflags "-X github.com/v2rayA/v2rayA/conf.Version=$version -s -w" -o "$CurrentDir"/v2raya

View File

@ -16,8 +16,8 @@ backup=("etc/default/v2raya")
build() {
cd "$srcdir/v2rayA-$pkgver/gui"
yarn --check-files
OUTPUT_DIR="$srcdir/v2rayA-$pkgver/service/server/router/web" yarn build
yarn --check-files --ignore-engines
OUTPUT_DIR="$srcdir/v2rayA-$pkgver/service/server/router/web" yarn --ignore-engines build
cd "$srcdir/v2rayA-$pkgver/service"
export GO111MODULE=on