Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- # This script shows how to create
- # an AppImage .desktop file with
- # its icons and necessary information.
- # First of all, we will create a folder
- # in /tmp for downloading and automatically
- # deleting the binaries.
- mkdir /tmp/appimaged
- cd /tmp/appimaged
- # Now, we must download the binary from
- # https://github.com/AppImage/appimaged
- # This daemon will monitor some folders
- # and, when a new AppImage is detected,
- # it is automatically installed in our
- # userspace
- # Check if we have "wget" installed
- command -v wget >/dev/null 2>&1 || { printf >&2 "I require \"wget\" but it is not installed - install it by using:\n\t[sudo] apt install wget\nAborting\n"; exit 1; }
- # Now, download the required script
- wget "https://github.com/AppImage/appimaged/releases/download/continuous/appimaged-x86_64.AppImage"
- chmod a+x appimaged-x86_64.AppImage
- # Before starting the daemon, create
- # some necessary folders
- mkdir -p $HOME/Applications
- mkdir -p $HOME/bin
- # Notify the user about the just created folders
- echo "For installing some AppImage, please copy/download/move it to $HOME/Applications or $HOME/bin - you can just leave it on the Downloads folder, but it is not recommended as it can be easily removed"
- # and finally install the daemon
- ./appimaged-x86_64.AppImage --install
- # Now, a logout is required for applying the changes
- echo "Please, logout and log-in again for finishing the installation"
- echo "You can now manage the daemon by using the \"appimaged\" command"
- echo "Brought to you by Javinator9889"
- exit 0
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement