Commit 621a672d authored by azubieta's avatar azubieta

Merge branch 'build_appimage_using_native_linuxdeploy' into 'master'

Build appimage using native linuxdeploy

See merge request !22
parents cd470753 ede5a951
Pipeline #511 passed with stages
in 22 minutes and 9 seconds
......@@ -4,29 +4,34 @@ stages:
## AppImage
build:AppImage:
image: conanio/gcc48
image: conanio/gcc48:1.14.3
stage: build
script:
- sudo apt-get -y -qq update && sudo apt-get -y -qq install python-pip realpath wget
- pip install conan --upgrade
- pip install conan_package_tools
before_script:
# Upgrade Conan version
- sudo pip install --upgrade conan
# Automatic detection of your arch, compiler, etc.
- conan user
- conan remote add appimage-community https://api.bintray.com/conan/appimage-conan-community/public-conan --insert=0
script:
- conan remote add appimage-community https://api.bintray.com/conan/appimage-conan-community/public-conan
- conan remote add bincrafters https://api.bintray.com/conan/bincrafters/public-conan
- conan remote add azubieta https://api.bintray.com/conan/azubieta/AppImage
- mkdir build && cd build
- conan install .. --build missing -s cppstd=11 -s compiler.libcxx=libstdc++11
- cmake -DUSE_CONAN=ON .. -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=Release
- make install -j`nproc` DESTDIR=AppDir
- conan install . --build missing
- . activate_run.sh
- INSTALL_PREFIX=" " ../.travis/build_appimage.sh
- cmake -DUSE_CONAN=ON . -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=Release
- make install -j`nproc` DESTDIR=AppDir
- AppDir/usr/bin/app --help
- linuxdeploy --appdir=AppDir --plugin qt --output appimage --desktop-file=AppDir/usr/share/applications/org.appimage.user-tool.desktop
- . deactivate_run.sh
artifacts:
paths:
- build/appimage-cli-tool*.AppImage*
- appimage-cli-tool*.AppImage*
cache:
key: conan_cache
paths:
- /home/conan/.conan/*
- /home/conan/.conan
test:AppImage:
......@@ -37,7 +42,7 @@ test:AppImage:
script:
- sudo apt-get -y -qq update && sudo apt-get -y -qq install libglib2.0-0
- build/appimage-cli-tool*.AppImage --appimage-extract
- ./appimage-cli-tool*.AppImage --appimage-extract
- squashfs-root/AppRun --help
## Debian Buster Package
......
[requires]
qt/5.12.2@bincrafters/stable
glib/2.40.0@appimage-conan-community/stable
libpng/1.6.36@bincrafters/stable
qt/5.12.3@appimage-conan-community/stable
yaml-cpp/0.6.2@bincrafters/stable
kf5-attica/5.57.0@appimage-conan-community/stable
libappimage/1.0.0@appimage-conan-community/stable
xdg-utils-cxx/0.1.1@appimage-conan-community/stable
[build_requires]
cmake_installer/3.10.0@conan/stable
linuxdeploy/continuous@appimage-conan-community/stable
linuxdeploy-plugin-qt/continuous@appimage-conan-community/stable
linuxdeploy-plugin-appimage/continuous@appimage-conan-community/stable
[generators]
cmake
......@@ -15,6 +19,6 @@ virtualrunenv
qt
[options]
qt:qttools=True
qt:qtnetworkauth=True
qt:widgets=True
glib:shared=True
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment