On Friday, October 30, 2015 at 1:11:09 PM UTC, Páll Haraldsson wrote: > > > A. Now, you have either that or binaries (I haven't really checked out > that option), but wander if you could get both at the same time with a > polyglot that works with (I guess) Powershell >
It seems I could rely on Powershell (or .bat files) and make a polyglot so that the file would also work on Linux (I'm just optimistic, haven't seen it done, but no showstoppers either). In case there is no Internet connection, in place of my original point B., I wander if I could append the Windows Julia runtime to the file and get Powershell to run the appended binary. Looking into this, I found: http://stackoverflow.com/questions/955460/how-do-linux-binary-installers-bin-sh-work "Netbeans has their own installer engine, and part of it, which does the unpacking and launching is done in the NBI native launcher component: http://wiki.netbeans.org/NBINativeLaunchers Creates a shell(script) archive for Linux/Unix/MacOS and native executable for Windows. You can use that tool for your own projects, also." Doing same/similar is a possibility, but I was thinking, could I tail my own/only file (that has the Julia runtime appended) and run the resulting binary? OS executable file loaders take a file and expect it to be on disk and the headers at the beginning. It might not be possible to give them a file this way (without extracting first) and this might look to much like a virus and upset anti-virus programs (maybe not worth it to try this out even if it "worked"..).. Does anyone know if it is possible on Linux? I will probably not try this unless I know this to work on both Windows and Linux. Still there could be a benefit if it worked at either only. -- Palli.
