Code Monkey home page Code Monkey logo

appimagemaker's Introduction

AppImageMaker

This repository contains a Bash script that automates the process of converting an installed package into an AppImage.

Prerequisites

  • The script is designed for Arch Linux and derivatives, as it utilizes pacman for package management.
  • wget is required to download the appimagetool if it's not already present.
  • You need to have the package installed on your system that you wish to convert into an AppImage.

How It Works

  1. The script checks for the presence of appimagetool-x86_64.AppImage; if it's not found, it downloads and makes it executable.
  2. It prompts the user to enter the name of the package to be converted.
  3. The script then checks if the package is installed. If not, it asks for the package name again.
  4. It creates a directory structure mimicking the AppDir format, copying the package files and necessary dependencies into this structure.
  5. For packages depending on Qt, it ensures Qt dependencies are copied correctly.
  6. It sets up an AppRun script inside the AppDir, which is the entry point for running the AppImage, configuring necessary environment variables for application execution.
  7. Finally, it uses appimagetool to package the AppDir into an AppImage.

Usage

  1. Clone this repository or download the script to your local machine.
  2. Ensure the script is executable: chmod +x AppImageMaker.sh
  3. Run the script: ./AppImageMaker.sh
  4. Follow the on-screen prompts to enter the package name you want to convert.
  5. Once completed, the script will produce an AppImage in the current directory.

Notes

  • The script assumes that the main executable of the package is located under /usr/bin/.
  • It automatically includes Qt platform plugins if the qt6-base package is installed, ensuring Qt applications run smoothly.
  • The script attempts to find and set the application icon by looking for icon files in the package directory. If no icons are found, it looks for a default icon named AppImage.png in the same directory as the script.

Limitations

  • Currently, this script is tailored for Arch Linux and require adjustments to work with other distributions.
  • It does not handle complex dependencies or configurations that might require manual intervention.
  • Simple packages, including those installed from AUR, are currently supported. The work was tested on a small number of packages: Clementine, Obsidian, Qbittorrent, Veracrypt. MATLAB 2021a and Unreal Engine 5.3.2 were also packaged.

appimagemaker's People

Contributors

mx-goliath avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.