Skip to content

Commit 398af6a

Browse files
cdrubinclaude
authored andcommitted
Make generation of release files more explicit, especially for Linux. Use literal block option in YAML for consistency and specify directly the Linux distrubutions that are supported. (#26324)
1 parent 2b9ffd3 commit 398af6a

File tree

3 files changed

+34
-36
lines changed

3 files changed

+34
-36
lines changed

bin/fetch-warp-releases.js

Lines changed: 27 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -14,15 +14,19 @@ fs.writeFileSync(
1414
"utf-8",
1515
);
1616

17+
const linuxDistributions = ["Ubuntu", "Debian", "CentOS", "Fedora"];
18+
1719
const linesToRemove = [
1820
"For related Cloudflare for Teams documentation please see: https://developers.cloudflare.com/cloudflare-one/connections/connect-devices/warp",
1921
"For Zero Trust documentation please see: <https://developers.cloudflare.com/cloudflare-one/connections/connect-devices/warp>",
2022
"For related Consumer documentation please see: https://developers.cloudflare.com/warp-client/",
2123
"For Consumer documentation please see: <https://developers.cloudflare.com/warp-client/>",
2224
];
2325

24-
for (const { platform } of platforms) {
25-
const isLinux = platform !== "windows" && platform !== "macos";
26+
for (const { platform, display_name } of platforms) {
27+
const isLinux = linuxDistributions.some((dist) =>
28+
display_name.includes(dist),
29+
);
2630

2731
for (const track of ["ga", "beta"]) {
2832
fetch(`${BASE_URL}/update/json/${platform}/${track}`)
@@ -63,9 +67,17 @@ for (const { platform } of platforms) {
6367
);
6468

6569
existingFile.linuxPlatforms[platform] = item.packageSize;
70+
} else {
71+
console.log(
72+
`${platform} already exists in Linux ${track} ${item.version}.`,
73+
);
6674
}
6775

68-
fs.writeFileSync(path, YAML.stringify(existingFile), "utf-8");
76+
fs.writeFileSync(
77+
path,
78+
YAML.stringify(existingFile, { blockQuote: "literal" }),
79+
"utf-8",
80+
);
6981
} else {
7082
console.log(
7183
`${platform} ${track} ${item.version} already exists.`,
@@ -75,7 +87,7 @@ for (const { platform } of platforms) {
7587
return;
7688
}
7789

78-
console.log(`Saving ${track} ${item.version}.`);
90+
console.log(`Saving ${platform} ${track} ${item.version}.`);
7991

8092
let markdown = item.releaseNotes;
8193

@@ -103,14 +115,17 @@ for (const { platform } of platforms) {
103115

104116
fs.writeFileSync(
105117
path,
106-
YAML.stringify({
107-
...item,
108-
releaseNotes,
109-
platformName,
110-
linuxPlatforms: isLinux
111-
? { [platform]: item.packageSize }
112-
: undefined,
113-
}),
118+
YAML.stringify(
119+
{
120+
...item,
121+
releaseNotes,
122+
platformName,
123+
linuxPlatforms: isLinux
124+
? { [platform]: item.packageSize }
125+
: undefined,
126+
},
127+
{ blockQuote: "literal" },
128+
),
114129
"utf-8",
115130
);
116131
});

src/content/warp-releases/linux/beta/2025.5.828.1.yaml

Lines changed: 7 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,12 @@
1-
releaseNotes: >-
1+
releaseNotes: |-
22
**Changes and improvements**
3+
This release contains improvements and new exciting features, including post-quantum cryptography. By tunnelling your corporate network traffic over Cloudflare, you can now gain the immediate protection of post-quantum cryptography without needing to upgrade any of your individual corporate applications or systems.
34
4-
This release contains improvements and new exciting features, including
5-
post-quantum cryptography. By tunnelling your corporate network traffic over
6-
Cloudflare, you can now gain the immediate protection of post-quantum
7-
cryptography without needing to upgrade any of your individual corporate
8-
applications or systems.
9-
10-
11-
- Fixed a device registration issue causing WARP connection failures when
12-
changing networks.
13-
14-
- Captive portal improvements including showing connectivity status in the
15-
client and sending system notifications for captive portal sign in
16-
17-
- The WARP client now applies post-quantum cryptography end-to-end on enabled
18-
devices accessing resources behind a Cloudflare Tunnel. This feature can be
19-
enabled by MDM.
20-
21-
- Improvement to gracefully handle changes made by MDM while WARP is not
22-
running.
23-
24-
- Fixed an issue affecting split tunnel include mode, where traffic outside
25-
the tunnel was blocked when switching between Wifi and ethernet networks.
5+
- Fixed a device registration issue causing WARP connection failures when changing networks.
6+
- Captive portal improvements including showing connectivity status in the client and sending system notifications for captive portal sign in
7+
- The WARP client now applies post-quantum cryptography end-to-end on enabled devices accessing resources behind a Cloudflare Tunnel. This feature can be enabled by MDM.
8+
- Improvement to gracefully handle changes made by MDM while WARP is not running.
9+
- Fixed an issue affecting split tunnel include mode, where traffic outside the tunnel was blocked when switching between Wifi and ethernet networks.
2610
version: 2025.5.828.1
2711
releaseDate: 2025-06-12T22:36:30.420Z
2812
packageURL: https://downloads.cloudflareclient.com/v1/download/fedora35-arm/version/2025.5.828.1

src/content/warp-releases/linux/ga/2025.5.893.0.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ releaseNotes: |-
1414
1515
**Known issues**
1616
- Devices using WARP client 2025.4.929.0 and up may experience Local Domain Fallback failures if a fallback server has not been configured. To configure a fallback server, refer to [Route traffic to fallback server](/cloudflare-one/team-and-resources/devices/warp/configure-warp/route-traffic/local-domains/#route-traffic-to-fallback-server).
17-
1817
version: 2025.5.893.0
1918
releaseDate: 2025-06-30T19:44:34.251Z
2019
packageURL: https://downloads.cloudflareclient.com/v1/download/noble-intel/version/2025.5.893.0

0 commit comments

Comments
 (0)