Skip to content

Open-source Xbox-inspired desktop launcher for Xodus on Linux

TypeScript

fix(steam): label launcher artwork NEXUS

domsvobodad4a8e514148e
diff --git a/src/main/steam-artwork.test.ts b/src/main/steam-artwork.test.ts
index 036e732..6bc8042 100644
--- a/src/main/steam-artwork.test.ts
+++ b/src/main/steam-artwork.test.ts
@@ -32,7 +32,8 @@ it('renders separate portrait/wide brand layouts in a hidden sandbox, with no re
for (const [url] of window.loadURL.mock.calls) {
const html = decodeURIComponent(url.slice('data:text/html;charset=utf-8,'.length));
expect(html).toContain("default-src 'none'; img-src data:");
- expect(html).toContain('XODUS NEXUS');
+ expect(html).toContain('<h1>NEXUS</h1>');
+ expect(html).not.toContain('XODUS NEXUS');
expect(html).not.toMatch(/https?:|<script/);
expect(html).toContain(Buffer.from('bundled icon').toString('base64'));
}
diff --git a/src/main/steam-artwork.ts b/src/main/steam-artwork.ts
index d3c7f27..b28aeca 100644
--- a/src/main/steam-artwork.ts
+++ b/src/main/steam-artwork.ts
@@ -4,7 +4,7 @@ import { BrowserWindow } from 'electron';
export async function nexusSteamArtwork(icon: Buffer): Promise<{ cover: Buffer; wide: Buffer }> {
return renderSteamArtwork((width, height) => `
main{text-align:center;width:100%;padding:48px}img{width:${width > height ? 220 : 280}px;height:${width > height ? 220 : 280}px;object-fit:contain;display:block;margin:0 auto 32px}h1{font-size:${width > height ? 64 : 52}px;letter-spacing:3px;margin:0;font-weight:700}p{color:#aebcb6;font-size:21px;letter-spacing:2px;margin:24px 0 0}.line{height:4px;width:84px;background:#67b43c;margin:32px auto 0}
- </style></head><body><main><img src="data:image/png;base64,${icon.toString('base64')}" alt=""><h1>XODUS NEXUS</h1><div class="line"></div><p>YOUR PC GAMES, TOGETHER.</p></main>`, [[600, 900], [1280, 720]]);
+ </style></head><body><main><img src="data:image/png;base64,${icon.toString('base64')}" alt=""><h1>NEXUS</h1><div class="line"></div><p>YOUR PC GAMES, TOGETHER.</p></main>`, [[600, 900], [1280, 720]]);
}
/** Portrait library slot only. Keep the original image's proportions and the