package-windows.sh 777 B

1234567891011121314151617181920
  1. VERSION=$(git describe --tags --always --match "[0-9][0-9][0-9][0-9].*.*")
  2. echo $VERSION
  3. export TARGET_OS=windows
  4. # This controls the directory the built artifacts go into
  5. export BUILT_ARTIFACT_DIR=built_artifacts/
  6. export FINAL_ARTIFACT_DIR=artifacts/
  7. mkdir -p $BUILT_ARTIFACT_DIR
  8. mkdir -p $FINAL_ARTIFACT_DIR
  9. windowsArchs=("amd64" "386")
  10. for arch in ${windowsArchs[@]}; do
  11. export TARGET_ARCH=$arch
  12. # Copy exe into final directory
  13. cp $BUILT_ARTIFACT_DIR/cloudflared-windows-$arch.exe ./cloudflared.exe
  14. make cloudflared-msi
  15. # Copy msi into final directory
  16. mv cloudflared-$VERSION-$arch.msi $FINAL_ARTIFACT_DIR/cloudflared-windows-$arch.msi
  17. cp $BUILT_ARTIFACT_DIR/cloudflared-windows-$arch.exe $FINAL_ARTIFACT_DIR/cloudflared-windows-$arch.exe
  18. done