fix(release): resolve style.css asar lookup with native separators

The shared-font check still handed asar a forward-slash path, which
fails on Windows the same way the inventory listing did.
This commit is contained in:
2026-09-22 02:29:28 -07:00
parent 7585d430ae
commit 6a1d1211ae
+1 -1
View File
@@ -132,7 +132,7 @@ function verifyContents(archive, resources, platform, arch) {
assert(!name.path.startsWith('minecard'), `Demo media shipped: ${name.path}`); assert(!name.path.startsWith('minecard'), `Demo media shipped: ${name.path}`);
} }
for (const ui of ['renderer', 'settings', 'syncui']) { for (const ui of ['renderer', 'settings', 'syncui']) {
const css = asar.extractFile(archive, `dist/${ui}/style.css`).toString(); const css = asar.extractFile(archive, path.join('dist', ui, 'style.css')).toString();
assert(css.includes('../fonts/MPLUS1[wght].ttf'), `Shared font missing from ${ui} CSS`); assert(css.includes('../fonts/MPLUS1[wght].ttf'), `Shared font missing from ${ui} CSS`);
} }
return entries; return entries;