mirror of
https://github.com/v2rayA/v2rayA.git
synced 2026-11-20 23:02:25 +03:00
- Update core/xray submodule from v1.260327.0 (v26.3.27) to v26.6.1 - Remove deprecated AllowInsecure field from all protocol structs - Add PinnedPeerCertSha256 and VerifyPeerCertByName fields (service layer) - Update ngui (Nuxt) frontend with text inputs for new fields - Update gui (Vue 2) frontend with text inputs for new fields - Keep existing PinnedSHA256 for juicity (no duplicate) - Backward compatible: old allowInsecure params silently ignored - Run go mod tidy to update dependencies
20 lines
916 B
Bash
Executable File
20 lines
916 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
set -ex
|
|
CurrentDir="$(pwd)"
|
|
|
|
if [ -d "$CurrentDir/.git" ]; then
|
|
date=$(git -C "$CurrentDir" log -1 --format="%cd" --date=short | sed s/-//g)
|
|
count=$(git -C "$CurrentDir" rev-list --count HEAD)
|
|
commit=$(git -C "$CurrentDir" rev-parse --short HEAD)
|
|
version="unstable-$date.r${count}.$commit"
|
|
else
|
|
version="unstable"
|
|
fi
|
|
# https://github.com/webpack/webpack/issues/14532#issuecomment-947012063
|
|
cd "$CurrentDir"/gui && yarn --ignore-engines && OUTPUT_DIR="$CurrentDir"/service/server/router/web yarn --ignore-engines build
|
|
# Build v2raya-core (merged xray-core + custom protocols)
|
|
cd "$CurrentDir"/core && CGO_ENABLED=0 go build -trimpath -ldflags "-X main.Version=$version -s -w" -o "$CurrentDir"/v2raya_core ./main
|
|
|
|
cd "$CurrentDir"/service && CGO_ENABLED=0 go build -trimpath -tags "with_gvisor" -ldflags "-X github.com/v2rayA/v2rayA/conf.Version=$version -s -w" -o "$CurrentDir"/v2raya
|