mirror of
https://github.com/v2rayA/v2rayA.git
synced 2026-11-20 23:02:25 +03:00
Squashed from: - bc2e2215 Remove all Sing-Tun related code, frontend and build tags - 51c11701 Add TinyTun support for TUN-based transparent proxy - d203a9e9 Add TinyTun auto_route toggle and custom route script dialog - 4c67a319 Improve UI consistency and add tinytun build tag - 6e411be6 use TinyTun instead of SIng-Tun Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: Markson Hon <50002150+MarksonHon@users.noreply.github.com>
16 lines
698 B
Bash
Executable File
16 lines
698 B
Bash
Executable File
#!/bin/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
|
|
cd "$CurrentDir"/service && CGO_ENABLED=0 go build -tags "tinytun" -ldflags "-X github.com/v2rayA/v2rayA/conf.Version=$version -s -w" -o "$CurrentDir"/v2raya |