Adobe Flex/AIR on Mac: How to bundle programs with my app
I have a bunch of bash scripts and binaries I need to take with my app, so that the ActionScript can call them. S开发者_StackOverflow中文版ome of them need to be in the user directory in order to run properly.
I was thinking of making a folder src/assets/tools, which will put them in the /Applications folder, and then from AS, upon installation copy them into user folder. Would this be ok, or is there a better way?
I was thinking of making a folder src/assets/tools, which will put them in the /Applications folder, and then from AS, upon installation copy them into user folder. Would this be ok, or is there a better way?
If you create a custom installer; then this seems possible. If you use the Adobe AIR default installer, there is no way to move files around during the install process. You may be able to move them on first run of the application. But, even if you do that, you won't be able to execute said scripts / binaries from within an AIR app.
I believe your best bet is to look into using the NativeProcess APIs to distribute the binary / scripts with your app.
精彩评论