fix: show bun install instead of npm install in update notification when running under Bun (#714)

Co-authored-by: Mario Zechner <badlogicgames@gmail.com>
This commit is contained in:
Danila Poyarkov 2026-01-14 12:23:49 +03:00 committed by GitHub
parent 0c135d0141
commit 5279bb92da
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 11 additions and 6 deletions

View file

@ -17,6 +17,9 @@ const __dirname = dirname(__filename);
export const isBunBinary =
import.meta.url.includes("$bunfs") || import.meta.url.includes("~BUN") || import.meta.url.includes("%7EBUN");
/** Detect if Bun is the runtime (compiled binary or bun run) */
export const isBunRuntime = !!process.versions.bun;
// =============================================================================
// Package Asset Paths (shipped with executable)
// =============================================================================