Skip to content

Commit f0403a6

Browse files
authored
Refine scripts (v2fly#279)
1 parent ba99e32 commit f0403a6

7 files changed

+11
-11
lines changed

release/bleedingrelease.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/bin/bash
1+
#!/usr/bin/env bash
22

33
RELBODY="https://github.com/v2fly/v2ray-core/commit/${RELEASE_SHA}"
44
JSON_DATA=$(echo "{}" | jq -c ".tag_name=\"${RELEASE_TAG}\"")

release/install-release.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/bin/bash
1+
#!/usr/bin/env bash
22

33
# This file is accessible as https://install.direct/go.sh
44
# Original source is located at github.com/v2fly/v2ray-core/release/install-release.sh

release/mutilate/removeVSign.sh

100644100755
+3-3
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
#!/bin/bash
1+
#!/usr/bin/env bash
22

3-
export VROOT=$( dirname "${BASH_SOURCE[0]}" )/../../
3+
export VROOT=$(dirname "${BASH_SOURCE[0]}")/../../
44

55
rm $VROOT/infra/control/verify.go
66

7-
sed -i '/VSign/d' $VROOT/go.mod
7+
sed -i '/VSign/d' $VROOT/go.mod

release/requestsign.sh

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/bin/bash
1+
#!/usr/bin/env bash
22

33
RELEASE_DATA=$(curl --data "version=${SIGN_VERSION}" --data "password=${SIGN_SERVICE_PASSWORD}" -X POST "${SIGN_SERIVCE_URL}" )
44
echo $RELEASE_DATA
@@ -25,4 +25,4 @@ function upload() {
2525
}
2626

2727
curl "https://raw.githubusercontent.com/v2fly/Release/master/v2fly/${SIGN_VERSION}.Release" > Release
28-
upload Release
28+
upload Release

release/requestsign_github.sh

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
#!/bin/bash
1+
#!/usr/bin/env bash
22

33
export SIGN_VERSION=$(cat $GITHUB_EVENT_PATH| jq -r ".release.tag_name")
44

55
echo $SIGN_VERSION
66

7-
$GITHUB_WORKSPACE/release/requestsign.sh
7+
$GITHUB_WORKSPACE/release/requestsign.sh

release/tagrelease.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/bin/bash
1+
#!/usr/bin/env bash
22

33
CONST_refs="refs"
44

release/user-package.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ build_v2() {
3333
local VERSIONTAG=$(git describe --abbrev=0 --tags)
3434
fi
3535

36-
LDFLAGS="-s -w -buildid= -X v2ray.com/core.codename=${CODENAME} -X v2ray.com/core.build=${BUILDNAME} -X v2ray.com/core.version=${VERSIONTAG}"
36+
LDFLAGS="-s -w -buildid= -X v2ray.codename=${CODENAME} -X v2ray.build=${BUILDNAME} -X v2ray.version=${VERSIONTAG}"
3737

3838
echo ">>> Compile v2ray ..."
3939
env CGO_ENABLED=0 go build -o "$TMP"/v2ray"${EXESUFFIX}" -ldflags "$LDFLAGS" ./main

0 commit comments

Comments
 (0)