Always force download of the master files if that is selected. Bump to version 1.1
This commit is contained in:
parent
85495d20dc
commit
f6c4aa7c7e
11
main.js
11
main.js
|
@ -58,6 +58,17 @@ ipcMain.on('download', (e, args) => {
|
||||||
dlDir = app.getPath('downloads');
|
dlDir = app.getPath('downloads');
|
||||||
fullFile = dlDir + "/" + filename;
|
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 );
|
//console.log("Filename: " + fullFile );
|
||||||
|
|
||||||
fs.exists(fullFile, (exists) => {
|
fs.exists(fullFile, (exists) => {
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "SpeedyLoader",
|
"name": "SpeedyLoader",
|
||||||
"version": "1.0.1",
|
"version": "1.1.0",
|
||||||
"description": "Speeduino universal firmware loader",
|
"description": "Speeduino universal firmware loader",
|
||||||
"main": "main.js",
|
"main": "main.js",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
|
Loading…
Reference in New Issue