Files
minecraft_launcher/index.js
claude-bot 24a0569fb4
Some checks failed
Build / release (macos-latest) (push) Has been cancelled
Build / release (ubuntu-latest) (push) Has been cancelled
Build / release (windows-latest) (push) Has been cancelled
Windows Smoke Test / windows-smoke (push) Has been cancelled
Add launcher catalog workflow and smoke tests
2026-05-04 14:06:05 +09:00

17 lines
486 B
JavaScript

const fs = require('fs')
const path = require('path')
const compiledMainPath = path.join(__dirname, 'dist', 'main', 'index.js')
const legacyMainPath = path.join(__dirname, 'index.legacy.js')
if(fs.existsSync(compiledMainPath)){
try {
require(compiledMainPath)
} catch (error) {
console.warn('[launcher] compiled TypeScript main process failed, falling back to legacy entry.', error)
require(legacyMainPath)
}
} else {
require(legacyMainPath)
}