how do I run the executable files from Flutter desktop that also store in that app itself, let say if I made a batch file that echo hello worlds. the idea is I don't want the executable file in the app itself. the only thing that I can think of is assets. I want to run the file with Process. start or run. I tried the "workingDirectory" to assets dir but it doesn't work. Any other solution or maybe I do it the wrong way.
asked Apr 8, 2021 at 8:39
Muhammad Saifullah Azhar
2212 silver badges9 bronze badges
-
facing the same problem did you find any solution ??Atul Chaudhary– Atul Chaudhary2021年12月29日 00:35:35 +00:00Commented Dec 29, 2021 at 0:35
-
facing same issueNux– Nux2022年04月09日 14:44:01 +00:00Commented Apr 9, 2022 at 14:44
-
@Nux have you tried asset bundle?. I'm moving from this issue by not implementing this related feature on that project but recently, I encounter with asset bundle. maybe you can trie it out if you still looking forward to itMuhammad Saifullah Azhar– Muhammad Saifullah Azhar2022年04月25日 00:06:52 +00:00Commented Apr 25, 2022 at 0:06
1 Answer 1
Process.run('C:/Users/<Ur User>/AndroidStudioProjects/web_view_test/build/windows/runner/Debug/installerX64/install.exe', [' start ']).then((ProcessResult results) {
print(results.stdout);
});
tripleee
192k37 gold badges318 silver badges367 bronze badges
Sign up to request clarification or add additional context in comments.
3 Comments
Muhammad Saifullah Azhar
I bet there is a better way than this? or not.
B14ck
yes make some node js code and compile it with pkg and call it from flutter
B14ck
or lock how to creat pakage and create it with c++ and invoce the function from flutter woth channel
lang-dart