64-bit avrdude binary (See #4)

This commit is contained in:
Josh Stewart 2019-07-01 16:46:35 +10:00
parent f6c4aa7c7e
commit 9ab0d39b95
4 changed files with 15914 additions and 2 deletions

BIN
bin/avrdude-darwin-x86_64/avrdude Executable file

Binary file not shown.

File diff suppressed because it is too large Load Diff

34
main.js
View File

@ -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";

View File

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