Skip to content

Commit

Permalink
ESP8266FS tool: update mkspiffs path for boards manager package insta…
Browse files Browse the repository at this point in the history
…llation
  • Loading branch information
igrr committed Sep 9, 2015
1 parent 8427b5c commit 545c8c2
Showing 1 changed file with 14 additions and 8 deletions.
22 changes: 14 additions & 8 deletions src/ESP8266FS.java
Expand Up @@ -145,14 +145,20 @@ private void createAndUpload(){
return;
}
}

File tool;
if(!PreferencesData.get("runtime.os").contentEquals("windows")) tool = new File(platform.getFolder()+"/tools", "mkspiffs");
else tool = new File(platform.getFolder()+"/tools", "mkspiffs.exe");
if(!tool.exists()){
System.err.println();
editor.statusError("SPIFFS Error: mkspiffs not found!");
return;
String mkspiffsCmd;
if(PreferencesData.get("runtime.os").contentEquals("windows"))
mkspiffsCmd = "mkspiffs.exe";
else
mkspiffsCmd = "mkspiffs";

File tool = new File(platform.getFolder() + "/tools", mkspiffsCmd);
if (!tool.exists()) {
tool = new File(PreferencesData.get("runtime.tools.mkspiffs.path"), mkspiffsCmd);
if (!tool.exists()) {
System.err.println();
editor.statusError("SPIFFS Error: mkspiffs not found!");
return;
}
}

int fileCount = 0;
Expand Down

0 comments on commit 545c8c2

Please sign in to comment.