-
Notifications
You must be signed in to change notification settings - Fork 317
building a new installation file
The DreamFactory Installation File dfsetup.run
uses Makeself (https://makeself.io) to put all 5 installation scripts (setup.sh which contains the flow of the installation process, and 4 scripts, one for each supported OS which contains the actual logic). When you run ./dfsetup.run
the file will self-extract and then run setup.sh
, which in turns calls on functions which are located in the corresponding script file for the Os it is installing on (E.g dfsetup.run
will extract, run setup.sh
which in turn will call on ubuntu.sh
if you are installing DreamFactory on Ubuntu).
Thus, whenever you make a change to any of the five script files, you will need to rebuild dfsetup.run by using Makeself.
Download from https://makeself.io (towards the bottom of the page) and then move that file to where you want makeself to be (it will create a folder in the same location). Make it executable with chmod +x ./makeself-2.4.5.run
and run it with ./makeself-2.4.5.run
. This will create a directory makeself-2.4.5
in the same location.
-
After making your changes to the script files it is a good idea to copy all five files (the four Os scripts and
setup.sh
into a folder which only contains those files. This is because Makeself will create its package from any and all files in the directory you point it to. -
Go into the
makeself
directory and then run:
./makeself.sh --keep-umask dfsetup.run "DreamFactory Installer" ./setup.sh
This will then create dfsetup.run and place it in the makeself directory.
You will now have a new installer :)