Skip to content

Commit ce5be64

Browse files
committed
Release: 2026.7.7.0
1 parent e4b561b commit ce5be64

3 files changed

Lines changed: 20 additions & 40 deletions

File tree

‎Website/scripts/fetch-release-data.mjs‎

Lines changed: 9 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,10 @@
33
// - prerelease.json : latest pre-release (version, date, downloads, checksums)
44
//
55
// Both files use the exact same shape and are built the same way — there is
6-
// nothing to bump by hand. The committed JSON files only act as an offline
7-
// fallback (last known values); every real build overwrites them with fresh data.
6+
// nothing to bump by hand. Every real build overwrites them with fresh data;
7+
// the committed JSON files are just the last known-good values checked into
8+
// git so the repo is never without one. If the fetch fails, the build fails
9+
// (see main() below) rather than silently deploying stale data.
810
//
911
// Why build-time instead of client-side:
1012
// - The GitHub API (api.github.com) supports CORS but is rate limited
@@ -162,22 +164,13 @@ async function main() {
162164
if (!res.ok) throw new Error(`HTTP ${res.status} for ${apiUrl}`);
163165
const releases = await res.json();
164166

165-
// Each step is independent so a single failure keeps that file's committed
166-
// fallback instead of failing the whole build.
167-
for (const [label, fn] of [
168-
["stable", updateStable],
169-
["pre-release", updatePrerelease],
170-
]) {
171-
try {
172-
} catch (err) {
173-
const msg = err instanceof Error ? err.message : String(err);
174-
console.warn(`[release-data] ${label} skipped: ${msg}`);
175-
}
176-
}
167+
await updateStable(releases);
168+
await updatePrerelease(releases);
177169
}
178170

179171
main().catch((err) => {
180-
// Non-fatal: keep all committed fallbacks so offline / CI builds still succeed.
172+
// Fatal: fail the build rather than silently deploying stale/wrong data.
181173
const msg = err instanceof Error ? err.message : String(err);
182-
console.warn(`[release-data] Skipped update: ${msg}`);
174+
console.error(`[release-data] Failed to update release data: ${msg}`);
175+
process.exitCode = 1;
183176
});

‎Website/src/data/prerelease.json‎

Lines changed: 1 addition & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,3 @@
11
{
2-
"available": true,
3-
"version": "2026.6.15.0",
4-
"releaseDate": "15.06.2026",
5-
"changelog": "/docs/changelog/next-release",
6-
"downloads": {
7-
"setup": "https://github.com/BornToBeRoot/NETworkManager/releases/download/2026.6.15.0/NETworkManager_2026.6.15.0_Setup.msi",
8-
"portable": "https://github.com/BornToBeRoot/NETworkManager/releases/download/2026.6.15.0/NETworkManager_2026.6.15.0_Portable.zip",
9-
"archive": "https://github.com/BornToBeRoot/NETworkManager/releases/download/2026.6.15.0/NETworkManager_2026.6.15.0_Archive.zip"
10-
},
11-
"checksums": {
12-
"setup": "A00E9B3DD49B95A1D0607B98D14F2108906AB7EC8D6680F1AD172A91551FDDF2",
13-
"portable": "31AB794ACC6FC74497FAB23F0CF8A02823E19370E1049FCF3A602754D2005FB8",
14-
"archive": "F0D0137957464C938C7E3684E89F448BBBB84062858601C53118B31C91C533F9"
15-
}
2+
"available": false
163
}

‎Website/src/data/release.json‎

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
11
{
2-
"available": true,
3-
"version": "2026.2.22.0",
4-
"releaseDate": "22.02.2026",
5-
"changelog": "/docs/changelog/2026-2-22-0",
2+
"available": false,
3+
"version": "202x.x.x.0",
4+
"releaseDate": "xx.xx.202x",
5+
"changelog": "/docs/category/changelog",
66
"downloads": {
7-
"setup": "https://github.com/BornToBeRoot/NETworkManager/releases/download/2026.2.22.0/NETworkManager_2026.2.22.0_Setup.msi",
8-
"portable": "https://github.com/BornToBeRoot/NETworkManager/releases/download/2026.2.22.0/NETworkManager_2026.2.22.0_Portable.zip",
9-
"archive": "https://github.com/BornToBeRoot/NETworkManager/releases/download/2026.2.22.0/NETworkManager_2026.2.22.0_Archive.zip"
7+
"setup": "https://github.com/BornToBeRoot/NETworkManager/releases/download/202x.x.x.0/NETworkManager_202x.x.x.0_Setup.msi",
8+
"portable": "https://github.com/BornToBeRoot/NETworkManager/releases/download/202x.x.x.0/NETworkManager_202x.x.x.0_Portable.zip",
9+
"archive": "https://github.com/BornToBeRoot/NETworkManager/releases/download/202x.x.x.0/NETworkManager_202x.x.x.0_Archive.zip"
1010
},
1111
"checksums": {
12-
"setup": "AD3A107D76B9391C88C4427717F243C64309F4D66FEA9775AAB75C1CD51A2D4E",
13-
"portable": "68F2B9F2908D3725633DF2CD91FE7B4D21390CE2E39457B9DBFA2AC80ABE05E8",
14-
"archive": "E535D411472F45420BB3C42EDA45470BD05EECA989074ED68D9F5A4290C3711D"
12+
"setup": "0000000000000000000000000000000000000000000000000000000000000000",
13+
"portable": "0000000000000000000000000000000000000000000000000000000000000000",
14+
"archive": "0000000000000000000000000000000000000000000000000000000000000000"
1515
}
1616
}

0 commit comments

Comments
 (0)