You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+23-7Lines changed: 23 additions & 7 deletions
Original file line number
Diff line number
Diff line change
@@ -314,24 +314,40 @@ With the library being compiled and published to jitpack, applications using the
314
314
315
315
We can unit test evaluation of expressions on flutter_js using the desktop platforms (windows, linux and macos).
316
316
317
-
For `Windows` environment you need to build the executable first, and after you need to add the
318
-
path `build\windows\runner\Debug` (the absolute path) to your environment path.
317
+
For `Windows` and `Linux` you need to build your app Desktop executable first: `flutter build -d windows` or `flutter build -d linux`.
318
+
319
+
On Windows, after build your application for the first time, at least, add the path `build\windows\runner\Debug` (the absolute path) to your environment path.
319
320
320
321
In powershell, just run `$env:path += ";${pwd}\build\windows\runner\Debug"`. Now you can run the test in the command line session where you added the `\build\windows\runner\Debug` into the path.
321
322
322
-
To run the test integrated Visual Studio Code, you will need to setup a launcher to the .vscode/launch.json
323
-
so you can fill-in the build folder into the PATH:
323
+
For `Linux` you need to exports an environment variable called `LIBQUICKJSC_TEST_PATH` pointing to `build/linux/debug/bundle/lib/libquickjs_c_bridge_plugin.so`. eg: `export LIBQUICKJSC_TEST_PATH="$PWD/build/linux/debug/bundle/lib/libquickjs_c_bridge_plugin.so"`
324
+
325
+
326
+
To run the test integrated Visual Studio Code, you will need to setup a launcher to the `.vscode/launch.json` file,
327
+
so you can fill-in the build folder into the `PATH` on Windows and the `LIBQUICKJSC_TEST_PATH` for linux:
0 commit comments