You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I run the dev build on my Linux Machine: "dev": "npx electron-rebuild && concurrently \"npm run dev:vite\" \"npm run dev:electron\"", and I build for Windows "dist": "rm -rf dist dist_electron && npm run build && electron-builder --win",
After every build I get Error: /home/george/Projects/automat-parcare-kiosk/node_modules/keytar/build/Release/keytar.node: invalid ELF header and I have to delete node_modules and reinstall them.
npx electron-rebuild does nothing to fix my issue.
I use keytar in electron/main.js:
importkeytarfrom'keytar';ipcMain.handle('set-password',async(_,password)=>{try{awaitkeytar.setPassword(SERVICE_NAME,ACCOUNT_NAME,password);return{success: true};}catch(error){console.error('Failed to set password:',error);return{success: false,error: error.message};}});ipcMain.handle('get-password',async()=>{try{constpassword=awaitkeytar.getPassword(SERVICE_NAME,ACCOUNT_NAME);return{success: true, password };}catch(error){console.error('Failed to retrieve password:',error);return{success: false,error: error.message};}});app.whenReady().then(async()=>{// await keytar.deletePassword(SERVICE_NAME, ACCOUNT_NAME);constpassword=awaitkeytar.getPassword(SERVICE_NAME,ACCOUNT_NAME);constconfigExists=fs.existsSync(configFilePath);constinitialRoute=!password||!configExists ? '/settings' : '/';createWindow(initialRoute);});
The text was updated successfully, but these errors were encountered:
Can you try next npm tag of electron-builder? Also, it is recommended to not install electron-rebuild directly as electron-builder has it already as a dependency.
I run the dev build on my Linux Machine:
"dev": "npx electron-rebuild && concurrently \"npm run dev:vite\" \"npm run dev:electron\"",
and I build for Windows"dist": "rm -rf dist dist_electron && npm run build && electron-builder --win",
After every build I get
Error: /home/george/Projects/automat-parcare-kiosk/node_modules/keytar/build/Release/keytar.node: invalid ELF header
and I have to delete node_modules and reinstall them.npx electron-rebuild
does nothing to fix my issue.I use keytar in electron/main.js:
The text was updated successfully, but these errors were encountered: