Skip to content

buburakk/airun

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 

Repository files navigation

+============================================================+
|                                                            |
|         .o.        o8o                                     |
|        .888.       `"'                                     |
|       .8"888.     oooo  oooo d8b oooo  oooo  ooo. .oo.     |
|      .8' `888.    `888  `888""8P `888  `888  `888P"Y88b    |
|     .88ooo8888.    888   888      888   888   888   888    |
|    .8'     `888.   888   888      888   888   888   888    |
|   o88o     o8888o o888o d888b     `V88V"V8P' o888o o888o   |
|                                                            |
+============================================================+

airun - Simple AppImage Installer

Made with Last commit License: CC BY 4.0

airun is a command-line utility script that standardizes AppImage application files into an installation scheme. It organizes them neatly in your home directory (/home/username), renames them for clarity, and creates a convenient symbolic link, allowing you to run any installed AppImage from your terminal by simply typing its name.


Why Use It?

AppImages are great, but managing them can be a nuisance. They end up scattered in your Downloads folder with long, inconsistent names. airun solves this by providing a simple, interactive workflow for a more permanent and organized setup.


Features

  • Standardized Directory Structure: All applications are stored in ~/Applications, each within its own named folder.
  • Consistent Naming: AppImages are renamed to AppName_DD-MM-YYYY.AppImage for easy version tracking.
  • Command-Line Access: Creates a symbolic link in ~/.local/bin, so you can launch the app directly from your terminal (e.g., by typing appname).
  • Portable Data: If you choose not to extract, airun automatically creates .home and .config directories alongside the AppImage, helping keep application data portable.
  • Interactive & User-Friendly: Uses colored prompts to guide you through the installation process.
  • Desktop Integration (Optional): Offers an option to extract the AppImage (--appimage-extract), which can improve desktop integration by using the application's AppRun file inside squashfs-root folder.

Prerequisites

  • A Linux-based operating system.
  • Filesystem in Userspace (FUSE) library.
  • bash (which is available on virtually all Linux systems).
  • Ensure that ~/.local/bin is in your system's $PATH. If it is not, add the following line to your ~/.bashrc file:
export PATH="$HOME/.local/bin:$PATH"

Installation

1. Clone the repository:

git clone https://github.com/buburakk/airun.git

2. Navigate into the directory:

cd airun

3. Make the script executable:

chmod +x airun

4. (Recommended) Place the script in your local bin directory to run it from anywhere:

mv airun ~/.local/bin/

Usage

Download the AppImage you want to install. Run airun from your terminal. If you did not move it to your path, you will need to run it as ./airun. Follow the on-screen prompts. The script will ask you for:

  • A short name for the application: This will be used for the directory name and the symbolic link (e.g., appname).
  • The path to the AppImage file: You can provide a full path or a relative path. Tilde expansion (~) is supported.

How It Works

The airun script performs the following steps:

  • Gathers Input: Prompts the user for the application's short name and the path to the AppImage file.
  • Sets Up Directories: Ensures that ~/.local/bin and ~/Applications/<app-name> directories exist.
  • Processes AppImage: Copies the AppImage to ~/Applications/<app-name>/. Renames the copied AppImage to app-name_DD-MM-YYYY.AppImage so that original AppImage file downloaded can be deleted safely. If an AppImage with the same date stamp already exists, it will be replaced. Makes the AppImage executable (chmod +x).
  • Extraction (Optional method): If you choose to extract, the script will run the AppImage with the --appimage-extract flag. It then creates a symbolic link in ~/.local/bin/ pointing to the AppRun executable inside the extracted squashfs-root directory.
  • Direct Link (For portable data method): If you choose not to extract, a symbolic link is created in ~/.local/bin/ directly to the AppImage file. Additionally, it creates .home and .config directories next to the AppImage for portable data storage, allowing the AppImage to keep its configuration and data within its installation directory. This method is isolated and compact, but requires FUSE library.

Repository Structure

The src/ folder contains the latest running version in development. Older versions are preserved under ver/ for reference and comparison.


Feedback

Feel free to suggest improvements of the script in order to make airun even better.


License

This project is licensed under the B. Burak Karaosmanoğlu Creative Commons Attribution 4.0 International (CC BY 4.0) - see the LICENSE file for details.


Author

B. Burak Karaosmanoğlu - buburakk

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages