Final configuration to build an AppImage.

--HG--
branch : develop
This commit is contained in:
Roman Telezhynskyi 2019-11-29 15:15:10 +02:00
parent c614e72064
commit 43d57afc77
2 changed files with 8 additions and 8 deletions

View File

@ -27,6 +27,7 @@ build:
- libQt5Core-devel - libQt5Core-devel
- libpng-devel - libpng-devel
- libqt5-linguist-devel - libqt5-linguist-devel
- libicu-devel # to be able to fix the icu data path
- linuxdeployqt # required tooling, see script section - linuxdeployqt # required tooling, see script section
# resources which will become available as part of the source. # resources which will become available as part of the source.
@ -52,13 +53,15 @@ script:
# - $BUILD_SOURCE_DIR point to the source directory # - $BUILD_SOURCE_DIR point to the source directory
# - $BUILD_APPDIR point to the AppDir. This directory will become the content of the AppImage # - $BUILD_APPDIR point to the AppDir. This directory will become the content of the AppImage
- cd $BUILD_SOURCE_DIR/Valentina_git - cd $BUILD_SOURCE_DIR/Valentina_git
- qmake-qt5 PREFIX=/usr LRELEASE=lrelease-qt5 Valentina.pro -r "CONFIG += noTests noRunPath no_ccache noDebugSymbols" - qmake-qt5 PREFIX=/usr PREFIX_LIB=/usr/lib LRELEASE=lrelease-qt5 Valentina.pro -r DEFINES+=APPIMAGE "CONFIG += noTests noRunPath no_ccache noDebugSymbols"
- make -j$(nproc) - make -j$(nproc)
- make INSTALL_ROOT=$BUILD_APPDIR -j$(nproc) install - make INSTALL_ROOT=$BUILD_APPDIR -j$(nproc) install
- mkdir -p $BUILD_APPDIR/usr/share/metainfo
# create the image file # create the image file
- unset QTDIR; unset QT_PLUGIN_PATH ; unset LD_LIBRARY_PATH - unset QTDIR; unset QT_PLUGIN_PATH ; unset LD_LIBRARY_PATH
- linuxdeployqt $BUILD_APPDIR/usr/share/applications/*.desktop -bundle-non-qt-libs # bundle icu's data
- mkdir -p $BUILD_APPDIR/usr/share/icu
- cp /usr/share/icu/*/icudt*.dat $BUILD_APPDIR/usr/share/icu/
- linuxdeployqt $BUILD_APPDIR/usr/share/applications/valentina.desktop -bundle-non-qt-libs -verbose=2
# Show what we have done # Show what we have done
- find $BUILD_APPDIR/ - find $BUILD_APPDIR/

7
dist/rpm/_service vendored
View File

@ -6,16 +6,12 @@
<param name="scm">git</param> <param name="scm">git</param>
<param name="exclude">.git</param> <param name="exclude">.git</param>
<param name="versionformat">%at</param> <param name="versionformat">%at</param>
<param name="revision">master</param>
</service> </service>
<service name="extract_file"> <service name="extract_file">
<param name="archive">*.tar</param> <param name="archive">*.tar</param>
<param name="files">*/dist/rpm/valentina.spec */dist/OBS_debian/*</param> <param name="files">*/dist/rpm/valentina.spec */dist/OBS_debian/*</param>
</service> </service>
<service name="extract_file">
<param name="archive">*.tar</param>
<param name="files">*/dist/AppImage/appimage.yml</param>
<param name="outfilename">appimage.yml</param>
</service>
<service name="extract_file"> <service name="extract_file">
<param name="archive">*.tar</param> <param name="archive">*.tar</param>
<param name="files">*/dist/AppImage/_icon</param> <param name="files">*/dist/AppImage/_icon</param>
@ -26,4 +22,5 @@
<param name="compression">gz</param> <param name="compression">gz</param>
</service> </service>
<service name="set_version"/> <service name="set_version"/>
<service name="appimage"/>
</services> </services>