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 azubieta/appimage-cli-tool!22
parents cd470753 ede5a951
Pipeline #511 passed with stages
in 22 minutes and 9 seconds
...@@ -4,29 +4,34 @@ stages: ...@@ -4,29 +4,34 @@ stages:
## AppImage ## AppImage
build:AppImage: build:AppImage:
image: conanio/gcc48 image: conanio/gcc48:1.14.3
stage: build stage: build
script: before_script:
- sudo apt-get -y -qq update && sudo apt-get -y -qq install python-pip realpath wget # Upgrade Conan version
- pip install conan --upgrade - sudo pip install --upgrade conan
- pip install conan_package_tools # Automatic detection of your arch, compiler, etc.
- conan user - 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 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
- 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
- . activate_run.sh - . 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: artifacts:
paths: paths:
- build/appimage-cli-tool*.AppImage* - appimage-cli-tool*.AppImage*
cache: cache:
key: conan_cache key: conan_cache
paths: paths:
- /home/conan/.conan/* - /home/conan/.conan
test:AppImage: test:AppImage:
...@@ -37,7 +42,7 @@ test:AppImage: ...@@ -37,7 +42,7 @@ test:AppImage:
script: script:
- sudo apt-get -y -qq update && sudo apt-get -y -qq install libglib2.0-0 - 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 - squashfs-root/AppRun --help
## Debian Buster Package ## Debian Buster Package
......
[requires] [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 yaml-cpp/0.6.2@bincrafters/stable
kf5-attica/5.57.0@appimage-conan-community/stable kf5-attica/5.57.0@appimage-conan-community/stable
libappimage/1.0.0@appimage-conan-community/stable libappimage/1.0.0@appimage-conan-community/stable
xdg-utils-cxx/0.1.1@appimage-conan-community/stable xdg-utils-cxx/0.1.1@appimage-conan-community/stable
[build_requires] [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] [generators]
cmake cmake
...@@ -15,6 +19,6 @@ virtualrunenv ...@@ -15,6 +19,6 @@ virtualrunenv
qt qt
[options] [options]
qt:qttools=True
qt:qtnetworkauth=True
qt:widgets=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