mirror of
				https://github.com/TeaOSLab/EdgeNode.git
				synced 2025-11-04 07:40:56 +08:00 
			
		
		
		
	优化编译脚本
This commit is contained in:
		@@ -121,6 +121,11 @@ function build() {
 | 
				
			|||||||
		env GOOS="${OS}" GOARCH="${ARCH}" CGO_ENABLED=1 go build -trimpath -tags $BUILD_TAG -o "$DIST"/bin/${NAME} -ldflags="-s -w" "$ROOT"/../cmd/edge-node/main.go
 | 
							env GOOS="${OS}" GOARCH="${ARCH}" CGO_ENABLED=1 go build -trimpath -tags $BUILD_TAG -o "$DIST"/bin/${NAME} -ldflags="-s -w" "$ROOT"/../cmd/edge-node/main.go
 | 
				
			||||||
	fi
 | 
						fi
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
						if [ ! -f "${DIST}/bin/${NAME}" ]; then
 | 
				
			||||||
 | 
							echo "build failed!"
 | 
				
			||||||
 | 
							exit
 | 
				
			||||||
 | 
						fi
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	# delete hidden files
 | 
						# delete hidden files
 | 
				
			||||||
	find "$DIST" -name ".DS_Store" -delete
 | 
						find "$DIST" -name ".DS_Store" -delete
 | 
				
			||||||
	find "$DIST" -name ".gitignore" -delete
 | 
						find "$DIST" -name ".gitignore" -delete
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user