Changes between Version 81 and Version 82 of BuildAndDeploymentEnvironment


Ignore:
Timestamp:
Sep 4, 2022, 6:41:31 PM (21 months ago)
Author:
Andy Alt
Comment:

appimage:add command to wget linuxdeploy and the linuxdeploy gtk plugin

Legend:

Unmodified
Added
Removed
Modified
  • BuildAndDeploymentEnvironment

    v81 v82  
    155155}}}
    156156
    157 Copy the content in the code block below and save it to a text file. READ through the comments before running the script.
     157Copy the content in the code block below and save it to a text file (to be run as script).
     158READ through the comments before running the script. It will require minor edits.
    158159
    159160{{{
     
    163164#
    164165set -ev # exit on error, be verbose
     166
     167# VERSION= Set the version of the appimage (e.g
     168# ARCH = probably not needed, usually auto-detected
     169
     170# Some other variables can be used but I couldn't find the docs for them.
     171# They're shown in the code here:
     172# https://github.com/AppImage/AppImageKit/blob/master/src/appimagetool.c
     173
     174# Get a copy of 'linuxdeploy' (you can use `wget` to get the desired release/arch).
     175# https://github.com/linuxdeploy/linuxdeploy/releases
     176
     177# In a docker container, you'll get an error if trying to run an appimage.
     178#
     179# dlopen(): error loading libfuse.so.2
     180# AppImages require FUSE to run.
     181#
     182# You can enter `./linuxdeploy-x86_64.AppImage --appimage-extract` to
     183# extract the image. It will extract to a directory named 'squashfs-root'.
     184# You can then execute linuxdeploy and all required arguments by using
     185# <path-to>/squashfs-root/AppRun [args]
     186
     187if [ -z ${ARCH} ]; then
     188  echo "ARCH must be set"
     189  exit 1
     190fi
     191
     192wget -c "https://github.com/linuxdeploy/linuxdeploy/releases/download/continuous/linuxdeploy-${ARCH}.AppImage"
     193chmod +x linuxdeploy-${ARCH}.AppImage
     194
     195# The linuxdeploy gtk plugin is required for Atlas to work
     196wget -c "https://raw.githubusercontent.com/linuxdeploy/linuxdeploy-plugin-gtk/master/linuxdeploy-plugin-gtk.sh"
     197chmod +x linuxdeploy-plugin-gtk.sh
    165198
    166199# 'patchelf' is required
     
    233266# there won't be any symlinks of course
    234267
    235 # Get a copy of 'linuxdeploy' (you can use `wget` to get the desired release/arch).
    236 # https://github.com/linuxdeploy/linuxdeploy/releases
    237 
    238 # In a docker container, you'll get an error if trying to run an appimage.
    239 #
    240 # dlopen(): error loading libfuse.so.2
    241 # AppImages require FUSE to run.
    242 #
    243 # You can enter `./linuxdeploy-x86_64.AppImage --appimage-extract` to
    244 # extract the image. It will extract to a directory named 'squashfs-root'.
    245 # You can then execute linuxdeploy and all required arguments by using
    246 # <path-to>/squashfs-root/AppRun [args]
    247 
    248 # The linuxdeploy gtk plugin is required for Atlas to work
    249 # View the simple directions at
    250 # https://github.com/linuxdeploy/linuxdeploy-plugin-gtk
    251 
    252268# Create the image
    253269cd ${ABS_PATH_WORK_DIR}
    254 
    255 # VERSION= Set the version of the appimage (e.g
    256 # ARCH = probably not needed, usually auto-detected
    257 
    258 # Some other variables can be used but I couldn't find the docs for them.
    259 # They're shown in the code here:
    260 # https://github.com/AppImage/AppImageKit/blob/master/src/appimagetool.c
    261270
    262271DEPLOY_GTK_VERSION=3 # Variable used by gtk plugin