mirror of
https://github.com/v2rayA/v2rayA.git
synced 2024-11-25 16:34:19 +08:00
chore: try to fix yarn engine version problem
This commit is contained in:
parent
d82960651a
commit
62c14cc980
2
build.sh
2
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
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user