Add Windows x64 and x86 installers and refresh release screenshots

This commit is contained in:
Dario P. committed 2026-10-25 01:41:21 +02:00
1 parent f3b4205ee1
commit f7e0030d93
18 files changed
+266 -42

No files matched your search

+8 -3
View File
@@ -8,11 +8,16 @@ const data = await mkdtemp(path.join(os.tmpdir(), 'untrace-portable-'));
const env = { ...process.env, UNTRACE_TEST: '1', UNTRACE_DATA_DIR: data };
delete env.ELECTRON_RUN_AS_NODE;
const { version, build } = JSON.parse(await readFile('package.json', 'utf8'));
const artifact = build.portable.artifactName.replace('${version}', version);
const processHandle = spawn(path.resolve('release', artifact), ['--remote-debugging-port=19384'], { env, windowsHide: true, stdio: 'ignore' });
const architecture = process.argv[2] || 'x64';
if (!['x64', 'x86'].includes(architecture)) throw new Error('Expected x64 or x86.');
const artifact = `Untrace-Desktop-${version}-portable-${architecture}.exe`;
const processHandle = spawn(path.resolve('release', architecture, artifact), ['--remote-debugging-port=19384'], { env, windowsHide: true, stdio: 'ignore' });
let launchError;
processHandle.on('error', error => { launchError = error; });
let browser;
try {
for (let attempt = 0; attempt < 120; attempt++) {
if (launchError) throw launchError;
try { browser = await chromium.connectOverCDP('http://127.0.0.1:19384', { timeout: 1000 }); break; }
catch { await new Promise(resolve => setTimeout(resolve, 500)); }
}
@@ -21,7 +26,7 @@ try {
await page.waitForURL('untrace://app/');
await page.getByLabel('Open image file', { exact: true }).waitFor({ state: 'attached' });
if (await page.title() !== build.productName) throw new Error('Unexpected window');
console.log('PASS: single-file portable extracted and loaded the offline app.');
console.log(`PASS: ${architecture} single-file portable extracted and loaded the offline app.`);
const cdp = await browser.newBrowserCDPSession();
await Promise.race([cdp.send('Browser.close').catch(() => {}), new Promise(resolve => setTimeout(resolve, 1000))]);
} finally {