teejee2008 / sanity-installer

A command-line tool for generating 32-bit and 64-bit binary installers (*.run) for software. Installer is packaged using makeself (http://makeself.io) with gzip compression. It can install files, dependency packages, and execute pre/post-install scripts. Supports distributions based on Debian (apt), Arch (pacman) and Fedora (yum).

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Sanity Installer

A command-line tool for generating 32-bit and 64-bit binary installers (*.run) for software. Installer is packaged using makeself with gzip compression. It can install files, dependency packages, and execute pre/post-install scripts. Supports distributions based on Debian (apt), Arch (pacman) and Fedora (yum).

Usage

  1. Set up pbuilder on an Ubuntu-based distribution
  2. Set up a build environment for building Vala files
sudo apt install gdebi aptitude curl pigz pv diffuse geany geany-plugins valac build-essential pbuilder autotools-dev automake libgtk-3-dev libgee-0.8-dev libsoup2.4-dev libjson-glib-dev makeself
  1. Build and install Sanity by running sh build-stubs.sh && make all && sudo make install-all .
  2. Check installed version: sanity --version
  3. Create a project folder <basepath>
  4. Copy files for installation to path <basepath>/files. Contents of this directory will be copied to filesystem root / by the installer.
  5. Create text file named sanity.config in basepath. A sample file is shown below:
app_name: Aptik
depends_debian:  libgee-0.8-2 libjson-glib-1.0-0 rsync
depends_redhat:  libgee json-glib rsync
depends_arch:    libgee json-glib rsync
depends_generic: libgee json-glib rsync
assume_yes: 0
exec_line: pkexec aptik
  1. (Optional) Place pre-install and post-install scripts in <basepath>. Scripts should be named preinst.sh and postinst.sh .

  2. Generate installers using syntax:

    sanity --generate --base-path <basepath> --out-path ./ --arch i386
    sanity --generate --base-path <basepath> --out-path ./ --arch amd64
    

About

A command-line tool for generating 32-bit and 64-bit binary installers (*.run) for software. Installer is packaged using makeself (http://makeself.io) with gzip compression. It can install files, dependency packages, and execute pre/post-install scripts. Supports distributions based on Debian (apt), Arch (pacman) and Fedora (yum).

License:GNU Lesser General Public License v3.0


Languages

Language:Vala 83.9%Language:Shell 11.4%Language:Makefile 4.7%