cloudflare/cloudflared

Public

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

CodeCommitsIssuesPull requestsActionsInsightsSecurity
2026.1.0

Branches

Tags

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

Clone

HTTPS

Download ZIP

.ci/scripts/package-windows.sh

23lines · modecode

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