cloudflare/cloudflared

Public

mirrored from https://github.com/cloudflare/cloudflaredAvailable

CodeCommitsIssuesPull requestsActionsInsightsSecurity
2026.2.0

Branches

Tags

  • No tags available.
0Branches0Tags
Go to file
Add file
Code

Clone

HTTPS

Download ZIP

.ci/scripts/package-windows.sh

25lines · modecode

1#!/bin/bash
2set -e -u -o pipefail
3
4python3 -m venv env
5. env/bin/activate
6pip install pynacl==1.4.0 pygithub==1.55
7
8VERSION=$(git describe --tags --always --match "[0-9][0-9][0-9][0-9].*.*")
9echo $VERSION
10
11export TARGET_OS=windows
12# This controls the directory the built artifacts go into
13export BUILT_ARTIFACT_DIR=artifacts/
14export FINAL_ARTIFACT_DIR=artifacts/
15mkdir -p $BUILT_ARTIFACT_DIR
16mkdir -p $FINAL_ARTIFACT_DIR
17windowsArchs=("amd64" "386")
18for arch in ${windowsArchs[@]}; do
19 export TARGET_ARCH=$arch
20 # Copy .exe from artifacts directory
21 cp $BUILT_ARTIFACT_DIR/cloudflared-windows-$arch.exe ./cloudflared.exe
22 make cloudflared-msi
23 # Copy msi into final directory
24 mv cloudflared-$VERSION-$arch.msi $FINAL_ARTIFACT_DIR/cloudflared-windows-$arch.msi
25done
26