File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -18,7 +18,7 @@ int main() {
1818 // VSF (Virtual File System) C++ Example
1919 //
2020 // 1. Run Python script to generate header file of a folder
21- // python vfs.py "/path/to/folder" "vfs.h"
21+ // python vfs.py "/path/to/folder" "vfs.h" "index.html"
2222 //
2323 // 2. Include header file in your C++ project
2424 // #include "vfs.h"
Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ A simple Python script `vfs.py` is used to generate `vfs.h` to embed the whole r
1414
15151 . Run ` npx create-react-app my-react-app ` to create a React app using NPM
16162 . Add ` <script src="webui.js"></script> ` into ` public/index.html ` to connect UI with the backend
17- 3 . Run ` python vfs.py "./my-react-app/build" "vfs.h" ` to embed the build folder
17+ 3 . Run ` python vfs.py "./my-react-app/build" "vfs.h" "index.html" ` to embed the build folder
18184 . Now, use any C compiler to compile ` main.c ` into a portable executable program
1919
2020### Other backend languages examples:
Original file line number Diff line number Diff line change 1111echo .
1212echo * Embedding React's build files into 'vfs.h'
1313
14- python vfs.py " ./webui-react-example/build" " vfs.h"
14+ python vfs.py " ./webui-react-example/build" " vfs.h" " index.html "
1515
1616echo .
1717echo * Compiling 'main.c' into 'main.exe' using Microsoft Visual Studio...
Original file line number Diff line number Diff line change @@ -30,7 +30,7 @@ int main() {
3030 // VSF (Virtual File System) Example
3131 //
3232 // 1. Run Python script to generate header file of a folder
33- // python vfs.py "/path/to/folder" "vfs.h"
33+ // python vfs.py "/path/to/folder" "vfs.h" "index.html"
3434 //
3535 // 2. Include header file in your C project
3636 // #include "vfs.h"
Original file line number Diff line number Diff line change @@ -18,7 +18,7 @@ int main() {
1818 // VSF (Virtual File System) Example
1919 //
2020 // 1. Run Python script to generate header file of a folder
21- // python vfs.py "/path/to/folder" "vfs.h"
21+ // python vfs.py "/path/to/folder" "vfs.h" "index.html"
2222 //
2323 // 2. Include header file in your C project
2424 // #include "vfs.h"
You can’t perform that action at this time.
0 commit comments