Include the avrdude binaries for linux and win
This commit is contained in:
parent
2670022d8d
commit
f1f6d7572c
Binary file not shown.
File diff suppressed because it is too large
Load Diff
|
@ -0,0 +1,9 @@
|
||||||
|
{
|
||||||
|
"description": "AVRDUDE",
|
||||||
|
"name": "tool-avrdude",
|
||||||
|
"system": [
|
||||||
|
"linux_i686"
|
||||||
|
],
|
||||||
|
"url": "http://www.nongnu.org/avrdude/",
|
||||||
|
"version": "1.60001.0"
|
||||||
|
}
|
File diff suppressed because it is too large
Load Diff
Binary file not shown.
Binary file not shown.
Binary file not shown.
|
@ -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"
|
||||||
|
}
|
12
index.html
12
index.html
|
@ -25,7 +25,7 @@
|
||||||
<li><a href="#loader">Choose Firmware</a></li>
|
<li><a href="#loader">Choose Firmware</a></li>
|
||||||
<li><a href="#details">Firmware Details</a></li>
|
<li><a href="#details">Firmware Details</a></li>
|
||||||
<li><a href="#port">Choose Port</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>
|
<li><a href="#help">Help</a></li>
|
||||||
</ul>
|
</ul>
|
||||||
</nav>
|
</nav>
|
||||||
|
@ -56,7 +56,11 @@
|
||||||
|
|
||||||
<!-- Firmware details -->
|
<!-- Firmware details -->
|
||||||
<section id="details" class="wrapper style1-alt spotlights">
|
<section id="details" class="wrapper style1-alt spotlights">
|
||||||
|
<div class="inner">
|
||||||
|
<h1>Firmware Details</h1>
|
||||||
|
<h2>Work In Progress</h2>
|
||||||
<iframe id="detailsFrame"> </iframe>
|
<iframe id="detailsFrame"> </iframe>
|
||||||
|
</div>
|
||||||
</section>
|
</section>
|
||||||
|
|
||||||
<!-- Choose Port -->
|
<!-- Choose Port -->
|
||||||
|
@ -75,10 +79,10 @@
|
||||||
<div id="serialDetectError"></div>
|
<div id="serialDetectError"></div>
|
||||||
</section>
|
</section>
|
||||||
|
|
||||||
<!-- Two -->
|
<!-- Progress -->
|
||||||
<section id="two" class="wrapper style3 fade-up">
|
<section id="progress" class="wrapper style3 fade-up">
|
||||||
<div class="inner">
|
<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>
|
<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">
|
<div class="features">
|
||||||
<section>
|
<section>
|
||||||
|
|
9
main.js
9
main.js
|
@ -57,15 +57,18 @@ ipcMain.on('download', (e, args) => {
|
||||||
ipcMain.on('uploadFW', (e, args) => {
|
ipcMain.on('uploadFW', (e, args) => {
|
||||||
var platform;
|
var platform;
|
||||||
|
|
||||||
if(platform.os == "win32") { platform = "avrdude-win32-x86"; }
|
if(args.os == "win32") { platform = "avrdude-windows"; }
|
||||||
else if(platform.os == "darwin") { platform = "avrdude-darwin-x86"; }
|
else if(args.os == "darwin") { platform = "avrdude-darwin-x86"; }
|
||||||
else if(platform.os == "linux") { platform = "avrdude-darwin-x86"; }
|
else if(args.os == "linux") { platform = "avrdude-linux_i686"; }
|
||||||
|
|
||||||
var executableName = "./bin/" + platform + "/avrdude";
|
var executableName = "./bin/" + platform + "/avrdude";
|
||||||
var configName = executableName + ".conf";
|
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 hexFile = 'flash:w:' + args.firmwareFile + ':i';
|
||||||
|
|
||||||
var execArgs = ['-v', '-patmega2560', '-C', configName, '-cwiring', '-b 115200', '-P', args.port, '-D', '-U', hexFile];
|
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) => {
|
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) => {
|
||||||
|
|
Loading…
Reference in New Issue