Skip to content

Instantly share code, notes, and snippets.

@r41d
Last active October 24, 2018 23:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save r41d/9d7ed7c6ec34da1611272e07a9e4f2b0 to your computer and use it in GitHub Desktop.
Save r41d/9d7ed7c6ec34da1611272e07a9e4f2b0 to your computer and use it in GitHub Desktop.
all: appimage
application: application.vala
valac --pkg gtksourceview-3.0 $< -o application
APPDIR=AppDir
appimage: application
$(shell [ -d ${APPDIR} ] && rm -r ${APPDIR}) # rm AppDir if exists
$(shell [ ! -f linuxdeploy-x86_64.AppImage ] && wget -nv https://github.com/linuxdeploy/linuxdeploy/releases/download/continuous/linuxdeploy-x86_64.AppImage && chmod +x linuxdeploy-x86_64.AppImage )
./linuxdeploy-x86_64.AppImage --appdir ${APPDIR} # prepare AppDir
cp AppRun ${APPDIR}/AppRun
cp -r carminebenedetto ${APPDIR}/
cp min2-original.asm ${APPDIR}/
chmod +x ${APPDIR}/AppRun
linuxdeploy-x86_64.AppImage -v1 \
--appdir ${APPDIR} \
--output appimage \
--executable application \
--desktop-file application.desktop \
--icon-file application.png
# result in file application-x86_64.AppImage
mv application-x86_64.AppImage application-x86_64.`lsb_release -cs`.AppImage
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment