File appimage.yml of Package SQLiteBrowser.AppImage
#
# This is an example template how to build an AppImage in Open Build Service (OBS)
#
app: sqlitebrowser
# resources required at build time
build:
# packages which get installed in the build enviroment. Not part of the resulting image.
packages:
- linuxdeployqt
- intltool
- gtk2-devel
- glib2-devel
# - build-essential
# - g++
# - qtbase5-dev
# - qttools5-dev
# - qttools5-dev-tools
# - libsqlite3-dev
# - cmake
# - libantlr-dev
# - libsqlcipher-dev
# - libqcustomplot-dev
# - libqt5scintilla2-dev
# - git
# 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/sqlitebrowser/sqlitebrowser.git
# hg:
# - ....
# svn:
# - ....
# OPTIONAL: ingredient packages are packages which become part of the AppImage.
#ingredients:
# packages:
# - sqlitebrowser
# 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
script:
- cd $BUILD_SOURCE_DIR/sqlitebrowser*
- cmake -DUSE_QT5=True -Dsqlcipher=1 -Wno-dev
- 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/sqlitebrowser.desktop -bundle-non-qt-libs
- linuxdeployqt $BUILD_APPDIR/usr/share/applications/sqlitebrowser.desktop -bundle-non-qt-libs
- find $BUILD_APPDIR/