2
0
mirror of https://github.com/frappe/books.git synced 2024-11-13 00:46:28 +00:00

fix building

This commit is contained in:
Ankit Singhaniya 2021-08-18 02:07:52 +05:30 committed by 18alantom
parent 9b98bc9e91
commit 1731087cc1

View File

@ -4,7 +4,7 @@ import { app, protocol, BrowserWindow, ipcMain } from 'electron';
import { autoUpdater } from 'electron-updater'; import { autoUpdater } from 'electron-updater';
import { import {
createProtocol, createProtocol,
installVueDevtools // installVueDevtools
} from 'vue-cli-plugin-electron-builder/lib'; } from 'vue-cli-plugin-electron-builder/lib';
import theme from '@/theme'; import theme from '@/theme';
import { getMainWindowSize } from './screenSize'; import { getMainWindowSize } from './screenSize';
@ -118,11 +118,11 @@ app.on('ready', async () => {
// Electron will not launch with Devtools extensions installed on Windows 10 with dark mode // Electron will not launch with Devtools extensions installed on Windows 10 with dark mode
// If you are not using Windows 10 dark mode, you may uncomment these lines // If you are not using Windows 10 dark mode, you may uncomment these lines
// In addition, if the linked issue is closed, you can upgrade electron and uncomment these lines // In addition, if the linked issue is closed, you can upgrade electron and uncomment these lines
try { // try {
await installVueDevtools(); // await installVueDevtools();
} catch (e) { // } catch (e) {
console.error('Vue Devtools failed to install:', e.toString()); // console.error('Vue Devtools failed to install:', e.toString());
} // }
} }
createWindow(); createWindow();
}); });