2022-09-15 21:26:02 +00:00
|
|
|
VERSION=$(git describe --tags --always --match "[0-9][0-9][0-9][0-9].*.*")
|
|
|
|
echo $VERSION
|
|
|
|
|
|
|
|
export TARGET_OS=windows
|
|
|
|
# This controls the directory the built artifacts go into
|
2024-08-05 09:44:33 +00:00
|
|
|
export BUILT_ARTIFACT_DIR=built_artifacts/
|
|
|
|
export FINAL_ARTIFACT_DIR=artifacts/
|
|
|
|
mkdir -p $BUILT_ARTIFACT_DIR
|
|
|
|
mkdir -p $FINAL_ARTIFACT_DIR
|
2022-09-15 21:26:02 +00:00
|
|
|
windowsArchs=("amd64" "386")
|
|
|
|
for arch in ${windowsArchs[@]}; do
|
|
|
|
export TARGET_ARCH=$arch
|
|
|
|
# Copy exe into final directory
|
2024-08-05 09:44:33 +00:00
|
|
|
cp $BUILT_ARTIFACT_DIR/cloudflared-windows-$arch.exe ./cloudflared.exe
|
2022-09-15 21:26:02 +00:00
|
|
|
make cloudflared-msi
|
|
|
|
# Copy msi into final directory
|
2024-08-05 09:44:33 +00:00
|
|
|
mv cloudflared-$VERSION-$arch.msi $FINAL_ARTIFACT_DIR/cloudflared-windows-$arch.msi
|
2024-08-05 13:27:56 +00:00
|
|
|
cp $BUILT_ARTIFACT_DIR/cloudflared-windows-$arch.exe $FINAL_ARTIFACT_DIR/cloudflared-windows-$arch.exe
|
2024-07-05 18:39:22 +00:00
|
|
|
done
|