4 ms·
Thats pretty much exactly what people do. If you are feeling bored, you can check the post and pre flight installer package scripts of some of your most used so
by rarepostinlurkr 10y ago
Thats pretty much exactly what people do. If you are feeling bored, you can check the post and pre flight installer package scripts of some of your most used software.
Regex system versions, string compare versions in Ruby (great for "10.9" -> "10.10"), check that their installer package (an OS X binary) is running on... OS X. Sometime developers do this out of ignorance, sometimes its done out of laziness (don't want to do anything platform specific), or business decisions (don't want to do anything platform specific!) or because there was no better way to do it (no supported API).
How about applications that have an installer, lay themselves down in /Applications/ then have a folder inside called "Plugins", from which they load relative arbitrary code? More common than you might think!