Windows support questions #296
Replies: 5 comments
-
Typically, platform specific stuff is done within the embedded script you put in your archive. Makeself archives are only Bourne Shell scripts, so you can safely assume that it is available - so if you are able to start the extraction you should be able to add a bit of code to detect that you are running on a Windows system and then take appropriate steps. I've mostly done this to distribute software among different types of Unix systems (Linux, Solaris, AIX, etc). I don't know much about the Windows bash support but I'm sure it should be doable. |
Beta Was this translation helpful? Give feedback.
-
Thanks for the reply, |
Beta Was this translation helpful? Give feedback.
-
Nothing is prohibited but really you can do anything you want within the archive itself - I would be reluctant to add Windows-specific options to Makeself itself unless really necessary though. |
Beta Was this translation helpful? Give feedback.
-
@resistancelion The entire setup we implemented with usage of makeself-maven-plugin is specifically to be cross platform including windows. It uses git bash to accomplish usage on windows and in fact the maven plugin now even uses portable git so its no longer dependent on end user setup. Specifics on windows as noted then are in the deploy script as to what it does which isn't really a concern of makeself specifically. |
Beta Was this translation helpful? Give feedback.
-
I created a working prototype. https://github.com/hemnstill/makeself/releases/tag/release-2.4.5-cmd pros:
cons:
|
Beta Was this translation helpful? Give feedback.
-
First of all
Is the idea of distributing Makeself for non-Linux platforms is good for Makeself creators?
For me it will be good to have the exact same tool with same command sets on different systems.
In case if someone is curious how to make polyglot shell program, here's an example
Secondly, i am curious is there a way to implement multiple target platforms for makeself?
e.g --target-lin --target-win, so on... (with possibility of adding different installation scripts for different systems)
As i am interested in such approach, i can try to implement this task.
Examples why it should be
Also: Winrar hasn't got such handy feature as configurable installation scripts
Same of the 1st point ideas: it will be good for the modification creator to not carry much about creating different installers for different platforms.
Beta Was this translation helpful? Give feedback.
All reactions