Skip to content
Snippets Groups Projects
Commit fd8362c5 authored by LHOUTELLIER Maël's avatar LHOUTELLIER Maël
Browse files

Working Electron!!!!!!!!!!!!!

parent 4949a3c6
No related branches found
No related tags found
No related merge requests found
......@@ -36,7 +36,8 @@ async function createWindow() {
function createBackgroundProcess() {
console.log(__dirname)
const serverProcess = fork('./ressources/api/index.js') // path.join(path.dirname(__dirname), 'api', 'index.js'))
const apiPath = isDevelopment ? path.join(path.dirname(__dirname), 'dist_electron', 'win-unpacked', 'resources', 'api', 'index.js') : path.join(path.dirname(__dirname), 'api', 'index.js')
const serverProcess = fork(apiPath)
serverProcess.on('message', (msg) => {
console.log(msg)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment