mirror of
https://github.com/v2rayA/v2rayA.git
synced 2026-11-20 23:02:25 +03:00
chore(aur): v2raya-git
This commit is contained in:
1 parent
c30908f4da
commit
2a075b7d87
3 files changed
+7
-4
No files matched your search
@@ -219,9 +219,12 @@ function isIntranet(url) {
|
||||
}
|
||||
|
||||
function isVersionGreaterEqual(va, vb) {
|
||||
if (va.toLowerCase() === "debug") {
|
||||
if (va === "debug" || va === "unstable") {
|
||||
return true;
|
||||
}
|
||||
if (vb === "debug" || vb === "unstable") {
|
||||
return false;
|
||||
}
|
||||
va = va.trim();
|
||||
vb = vb.trim();
|
||||
if (va.length > 0 && va[0] === "v") {
|
||||
|
||||
@@ -23,7 +23,7 @@ build() {
|
||||
cd "$srcdir/v2rayA-$pkgver/service"
|
||||
export GO111MODULE=on
|
||||
export GOPROXY=https://goproxy.io
|
||||
CGO_ENABLED=0 go build -ldflags '-X github.com/v2rayA/v2rayA/global.Version=$pkgver -s -w -extldflags "-static"' -o v2raya
|
||||
CGO_ENABLED=0 go build -ldflags '-X github.com/v2rayA/v2rayA/global.Version='$pkgver' -s -w -extldflags "-static"' -o v2raya
|
||||
}
|
||||
|
||||
package() {
|
||||
|
||||
@@ -49,10 +49,10 @@ func VersionMustGreaterEqual(v1, v2 string) (is bool) {
|
||||
|
||||
/* return if v1 is after v2 */
|
||||
func VersionGreaterEqual(v1, v2 string) (is bool, err error) {
|
||||
if v1 == "debug" {
|
||||
if v1 == "debug" || v1 == "unstable" {
|
||||
return true, nil
|
||||
}
|
||||
if v2 == "debug" {
|
||||
if v2 == "debug" || v2 == "unstable" {
|
||||
return false, nil
|
||||
}
|
||||
v1 = strings.TrimPrefix(v1, "v")
|
||||
|
||||
Reference in new issue
Block a user