Ship the native app window and start from Luminary.exe
A tester saw Edge open and start syncing his Microsoft account; the bundle carried no WebView2 host, so the launcher fell back to Edge's app mode. The window host is now built and shipped, the fallback prefers Chrome over Edge, and the installer's Start Luminary, shortcuts and start-at-login use Luminary.exe so they no longer depend on Windows Script Host, which policy can disable.
This commit is contained in:
+16
-5
@@ -445,6 +445,19 @@ function writeVersion(bundle, pkg, launcher, nodeVersion, nodeHash, nodeSize) {
|
||||
|
||||
function writeBundleReadme(bundle, info) {
|
||||
const start = info.launcher === 'go' ? 'Luminary.exe' : 'Luminary.cmd (or Luminary.vbs for no console window)';
|
||||
const windowLine = info.nativeWindow
|
||||
? 'Window: opens in its own window: no browser, no tabs, no address bar, and\n' +
|
||||
' no Edge profile or Microsoft account'
|
||||
: 'Window: opens in a chromeless Edge/Chrome window; "Luminary.cmd -Browser"\n' +
|
||||
' for a normal tab';
|
||||
const windowRequirement = info.nativeWindow
|
||||
? ' - The Microsoft Edge WebView2 runtime, which Windows 10 and 11 install with\n' +
|
||||
' Edge. It is the window engine only: no browser is opened and no Edge\n' +
|
||||
' profile, account or synced settings are used. If it is missing the window\n' +
|
||||
' says so and links to the one-time download.\n' +
|
||||
' - WebGL2 for the Develop module (WebView2 provides it).'
|
||||
: ' - A current browser (Edge, Chrome or Firefox) with WebGL2 for the Develop\n' +
|
||||
' module.';
|
||||
const body = `Luminary ${info.version} for Windows (x64) — portable bundle
|
||||
=================================================
|
||||
|
||||
@@ -458,13 +471,11 @@ Repair: "Luminary.cmd -Repair" downloads node.exe again and verifies its sha
|
||||
Sign-in: none — single-user desktop mode, no account setup
|
||||
Network: not needed — the app and its service run on this PC, so it starts
|
||||
and runs with the network disconnected
|
||||
Window: opens in its own window (native when bundled, else chromeless Edge/Chrome);
|
||||
"Luminary.cmd -Browser" for a normal tab
|
||||
${windowLine}
|
||||
|
||||
Requirements
|
||||
- Windows 10 or 11, 64-bit.
|
||||
- A current browser (Edge, Chrome or Firefox) with WebGL2 for the Develop
|
||||
module.
|
||||
${windowRequirement}
|
||||
- Nothing else. Node.js is included as node.exe, and no .NET, Visual C++
|
||||
Redistributable, admin rights or installer is needed.
|
||||
- About 250 MB free where the data folder lives.
|
||||
@@ -782,7 +793,7 @@ async function main() {
|
||||
}
|
||||
|
||||
const info = writeVersion(bundle, pkg, launcher, options.node, node.hash, statSync(bundledNode).size);
|
||||
writeBundleReadme(bundle, { ...info, launcher });
|
||||
writeBundleReadme(bundle, { ...info, launcher, nativeWindow: Boolean(options.webview2) });
|
||||
|
||||
const zipPath = path.join(options.out, `Luminary-${pkg.version}-win-x64.zip`);
|
||||
rmSync(zipPath, { force: true });
|
||||
|
||||
Reference in New Issue
Block a user