windows + Mac + app
I have written an app for windows开发者_如何学运维 and Mac environments i.e I have 2 files -- 1) abc.exe and 2)abc.app which work on windows and Mac respt. Now i want to put these two files into one unit like a jar or tar ball and ship that unit. The unit will also contain a script which should recognize the environment in which the unit is double clicked and launch the .exe or .app.
Can this be done and if it can be done what do u suggest the unit should be like a jar or tar ball or something else and why?
Thanks
So, you want to force users to have a JVM that can recognize the OS and execute other external applications?
Don't futz around with the normal application installation process on either platform. Ship a self-extracting EXE install file for Windows, and a DMG for Mac. Allow users to choose the appropriate package on your web site, defaulted to one or the other based on their user agent.
精彩评论