* refactor: add app and nitro log - resolve dependencies issue * fix: update guidance message on inference error * chore: add timestamp to log files * chore: add clear logs action
14 lines
397 B
TypeScript
14 lines
397 B
TypeScript
import { init, userSpacePath } from '@janhq/core/node'
|
|
import path from 'path'
|
|
|
|
export const setupExtensions = () => {
|
|
init({
|
|
// Function to check from the main process that user wants to install a extension
|
|
confirmInstall: async (_extensions: string[]) => {
|
|
return true
|
|
},
|
|
// Path to install extension to
|
|
extensionsPath: path.join(userSpacePath, 'extensions'),
|
|
})
|
|
}
|