mirror of
https://github.com/ksyasuda/SubMiner.git
synced 2026-09-22 05:16:22 -07:00
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:
@@ -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;
|
||||||
|
|||||||
Reference in New Issue
Block a user