mirror of
https://github.com/cloudflare/cloudflared.git
synced 2025-07-28 08:59:58 +00:00

- remove unused targets in Makefile - order deps in cfsetup.yaml - only build cloudflared not all linux targets - rename stages to be more explicit - adjust build deps of build-linux-release - adjust build deps of build-linux-fips-release - rename github_release_pkgs_pre_cache to build_release_pre_cache - only build release release artifacts within build-linux-release - only build release release artifacts within build-linux-fips-release - remove github-release-macos - remove github-release-windows - adjust builddeps of test and test-fips - create builddeps anchor for component-test and use it in component-test-fips - remove wixl from build-linux-* - rename release-pkgs-linux to r2-linux-release - add github-release: artifacts uplooad and set release message - clean build directory before build - add step to package windows binaries - refactor windows script One of TeamCity changes is moving the artifacts to the built artifacts, hence, there is no need to cp files from artifacts to built_artifacts - create anchor for release builds - create anchor for tests stages - remove reprepro and createrepo as they are only called by release_pkgs.py
17 lines
579 B
Bash
Executable File
17 lines
579 B
Bash
Executable File
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
|
|
export ARTIFACT_DIR=built_artifacts/
|
|
mkdir -p $ARTIFACT_DIR
|
|
windowsArchs=("amd64" "386")
|
|
for arch in ${windowsArchs[@]}; do
|
|
export TARGET_ARCH=$arch
|
|
# Copy exe into final directory
|
|
cp $ARTIFACT_DIR/cloudflared-windows-$arch.exe ./cloudflared.exe
|
|
make cloudflared-msi
|
|
# Copy msi into final directory
|
|
mv cloudflared-$VERSION-$arch.msi $ARTIFACT_DIR/cloudflared-windows-$arch.msi
|
|
done
|