Include the avrdude binaries for linux and win

This commit is contained in:
Josh Stewart 2019-01-02 11:31:28 +11:00
parent 2670022d8d
commit f1f6d7572c
10 changed files with 28748 additions and 7 deletions

BIN
bin/avrdude-linux_i686/avrdude Executable file

Binary file not shown.

14357
bin/avrdude-linux_i686/avrdude.conf Executable file

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,9 @@
{
"description": "AVRDUDE",
"name": "tool-avrdude",
"system": [
"linux_i686"
],
"url": "http://www.nongnu.org/avrdude/",
"version": "1.60001.0"
}

14357
bin/avrdude-windows/avrdude.conf Executable file

File diff suppressed because it is too large Load Diff

BIN
bin/avrdude-windows/avrdude.exe Executable file

Binary file not shown.

BIN
bin/avrdude-windows/cygwin1.dll Executable file

Binary file not shown.

BIN
bin/avrdude-windows/libusb0.dll Executable file

Binary file not shown.

View File

@ -0,0 +1,11 @@
{
"description": "AVRDUDE",
"name": "tool-avrdude",
"system": [
"windows",
"windows_amd64",
"windows_x86"
],
"url": "http://www.nongnu.org/avrdude/",
"version": "1.60001.0"
}

View File

@ -25,7 +25,7 @@
<li><a href="#loader">Choose Firmware</a></li>
<li><a href="#details">Firmware Details</a></li>
<li><a href="#port">Choose Port</a></li>
<li><a href="#upload">Upload</a></li>
<li><a href="#progress">Progress</a></li>
<li><a href="#help">Help</a></li>
</ul>
</nav>
@ -56,7 +56,11 @@
<!-- Firmware details -->
<section id="details" class="wrapper style1-alt spotlights">
<div class="inner">
<h1>Firmware Details</h1>
<h2>Work In Progress</h2>
<iframe id="detailsFrame"> </iframe>
</div>
</section>
<!-- Choose Port -->
@ -75,10 +79,10 @@
<div id="serialDetectError"></div>
</section>
<!-- Two -->
<section id="two" class="wrapper style3 fade-up">
<!-- Progress -->
<section id="progress" class="wrapper style3 fade-up">
<div class="inner">
<h2>What we do</h2>
<h2>Progress</h2>
<p>Phasellus convallis elit id ullamcorper pulvinar. Duis aliquam turpis mauris, eu ultricies erat malesuada quis. Aliquam dapibus, lacus eget hendrerit bibendum, urna est aliquam sem, sit amet imperdiet est velit quis lorem.</p>
<div class="features">
<section>

View File

@ -57,15 +57,18 @@ ipcMain.on('download', (e, args) => {
ipcMain.on('uploadFW', (e, args) => {
var platform;
if(platform.os == "win32") { platform = "avrdude-win32-x86"; }
else if(platform.os == "darwin") { platform = "avrdude-darwin-x86"; }
else if(platform.os == "linux") { platform = "avrdude-darwin-x86"; }
if(args.os == "win32") { platform = "avrdude-windows"; }
else if(args.os == "darwin") { platform = "avrdude-darwin-x86"; }
else if(args.os == "linux") { platform = "avrdude-linux_i686"; }
var executableName = "./bin/" + platform + "/avrdude";
var configName = executableName + ".conf";
if(args.os == "win32") { executableName = executableName + '.exe'; } //This must come after the configName line above
var hexFile = 'flash:w:' + args.firmwareFile + ':i';
var execArgs = ['-v', '-patmega2560', '-C', configName, '-cwiring', '-b 115200', '-P', args.port, '-D', '-U', hexFile];
console.log(process.platform);
/*
exec("./bin/avrdude-darwin-x86/avrdude -v -p atmega2560 -C ./bin/avrdude-darwin-x86/avrdude.conf -c wiring -b 115200 -P /dev/cu.usbmodem14201 -D -U flash:w:/Users/josh/Downloads/201810.hex:i", (err, stdout, stderr) => {