Skip to content

Commit

Permalink
fix(AppImage): do not print debug info about installed AppImage on run
Browse files Browse the repository at this point in the history
  • Loading branch information
develar committed Apr 19, 2018
1 parent e828245 commit e459f89
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions packages/electron-builder-lib/templates/linux/AppRun.sh
Original file line number Diff line number Diff line change
Expand Up @@ -142,12 +142,11 @@ else
SYSTEM_WIDE="--mode system"
fi

# Check if the desktop file is already there
# and if so, whether it points to the same AppImage
# check if the desktop file is already there and if so, whether it points to the same AppImage
if [ -e "$DESTINATION_DIR_DESKTOP/$VENDORPREFIX-<%= desktopFileName %>" ] ; then
INSTALLED_APP_VERSION=$(grep "^X-AppImage-BuildId=" "$DESTINATION_DIR_DESKTOP/$VENDORPREFIX-<%= desktopFileName %>" | head -n 1 | cut -d " " -f 1)
APP_VERSION=$(grep "^X-AppImage-BuildId=" "$DESKTOP_FILE" | head -n 1 | cut -d " " -f 1)
echo "installed: $INSTALLED_APP_VERSION image: $APP_VERSION"
#echo "installed: $INSTALLED_APP_VERSION image: $APP_VERSION"
if [ "$INSTALLED_APP_VERSION" == "$APP_VERSION" ] ; then
exit 0
fi
Expand Down

0 comments on commit e459f89

Please sign in to comment.