chore(aur): v2raya-git

This commit is contained in:
mzz2017 committed 2020-12-19 22:55:30 +08:00
1 parent c30908f4da
commit 2a075b7d87
3 files changed
+7 -4

No files matched your search

+4 -1
View File
@@ -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") {
+1 -1
View File
@@ -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() {
+2 -2
View File
@@ -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")