* feat: allow user to move jan folder Signed-off-by: James <james@jan.ai> --------- Signed-off-by: James <james@jan.ai> Co-authored-by: James <james@jan.ai> Co-authored-by: Louis <louis@jan.ai>
13 lines
370 B
TypeScript
13 lines
370 B
TypeScript
import { getJanExtensionsPath, init } from '@janhq/core/node'
|
|
|
|
export const setupExtensions = async () => {
|
|
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: getJanExtensionsPath(),
|
|
})
|
|
}
|