64-bit avrdude binary (See #4)
This commit is contained in:
parent
f6c4aa7c7e
commit
9ab0d39b95
Binary file not shown.
File diff suppressed because it is too large
Load Diff
34
main.js
34
main.js
|
@ -58,6 +58,37 @@ ipcMain.on('download', (e, args) => {
|
|||
dlDir = app.getPath('downloads');
|
||||
fullFile = dlDir + "/" + filename;
|
||||
|
||||
useTSDir = false;
|
||||
//Try and find the TunerStudio ecuDef directory
|
||||
if(process.platform == "win32")
|
||||
{
|
||||
//Windows
|
||||
TunerStudioDir = "C:\Program Files (x86)\EFIAnalytics\TunerStudioMS\config\ecuDef\";
|
||||
try {
|
||||
fs.existsSync(TunerStudioDir); //Directory exists
|
||||
fs.accessSync(TunerStudioDir, fs.constants.R_OK | fs.constants.W_OK); //Directory can be written to
|
||||
useTSDir = true;
|
||||
} catch (err) {
|
||||
useTSDir = false;
|
||||
}
|
||||
}
|
||||
else if(process.platform == "darwin")
|
||||
{
|
||||
//Mac
|
||||
TunerStudioDir = "/Applications/TunerStudio MS.app/Contents/Java/config/ecuDef/"
|
||||
try {
|
||||
fs.existsSync(TunerStudioDir); //Directory exists
|
||||
fs.accessSync(TunerStudioDir, fs.constants.R_OK | fs.constants.W_OK); //Directory can be written to
|
||||
useTSDir = true;
|
||||
} catch (err) {
|
||||
useTSDir = false;
|
||||
}
|
||||
}
|
||||
else if(process.platform == "linux")
|
||||
{
|
||||
platform = "avrdude-linux_i686";
|
||||
}
|
||||
|
||||
//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")
|
||||
{
|
||||
|
@ -96,7 +127,8 @@ ipcMain.on('uploadFW', (e, args) => {
|
|||
var burnPercent = 0;
|
||||
|
||||
if(process.platform == "win32") { platform = "avrdude-windows"; }
|
||||
else if(process.platform == "darwin") { platform = "avrdude-darwin-x86"; }
|
||||
//else if(process.platform == "darwin") { platform = "avrdude-darwin-x86"; }
|
||||
else if(process.platform == "darwin") { platform = "avrdude-darwin-x86_64"; }
|
||||
else if(process.platform == "linux") { platform = "avrdude-linux_i686"; }
|
||||
|
||||
var executableName = __dirname + "/bin/" + platform + "/avrdude";
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "SpeedyLoader",
|
||||
"version": "1.1.0",
|
||||
"version": "1.2.0",
|
||||
"description": "Speeduino universal firmware loader",
|
||||
"main": "main.js",
|
||||
"scripts": {
|
||||
|
|
Loading…
Reference in New Issue