Merge pull request #9 from karniv00l/dependencies

Update all dependencies, refresh list of ports on USB attach / detach
This commit is contained in:
Josh Stewart 2021-01-15 08:31:26 +11:00 committed by GitHub
commit b45045511a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 933 additions and 907 deletions

22
main.js
View File

@ -17,9 +17,23 @@ var teensyLoaderErr = ""
function createWindow () {
// Create the browser window.
win = new BrowserWindow({
width: 800, height: 600, backgroundColor: '#312450',
webPreferences: {nodeIntegration: true}
})
width: 800,
height: 600,
backgroundColor: '#312450',
webPreferences: {
nodeIntegration: true,
enableRemoteModule: true,
},
});
// auto hide menu bar (Win, Linux)
win.setMenuBarVisibility(false);
win.setAutoHideMenuBar(true);
// remove completely when app is packaged (Win, Linux)
if (app.isPackaged) {
win.removeMenu();
}
// and load the index.html of the app.
win.loadFile('index.html')
@ -291,4 +305,4 @@ ipcMain.on('uploadFW', (e, args) => {
e.sender.send( "upload completed", code )
}
});
});
});

1808
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -18,15 +18,15 @@
},
"author": "Josh Stewart",
"email": "sales@speeduino.com",
"license": "ISC",
"license": "GPL-3.0",
"bugs": {
"url": "https://github.com/speeduino/SpeedyLoader/issues"
},
"homepage": "https://github.com/speeduino/SpeedyLoader",
"devDependencies": {
"electron": "^4.0.0",
"electron-packager": "^14.0.0",
"electron-rebuild": "^1.8.5"
"electron": "^11.2.0",
"electron-packager": "^15.2.0",
"electron-rebuild": "^2.3.4"
},
"dependencies": {
"electron-dl": "^1.14.0",

View File

@ -520,5 +520,7 @@ window.onload = function () {
refreshSerialPorts();
checkForUpdates();
usb.on('attach', refreshSerialPorts);
usb.on('detach', refreshSerialPorts);
};