Skip to content

Commit 05426d3

Browse files
committed
fix: update branding script for new About dialog format
Updated the branding script to work with the new productName parameter in about-bruno.js. Instead of replacing hardcoded 'Bruno' text, we now change the default productName parameter from 'Bruno' to 'BrunoN'.
1 parent 4265df6 commit 05426d3

1 file changed

Lines changed: 6 additions & 11 deletions

File tree

scripts/apply-brunon-branding.js

Lines changed: 6 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -67,21 +67,16 @@ try {
6767
if (content.includes('BrunoN')) {
6868
return content;
6969
}
70-
// This is inside a template literal, so we need to match the exact string
71-
// The ${version} in the file is a template expression, not plain text
72-
const marker = 'Bruno ${version}';
70+
// The file now uses ${productName} variable which gets set at runtime
71+
// We need to update the function signature to default to 'BrunoN' instead of 'Bruno'
72+
const marker = "productName = 'Bruno'";
7373
if (!content.includes(marker)) {
7474
throw new Error('Unable to find about window title');
7575
}
76-
// Replace just "Bruno" with "BrunoN" in the title
76+
// Change default product name from 'Bruno' to 'BrunoN'
7777
let updated = content.replace(
78-
'<h2 class="title">Bruno ${version}</h2>',
79-
'<h2 class="title">BrunoN ${version}</h2>'
80-
);
81-
// Add edition note after the title
82-
updated = updated.replace(
83-
'<h2 class="title">BrunoN ${version}</h2>',
84-
'<h2 class="title">BrunoN ${version}</h2>\n <div class="description">BrunoN edition</div>'
78+
"productName = 'Bruno'",
79+
"productName = 'BrunoN'"
8580
);
8681
return updated;
8782
});

0 commit comments

Comments
 (0)