Created
February 23, 2018 09:31
-
-
Save azubieta/8dc4a5fff7f211b0a937f52b35a1bf71 to your computer and use it in GitHub Desktop.
Retrieves and deploys the appimage first run utility.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
USER_BIN_PATH="${HOME}/.local/bin/" | |
mkdir -p ${USER_BIN_PATH} | |
TARGET_PATH="${USER_BIN_PATH}/appimage-first-run" | |
wget -c -nv https://github.com/azubieta/appimage-desktop-integration/releases/download/v0.1/Appimage_First_Run_Utility-cf99564-x86_64.AppImage \ | |
-O $TARGET_PATH | |
chmod +x $TARGET_PATH | |
DESKTOP_ENTRY_PATH=$HOME/.local/share/applications/org.appimage.first.run.desktop | |
rm ${DESKTOP_ENTRY_PATH} | |
wget -c -nv https://raw.githubusercontent.com/azubieta/appimage-desktop-integration/v0.1/src/first_run/org.appimage.first.run.desktop \ | |
-O ${DESKTOP_ENTRY_PATH} | |
DESKTOP_ENTRY_PATH_ESC=$(echo ${DESKTOP_ENTRY_PATH} | sed 's_/_\\/_g') | |
sed -i -e "s/appimage_first_run/${DESKTOP_ENTRY_PATH_ESC}/g" ${DESKTOP_ENTRY_PATH} | |
echo ${DESKTOP_ENTRY_PATH} | |
cat ${DESKTOP_ENTRY_PATH} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment