Install4j plist12/29/2023 One is where there is some sort of wrapper that uses the native platform widgets and tries to provide the same API on each platform. For one company the latter was done using Qt but there was no gui so it was QThread, QString etc.įor cross platform GUIs there are roughly two approaches. I've done cross platform GUIs before as well as cross platform servers. In this particular scenario a command line tool that has an exit code and can be automated via make, ides etc is the right solution. Note that you can still have problems doing deletions even after you have closed the file due to tagalongs. The open deletion isn't relevant to this but is something I've dealt with elsewhere. (Performance is not a problem since this isn't run that often.) It is extracted to a temporary directory and run and then deleted afterwards. It has an accompanying data file which is actually a zip file and one member is the jar. No installation is done - you just run the script. This is a somewhat different scenario from random end user machines. Note that the script is used by developers to verify correct integration of an SDK for Android, so they already have Java installed. We've not had any Java problems on any of the platforms. It could require even more if I did everything "properly" although the people running the script wouldn't know any different which is why I didn't expend even more effort. So as a result the only thing we have that runs on all platforms is one script because it is run by outsiders, and that required extra effort for Windows. You have to add delay/retry loops because tagalongs like virus scanners and backup agents opened the file after you closed it. If you just had it open (can't delete open files on Windows, more hoops) then closing it and deleting will often fail. Consider something as trivial as deleting a file. It wouldn't be a big deal if it didn't require so much additional effort. Windows is usually what causes the highest amount of work for least results, although there are exceptions (eg printing support has always been easiest to add support for on Windows).īut when we do our internal stuff there is no value to being cross platform to Windows. But that is because I'm diligent and don't want there to be any impediments to others being able to use the software. All my open source projects for well over a decade work on all 3 platforms. > If you get into x-platform dev without thinking too hard about it I've yet to use any virtualization solution where guest disk access is at the same performance level as on the host. I had to give up because the help compiler refuses to install now (I believe the setup program is doing 32 bit arithmetic on free disk space and wrapping around to negative numbers). Incidentally I do actually generate CHM files for one of my open source projects. So I need to convert perfectly good documentation that works in any browser on any platform into another format just because Windows strips the anchor when opening a URL? More hoops. > Don't, use CHM on Windows (although I think this changed AGAIN recently). Doing more than that is more hoop jumping. I used the Python configfile module which does ini style files. Use the registry on Windows, dotfiles on Linux (and plists on Mac? Or is that gone with OsX) ? Finding the java binary via the registry worked just fine, didn't require installation or wrapping or anything else. So to run a jar that produces command line output and is consumed by the script and is one line to run on Linux/Mac (java -blah -blah -jar foo.jar blah blah) requires me to purchase a 3rd party wrapper/installer app. So lets see - on Linux and Mac the script just works.
0 Comments
Leave a Reply.AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |