Easy way to create custom application installer, developer manual, rev. 09/2024
developer manual
1. IntroductionThis document describes, how to create Q4OS self-extracting convenient installer for your own applications, files and directory structure. This procedure will create both "*.deb" package for installation with "apt" command, and corresponding "*.qsi" - fully automated, convenient installer. The installer will flawlessly install and deliver the application to Q4OS users.
Before we can proceed creating an application, you need to install Q4OS Development Pack from repositories:
$ sudo apt install q4os-devpack-base
In this example we create the most simple installer for single application from Apt repositories. Get installer configuration from template:
$ cp -r /opt/program_files/q4os-devpack/examples/00_qinstaller/basic $HOME/exampleBuild the installer:
$ cd $HOME/example $ build-qinstaller qinstaller1
Find the created installer in $HOME/example1/setup
Go the same as for example 2a above, only replace "qinstaller1" template with "qinstaller2"
We will create installer with a .deb file integrated. Get a simple sample application from development pack template, it will represent an application. Run commands in terminal to copy the template, you can use cut and paste into the terminal:
$ cp -r /opt/program_files/q4os-devpack/examples/00_qinstaller/sample_app $HOME/my_sample_app
The directory structure in "$HOME/my_sample_app/" represents our application. Let's go to build the installer now:
$ cd $HOME/my_sample_app $ dpkg-buildpackage -b -uc -us -tc
Comfortable ".qsi" installer will be generated in your $HOME directory along with the regular Debian ".deb" package. You can now proceed testing installation of your application double-clicking "setup_sample-app_*.qsi" file.
Run the application from terminal:
$ sample-app.sh
To remove the installed application, run:
$ sudo apt remove sample-app
Choose any of our official open source installers from Q4OS Github account as a template. Clone the installer and customize all the desired options.
Extracting and looking into a compiled ".qsi" installer is easy. Copy the installer file into some working directory and run to extract its content in this directory:
$ xqtrsetup
Easy way to create custom application installer, developer manual, rev. 09/2024