Python Forum
In place of py2exe (for GNU/Linux systems) and MultiOS executables (Yes)
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
In place of py2exe (for GNU/Linux systems) and MultiOS executables (Yes)
#1
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.
Reply


Messages In This Thread
In place of py2exe (for GNU/Linux systems) and MultiOS executables (Yes) - by Lachu - Jan-18-2019, 03:46 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  source for py2exe not working after 3.4 metulburr 2 2,490 Feb-28-2019, 01:42 PM
Last Post: metulburr
  is there a better place to talk about pypy here? ezdev 1 2,703 Dec-20-2017, 12:22 PM
Last Post: metulburr
  [Py2Exe] How can i convert py files to exe ? JamieVanCadsand 10 8,373 Sep-29-2017, 06:10 AM
Last Post: Skaperen
  Time complexity different between operating systems. Why? Mekire 2 4,296 Jan-18-2017, 09:29 PM
Last Post: casevh

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020