From 62c14cc9805d2972e5d1611cdd02436f18fc432b Mon Sep 17 00:00:00 2001 From: mzz2017 <2017@duck.com> Date: Wed, 19 Jun 2024 22:22:57 +0800 Subject: [PATCH] chore: try to fix yarn engine version problem --- build.sh | 2 +- install/aur/v2raya/PKGBUILD | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/build.sh b/build.sh index a27f7ec9..805db401 100755 --- a/build.sh +++ b/build.sh @@ -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 \ No newline at end of file diff --git a/install/aur/v2raya/PKGBUILD b/install/aur/v2raya/PKGBUILD index e2ef3a8d..c0c8065c 100644 --- a/install/aur/v2raya/PKGBUILD +++ b/install/aur/v2raya/PKGBUILD @@ -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