mirror of
https://github.com/D-Modem/gui.git
synced 2026-11-28 22:30:49 -08:00
Remove the SwiftUI app for macOS (macos/, cmake/MacosEmbed.cmake, cmake/macos-embed/) and the GTK 4 app for Linux (linux/). The Win32 app (windows/) is now the canonical GUI on Windows, and on Linux and macOS over the portable Win32 layer of clang-retro MFC (winport/). - CMake: remove DMODEM_GUI_LINUX and the Xcode support. With no DMODEM_GUI_WINPORT, Linux and macOS build only the libraries and their tests. The built-in modem is on by default for Windows and winport. - winport: install the app, its desktop entry, AppStream data, icon and the MT9234MU firmware on Linux (firmware/ moves to the top). - CI: the "core" job keeps the library, sanitizer and sshd tests on Linux. The macOS library tests move to the winport-macos job. The linux and macos jobs and their nightly files are removed. - Docs, site and comments: describe one Win32 app. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01B82eRUx6MjNXmAFKULZu3U Signed-off-by: Neo-Desktop <321592+Neo-Desktop@users.noreply.github.com>
21 lines
1.0 KiB
JavaScript
21 lines
1.0 KiB
JavaScript
// Renders assets/dmodem.svg (D-Modem/brand's mark, avatar/org-avatar.svg, on a tile) to the
|
|
// PNGs the app's icon is made from, with Playwright's Chromium:
|
|
// node tools/icons.js && python3 tools/icons.py
|
|
const { chromium } = require('playwright');
|
|
const fs = require('fs'), path = require('path');
|
|
const root = path.join(__dirname, '..');
|
|
const svg = fs.readFileSync(path.join(root, 'assets', 'dmodem.svg'), 'utf8');
|
|
const out = path.join(root, 'build', 'icons');
|
|
fs.mkdirSync(out, { recursive: true });
|
|
(async () => {
|
|
const browser = await chromium.launch();
|
|
for (const size of [16, 32, 48, 64, 128, 256, 512, 1024]) {
|
|
const page = await browser.newPage({ viewport: { width: size, height: size } });
|
|
const s = svg.replace(/width="\d+" height="\d+"/, `width="${size}" height="${size}"`);
|
|
await page.setContent(`<html><body style="margin:0;background:transparent">${s}</body></html>`);
|
|
await page.screenshot({ path: path.join(out, `${size}.png`), omitBackground: true });
|
|
await page.close();
|
|
}
|
|
await browser.close();
|
|
})();
|