Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit545c8c2

Browse files
committed
ESP8266FS tool: update mkspiffs path for boards manager package installation
1 parent8427b5c commit545c8c2

File tree

1 file changed

+14
-8
lines changed

1 file changed

+14
-8
lines changed

‎src/ESP8266FS.java‎

Lines changed: 14 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -145,14 +145,20 @@ private void createAndUpload(){
145145
return;
146146
}
147147
}
148-
149-
Filetool;
150-
if(!PreferencesData.get("runtime.os").contentEquals("windows"))tool =newFile(platform.getFolder()+"/tools","mkspiffs");
151-
elsetool =newFile(platform.getFolder()+"/tools","mkspiffs.exe");
152-
if(!tool.exists()){
153-
System.err.println();
154-
editor.statusError("SPIFFS Error: mkspiffs not found!");
155-
return;
148+
StringmkspiffsCmd;
149+
if(PreferencesData.get("runtime.os").contentEquals("windows"))
150+
mkspiffsCmd ="mkspiffs.exe";
151+
else
152+
mkspiffsCmd ="mkspiffs";
153+
154+
Filetool =newFile(platform.getFolder() +"/tools",mkspiffsCmd);
155+
if (!tool.exists()) {
156+
tool =newFile(PreferencesData.get("runtime.tools.mkspiffs.path"),mkspiffsCmd);
157+
if (!tool.exists()) {
158+
System.err.println();
159+
editor.statusError("SPIFFS Error: mkspiffs not found!");
160+
return;
161+
}
156162
}
157163

158164
intfileCount =0;

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp