Lilite: A Linux Package Auto-installer
Supported Linux versions
- Ubuntu 16.04
- Ubuntu 14.04
If you're interested in building out support for another distro, let me know! Some of the infra for distro-specific install methods is WIP.
To contribute, you just need to do two things:
- Add the instructions on how to install a package
- Add in the logo
To add a new package
Make a new entry in
packages/packages.json. There are three important fields:
pre_install: List of shell commands to run before installing the package.
package_name: Name of the package manager's package. This can be empty if you're using a .deb file, for example.
post_install: List of shell commands to run after the package is installed via package manager.
Add two copies of the logo - one "large" (i.e. original size) and one 48x48, PNG format - into static/images
To test and debug locally
If you'd like to ensure everything is working before you send in a PR, then you can also set up a local environment to test.
pip install -r requirements.txt- This installs the required dependencies
- Checkout the respective git branch
python packages/seed_packages.py- This will seed/prepare a local database
python app.py- will start the local server and you should see your package here
- Select the linux version, select your package and click on install package. You'll see command to install it which looks somthing like this
sudo apt-get install curl; curl 'http://127.0.0.1:5000/get_installer?version=ubuntu_16&packages=<PACKAGE_NAME>' | sudo bash
- Just run the curl command in your terminal and you'll see your script there. Ensure it's as intended.
- Make a PR