File tree Expand file tree Collapse file tree 3 files changed +9
-7
lines changed Expand file tree Collapse file tree 3 files changed +9
-7
lines changed Original file line number Diff line number Diff line change @@ -3,14 +3,16 @@ echo $VERSION
33
44export TARGET_OS=windows
55# This controls the directory the built artifacts go into
6- export ARTIFACT_DIR=built_artifacts/
7- mkdir -p $ARTIFACT_DIR
6+ export BUILT_ARTIFACT_DIR=built_artifacts/
7+ export FINAL_ARTIFACT_DIR=artifacts/
8+ mkdir -p $BUILT_ARTIFACT_DIR
9+ mkdir -p $FINAL_ARTIFACT_DIR
810windowsArchs=(" amd64" " 386" )
911for arch in ${windowsArchs[@]} ; do
1012 export TARGET_ARCH=$arch
1113 # Copy exe into final directory
12- cp $ARTIFACT_DIR /cloudflared-windows-$arch .exe ./cloudflared.exe
14+ cp $BUILT_ARTIFACT_DIR /cloudflared-windows-$arch .exe ./cloudflared.exe
1315 make cloudflared-msi
1416 # Copy msi into final directory
15- mv cloudflared-$VERSION -$arch .msi $ARTIFACT_DIR /cloudflared-windows-$arch .msi
17+ mv cloudflared-$VERSION -$arch .msi $FINAL_ARTIFACT_DIR /cloudflared-windows-$arch .msi
1618done
Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ VERSION=$(git describe --tags --always --match "[0-9][0-9][0-9][0-9].*.*")
33echo $VERSION
44
55# This controls the directory the built artifacts go into
6- export ARTIFACT_DIR=built_artifacts /
6+ export ARTIFACT_DIR=artifacts /
77mkdir -p $ARTIFACT_DIR
88
99arch=(" amd64" )
@@ -23,4 +23,4 @@ make cloudflared-rpm
2323mv cloudflared-fips-$RPMVERSION -1.$RPMARCH .rpm $ARTIFACT_DIR /cloudflared-fips-linux-$RPMARCH .rpm
2424
2525# finally move the linux binary as well.
26- mv ./cloudflared $ARTIFACT_DIR /cloudflared-fips-linux-$arch
26+ mv ./cloudflared $ARTIFACT_DIR /cloudflared-fips-linux-$arch
Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ export GOEXPERIMENT=noboringcrypto
77export CGO_ENABLED=0
88
99# This controls the directory the built artifacts go into
10- export ARTIFACT_DIR=built_artifacts /
10+ export ARTIFACT_DIR=artifacts /
1111mkdir -p $ARTIFACT_DIR
1212
1313linuxArchs=(" 386" " amd64" " arm" " armhf" " arm64" )
You can’t perform that action at this time.
0 commit comments