Bundle required crypto and SSL DLLs and gate releases on a Windows native-load smoke test. Resolve loader paths independently of the working directory and encode file URLs correctly. Include the quick-login launcher built from Windows-Boot 0ff70ce10e34ac26411f9e6bcedaedfacc1e74f0. Validated builds, five path regressions, and live Shell and Windows Node startup to QR login.
7 lines
224 B
JavaScript
7 lines
224 B
JavaScript
const path = require('path');
|
|
const { pathToFileURL } = require('url');
|
|
const mainPath = process.env.NAPCAT_MAIN_PATH || path.join(__dirname, 'napcat.mjs');
|
|
(async () => {
|
|
await import(pathToFileURL(mainPath).href);
|
|
})();
|