Always force download of the master files if that is selected. Bump to version 1.1

This commit is contained in:
Josh Stewart 2019-02-12 10:10:32 +11:00
parent 85495d20dc
commit f6c4aa7c7e
2 changed files with 12 additions and 1 deletions

11
main.js
View File

@ -58,6 +58,17 @@ ipcMain.on('download', (e, args) => {
dlDir = app.getPath('downloads');
fullFile = dlDir + "/" + filename;
//Special case for handling the build that is from master. This is ALWAYS downloaded as there's no way of telling when it was last updated.
if(filename == "master.hex" || filename == "master.ini")
{
if(fs.existsSync(fullFile))
{
fs.unlinkSync(fullFile)
console.log('Master version selected, removing local file forcing re-download: ' + filename);
}
}
//console.log("Filename: " + fullFile );
fs.exists(fullFile, (exists) => {

View File

@ -1,6 +1,6 @@
{
"name": "SpeedyLoader",
"version": "1.0.1",
"version": "1.1.0",
"description": "Speeduino universal firmware loader",
"main": "main.js",
"scripts": {