Update all dependencies, refresh list of ports on USB attach / detach

This commit is contained in:
Piotr Rogowski 2021-01-12 23:51:59 +01:00
parent 85bab547e8
commit 1b0c51db22
No known key found for this signature in database
GPG Key ID: 9F51ECA55C0D48F0
4 changed files with 933 additions and 907 deletions

20
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')

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

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