diff --git a/.cproject b/.cproject
index a521512..647007d 100644
--- a/.cproject
+++ b/.cproject
@@ -25,7 +25,7 @@
-
+
-
+
@@ -310,7 +310,7 @@
-
+
diff --git a/.project b/.project
index 67b4508..1d583f7 100644
--- a/.project
+++ b/.project
@@ -1,6 +1,6 @@
- eez-flow-template-stm32f469i-disco
+ {{projectName}}
diff --git a/Src/firmware.cpp b/Src/firmware.cpp
index a6ea66e..3517d53 100644
--- a/Src/firmware.cpp
+++ b/Src/firmware.cpp
@@ -79,8 +79,8 @@ EM_PORT_API(void) startFlow() {
// clang-format off
void mountFileSystem() {
EM_ASM(
- FS.mkdir("/eez-flow-template-stm32f469i-disco");
- FS.mount(IDBFS, {}, "/eez-flow-template-stm32f469i-disco");
+ FS.mkdir("/{{projectName}}");
+ FS.mount(IDBFS, {}, "/{{projectName}}");
//Module.print("start file sync..");
diff --git a/Src/gui/hooks.cpp b/Src/gui/hooks.cpp
index 30b7701..bdcbee5 100644
--- a/Src/gui/hooks.cpp
+++ b/Src/gui/hooks.cpp
@@ -45,12 +45,12 @@ char *getConfFilePath(const char *file_name) {
#ifdef _WIN32
if (SUCCEEDED(SHGetFolderPathA(NULL, CSIDL_PROFILE, NULL, 0, file_path))) {
- stringAppendString(file_path, sizeof(file_path), "\\.eez-flow-template-stm32f469i-disco");
+ stringAppendString(file_path, sizeof(file_path), "\\.{{projectName}}");
_mkdir(file_path);
stringAppendString(file_path, sizeof(file_path), "\\");
}
#elif defined(__EMSCRIPTEN__)
- stringAppendString(file_path, sizeof(file_path), "/eez-flow-template-stm32f469i-disco/");
+ stringAppendString(file_path, sizeof(file_path), "/{{projectName}}/");
#else
const char *home_dir = 0;
if ((home_dir = getenv("HOME")) == NULL) {
@@ -58,7 +58,7 @@ char *getConfFilePath(const char *file_name) {
}
if (home_dir) {
stringAppendString(file_path, sizeof(file_path), home_dir);
- stringAppendString(file_path, sizeof(file_path), "/.eez-flow-template-stm32f469i-disco");
+ stringAppendString(file_path, sizeof(file_path), "/.{{projectName}}");
mkdir(file_path, S_IRWXU | S_IRWXG | S_IROTH | S_IXOTH);
stringAppendString(file_path, sizeof(file_path), "/");
}
diff --git a/Src/platform/simulator/emscripten/index.html b/Src/platform/simulator/emscripten/index.html
index 365141c..72f0b81 100644
--- a/Src/platform/simulator/emscripten/index.html
+++ b/Src/platform/simulator/emscripten/index.html
@@ -20,7 +20,7 @@