TUN-8072: Add script to download cloudflare go for Mac build agents

This commit is contained in:
chungthuang 2023-12-17 16:01:01 +00:00 committed by Chung-Ting Huang
parent 652df22831
commit 86b50eda15
2 changed files with 13 additions and 2 deletions

View File

@ -143,7 +143,7 @@ if [[ ! -z "$CODE_SIGN_NAME" ]]; then
codesign -s "${CODE_SIGN_NAME}" -f -v --timestamp --options runtime ${BINARY_NAME}
# notarize the binary
# TODO: https://jira.cfdata.org/browse/TUN-5789
# TODO: TUN-5789
fi
# creating build directory
@ -169,7 +169,7 @@ if [[ ! -z "$PKG_SIGN_NAME" ]]; then
${PKGNAME}
# notarize the package
# TODO: https://jira.cfdata.org/browse/TUN-5789
# TODO: TUN-5789
else
pkgbuild --identifier com.cloudflare.${PRODUCT} \
--version ${VERSION} \

11
.teamcity/mac/install-cloudflare-go.sh vendored Executable file
View File

@ -0,0 +1,11 @@
cd /tmp/
git clone -q https://github.com/cloudflare/go
cd go/src
# https://github.com/cloudflare/go/tree/34129e47042e214121b6bbff0ded4712debed18e is version go1.21.5-devel-cf
git checkout -q 34129e47042e214121b6bbff0ded4712debed18e
./make.bash
export PATH="/tmp/go/bin:$PATH"
go version
which go
go env