LogoopenSUSE Build Service > Projects
Sign Up | Log In

View File appimage.yml of Package AppImageTemplate (Project OBS:AppImage:Templates)

#
# This is an example template how to build an AppImage in Open Build Service (OBS)
#

# leafpad is a small GTK+ application
app: leafpad

# resources required at build time
build:
# packages which get installed in the build enviroment. Not part of the resulting image.
  packages:
    - linuxdeployqt
#    - gtk2-devel
#    - libqt5-qtbase-devel

# resources which will become available as part of the source. The "appimage" source service
# needs to be enabled to process these.
#  git:
#    - https://github.com/oluc/leafpad.git
#  hg:
#    - ....
#  svn:
#    - ....
#
#  files:
#    - http://myserver.org/myfile

# OPTIONAL: ingredient packages are packages which become part of the AppImage. 
ingredients:
  packages:
    - leafpad

script:
# OPTIONAL: compile or modify the AppDir. The environment variables:
#           - $BUILD_SOURCE_DIR point to the source directory
#           - $BUILD_APPDIR point to the AppDir. This directory will become the content of the AppImage
#  - cd $BUILD_SOURCE_DIR/leafpad*
#  - ./configure --prefix=/usr
#  - make -j4
#  - make install DESTDIR=$(readlink -f $BUILD_APPDIR) ; find $BUILD_APPDIR/
  - unset QTDIR; unset QT_PLUGIN_PATH ; unset LD_LIBRARY_PATH
  - linuxdeployqt $BUILD_APPDIR/usr/share/applications/leafpad.desktop -bundle-non-qt-libs
  - find $BUILD_APPDIR/