In my Flutter project for Windows, I want to run some .exe
files that I want to embed in my project, instead of copying/pasting them by hand in the correct location.
So I tried to add the .exe
files in my assets
folder, like the following:
assets
\exe
\images
and add the exe
folder in my pubspec.yaml
file like the following:
flutter:
assets:
- assets/images/
- assets/exe/
The good news is: the exe files are copied in the correct location when I build my project.
The bad news is: I don't know how to get the absolute path of my exe
folder in Dart.
So, is there a way to get the absolute path of the exe
folder for a Windows project, or is there another way to embed my .exe
files so I can get their paths and run them (using Process.start()
)?
Thanks.