Skip to content
This repository has been archived by the owner on Jun 19, 2021. It is now read-only.

Commit

Permalink
simpler structure
Browse files Browse the repository at this point in the history
  • Loading branch information
jackhumbert committed Nov 2, 2015
1 parent 5fbf1a1 commit 9e21388
Show file tree
Hide file tree
Showing 21 changed files with 7 additions and 2,654 deletions.
12 changes: 4 additions & 8 deletions app.js
Original file line number Diff line number Diff line change
Expand Up @@ -93,11 +93,7 @@ function sendHex(file, callback) {
};

function dfu_folder() {
if (process.platform == "win32") {
return escapeShell(__dirname);
} else {
return escapeShell(__dirname + "/usr/local/bin/");
}
return escapeShell(__dirname + "/dfu/");
};

function dfu_location() {
Expand All @@ -114,7 +110,7 @@ var escapeShell = function(cmd) {

function eraseChip(callback) {
var command = dfu_location() + " atmega32u4 erase --force";
sendStatus(command + "\n");
sendStatus("<b>" +command + "</b>\n");
exec(command, {cwd: dfu_folder()},
function(error, stdout, stderr) {
sendStatus(stdout);
Expand All @@ -129,7 +125,7 @@ function eraseChip(callback) {

function flashChip(file, callback) {
var command = dfu_location() + " atmega32u4 flash " + file;
sendStatus(command + "\n");
sendStatus("<b>" +command + "</b>\n");
exec(command, {cwd: dfu_folder()},
function(error, stdout, stderr) {
sendStatus(stdout);
Expand All @@ -144,7 +140,7 @@ function flashChip(file, callback) {

function resetChip(callback) {
var command = dfu_location() + " atmega32u4 reset";
sendStatus(command + "\n");
sendStatus("<b>" +command + "</b>\n");
exec(command, {cwd: dfu_folder()},
function(error, stdout, stderr) {
sendStatus(stdout);
Expand Down
340 changes: 0 additions & 340 deletions dfu-prog-usb-1.2.2/COPYING_GPL.txt

This file was deleted.

Binary file removed dfu-prog-usb-1.2.2/amd64/libusb0.dll
Binary file not shown.
Binary file removed dfu-prog-usb-1.2.2/amd64/libusb0.sys
Binary file not shown.
Binary file removed dfu-prog-usb-1.2.2/atmel_usb_dfu.cat
Binary file not shown.
Binary file removed dfu-prog-usb-1.2.2/atmel_usb_dfu.inf
Binary file not shown.
Binary file removed dfu-prog-usb-1.2.2/ia64/libusb0.dll
Binary file not shown.
Binary file removed dfu-prog-usb-1.2.2/ia64/libusb0.sys
Binary file not shown.
Binary file removed dfu-prog-usb-1.2.2/x86/libusb0.sys
Binary file not shown.
Binary file removed dfu-prog-usb-1.2.2/x86/libusb0_x86.dll
Binary file not shown.
Binary file removed dfu-programmer.exe
Binary file not shown.
4 changes: 2 additions & 2 deletions dist.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@ cp -R * /Users/j/Downloads/dfu-programmer-app-win32/resources/app/
rm /Users/j/Downloads/dfu-programmer-app-darwin.zip
rm /Users/j/Downloads/dfu-programmer-app-win32.zip
cd /Users/j/Downloads
zip -r /Users/j/Downloads/dfu-programmer-app-darwin.zip dfu-programmer-app-darwin/
zip -r /Users/j/Downloads/dfu-programmer-app-win32.zip dfu-programmer-app-win32/
zip -r /Users/j/Downloads/dfu-programmer-app-darwin.zip dfu-programmer-app-darwin/ -x node_modules
zip -r /Users/j/Downloads/dfu-programmer-app-win32.zip dfu-programmer-app-win32/ -x node_modules
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,5 +23,6 @@
},
"homepage": "https://github.com/jackhumbert/dfu-programmer-app#readme",
"devDependencies": {
"electron-prebuilt": "^0.34.2"
}
}
Binary file removed usr/local/bin/dfu-programmer
Binary file not shown.
Loading

0 comments on commit 9e21388

Please sign in to comment.