Compare commits

..

No commits in common. "472b604c8eacd9478c8f7556203705bd7866ba86" and "0072f924c9c6d630a79d8a2fde73e506165fcbeb" have entirely different histories.

2 changed files with 21 additions and 9 deletions

View File

@ -1,6 +1,6 @@
{ {
"name": "real-debrid-downloader", "name": "real-debrid-downloader",
"version": "1.7.205", "version": "1.7.204",
"description": "Desktop downloader", "description": "Desktop downloader",
"main": "build/main/main/main.js", "main": "build/main/main/main.js",
"author": "Sucukdeluxe", "author": "Sucukdeluxe",

View File

@ -2765,16 +2765,28 @@ export function App(): ReactElement {
} }
let changelogText = ""; let changelogText = "";
if (result.releaseNotes) { if (result.releaseNotes) {
changelogText = result.releaseNotes const lines = result.releaseNotes.split("\n");
.split("\n") const compactLines: string[] = [];
.filter((line) => !/^#{1,6}\s/.test(line)) for (const line of lines) {
.map((line) => line if (/^\s{2,}[-*]/.test(line)) continue;
if (/^#{1,6}\s/.test(line)) continue;
if (!line.trim()) continue;
let clean = line
.replace(/\*\*([^*]+)\*\*/g, "$1") .replace(/\*\*([^*]+)\*\*/g, "$1")
.replace(/\*([^*]+)\*/g, "$1") .replace(/\*([^*]+)\*/g, "$1")
.replace(/`([^`]+)`/g, "$1")) .replace(/`([^`]+)`/g, "$1")
.join("\n") .replace(/^\s*[-*]\s+/, "- ")
.replace(/\n{3,}/g, "\n\n")
.trim(); .trim();
const colonIdx = clean.indexOf(":");
if (colonIdx > 0 && colonIdx < clean.length - 1) {
const afterColon = clean.slice(colonIdx + 1).trim();
if (afterColon.length > 60) {
clean = clean.slice(0, colonIdx + 1).trim();
}
}
if (clean) compactLines.push(clean);
}
changelogText = compactLines.join("\n");
} }
const approved = await askConfirmPrompt({ const approved = await askConfirmPrompt({
title: "Update verfügbar", title: "Update verfügbar",