Jan-18-2019, 03:46 PM
Windows have py2exe, but no other OSes. Recently, I discovered how to create hybrid Windows 10/Linux scripts. In fact, It's cmd/bash scripts. Way to achieve this is quite simple - create an file with .bat extension and with #!/bin/bash string as first line, but I must dive deeper to make it detects OS and makes many other things. I research this solution to allow run Java programs on Windows (without need to install Java) and to make possibility to install programs on Linux and Windows by single program.
Read:
https://www.phoronix.com/forums/forum/ph...md-scripts
https://forum.freegamedev.net/viewtopic....46&t=11231
After my research I created small hybrid script builder, written in Bash, which archive platform-independent files, windows related files, GNU/Linux related files. Each of this archive is encoded in base64, so we have only text at output.
Script generated by my tool can extract three part of it:
- GNU/Linux program
- Windows program
- Common files (.py files in this case)
How to use this:
1. We need GNU/Linux Python installer to be bundled. This installer will check if Python is installed (in most cases probably yes) and install if it's not. In next step, it will ran our Python program (but firstly it must been extracted)
2. We need Windows installer to be bundled. It will check Python is installed and install it if it's not. In next step, it will ran our Python program (but firstly it must been extracted)
3. Python program (it will been extracted in first step)
In future I will create web repository containing bash script to install Python on many GNU/Linux distributiohs.
Read:
https://www.phoronix.com/forums/forum/ph...md-scripts
https://forum.freegamedev.net/viewtopic....46&t=11231
After my research I created small hybrid script builder, written in Bash, which archive platform-independent files, windows related files, GNU/Linux related files. Each of this archive is encoded in base64, so we have only text at output.
Script generated by my tool can extract three part of it:
- GNU/Linux program
- Windows program
- Common files (.py files in this case)
How to use this:
1. We need GNU/Linux Python installer to be bundled. This installer will check if Python is installed (in most cases probably yes) and install if it's not. In next step, it will ran our Python program (but firstly it must been extracted)
2. We need Windows installer to be bundled. It will check Python is installed and install it if it's not. In next step, it will ran our Python program (but firstly it must been extracted)
3. Python program (it will been extracted in first step)
In future I will create web repository containing bash script to install Python on many GNU/Linux distributiohs.