Add launcher catalog workflow and smoke tests
This commit is contained in:
16
index.js
Normal file
16
index.js
Normal file
@@ -0,0 +1,16 @@
|
||||
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)
|
||||
}
|
||||
Reference in New Issue
Block a user