2021-07-28 09:08:20 +00:00
|
|
|
export CGO_ENABLED=0
|
2021-07-22 15:36:49 +00:00
|
|
|
# This controls the directory the built artifacts go into
|
|
|
|
export ARTIFACT_DIR=built_artifacts/
|
|
|
|
mkdir -p $ARTIFACT_DIR
|
|
|
|
windowsArchs=("amd64" "386")
|
|
|
|
export TARGET_OS=windows
|
|
|
|
for arch in ${windowsArchs[@]}; do
|
|
|
|
export TARGET_ARCH=$arch
|
|
|
|
make cloudflared-msi
|
|
|
|
done
|
|
|
|
|
|
|
|
mv *.msi $ARTIFACT_DIR
|
|
|
|
|
2021-07-28 09:08:20 +00:00
|
|
|
export FIPS=true
|
2021-07-22 15:36:49 +00:00
|
|
|
linuxArchs=("amd64" "386" "arm")
|
|
|
|
export TARGET_OS=linux
|
|
|
|
for arch in ${linuxArchs[@]}; do
|
|
|
|
export TARGET_ARCH=$arch
|
|
|
|
make cloudflared-deb
|
|
|
|
make cloudflared-rpm
|
|
|
|
done
|
|
|
|
|
|
|
|
mv *.deb $ARTIFACT_DIR
|
|
|
|
mv *.rpm $ARTIFACT_DIR
|