mirror of
				https://github.com/v2fly/v2ray-core.git
				synced 2025-11-04 03:39:24 +00:00 
			
		
		
		
	Refine scripts (#279)
This commit is contained in:
		
							parent
							
								
									ba99e32b2d
								
							
						
					
					
						commit
						f0403a67a1
					
				@ -1,4 +1,4 @@
 | 
			
		||||
#!/bin/bash
 | 
			
		||||
#!/usr/bin/env bash
 | 
			
		||||
 | 
			
		||||
RELBODY="https://github.com/v2fly/v2ray-core/commit/${RELEASE_SHA}"
 | 
			
		||||
JSON_DATA=$(echo "{}" | jq -c ".tag_name=\"${RELEASE_TAG}\"")
 | 
			
		||||
 | 
			
		||||
@ -1,4 +1,4 @@
 | 
			
		||||
#!/bin/bash
 | 
			
		||||
#!/usr/bin/env bash
 | 
			
		||||
 | 
			
		||||
# This file is accessible as https://install.direct/go.sh
 | 
			
		||||
# Original source is located at github.com/v2fly/v2ray-core/release/install-release.sh
 | 
			
		||||
 | 
			
		||||
							
								
								
									
										4
									
								
								release/mutilate/removeVSign.sh
									
									
									
									
									
										
										
										Normal file → Executable file
									
								
							
							
						
						
									
										4
									
								
								release/mutilate/removeVSign.sh
									
									
									
									
									
										
										
										Normal file → Executable file
									
								
							@ -1,6 +1,6 @@
 | 
			
		||||
#!/bin/bash
 | 
			
		||||
#!/usr/bin/env bash
 | 
			
		||||
 | 
			
		||||
export VROOT=$( dirname "${BASH_SOURCE[0]}" )/../../
 | 
			
		||||
export VROOT=$(dirname "${BASH_SOURCE[0]}")/../../
 | 
			
		||||
 | 
			
		||||
rm $VROOT/infra/control/verify.go
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
@ -1,4 +1,4 @@
 | 
			
		||||
#!/bin/bash
 | 
			
		||||
#!/usr/bin/env bash
 | 
			
		||||
 | 
			
		||||
RELEASE_DATA=$(curl --data "version=${SIGN_VERSION}" --data "password=${SIGN_SERVICE_PASSWORD}" -X POST "${SIGN_SERIVCE_URL}" )
 | 
			
		||||
echo $RELEASE_DATA
 | 
			
		||||
 | 
			
		||||
@ -1,4 +1,4 @@
 | 
			
		||||
#!/bin/bash
 | 
			
		||||
#!/usr/bin/env bash
 | 
			
		||||
 | 
			
		||||
export SIGN_VERSION=$(cat $GITHUB_EVENT_PATH| jq -r ".release.tag_name")
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
@ -1,4 +1,4 @@
 | 
			
		||||
#!/bin/bash
 | 
			
		||||
#!/usr/bin/env bash
 | 
			
		||||
 | 
			
		||||
CONST_refs="refs"
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
@ -33,7 +33,7 @@ build_v2() {
 | 
			
		||||
		local VERSIONTAG=$(git describe --abbrev=0 --tags)
 | 
			
		||||
	fi
 | 
			
		||||
 | 
			
		||||
	LDFLAGS="-s -w -buildid= -X v2ray.com/core.codename=${CODENAME} -X v2ray.com/core.build=${BUILDNAME} -X v2ray.com/core.version=${VERSIONTAG}"
 | 
			
		||||
	LDFLAGS="-s -w -buildid= -X v2ray.codename=${CODENAME} -X v2ray.build=${BUILDNAME} -X v2ray.version=${VERSIONTAG}"
 | 
			
		||||
 | 
			
		||||
	echo ">>> Compile v2ray ..."
 | 
			
		||||
	env CGO_ENABLED=0 go build -o "$TMP"/v2ray"${EXESUFFIX}" -ldflags "$LDFLAGS" ./main
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user