Merge remote-tracking branch 'remotes/origin/branches/linuxinstall'

This commit is contained in:
Jakub Melka 2024-01-21 15:39:13 +01:00
commit 8406fd0c47
5 changed files with 53 additions and 15 deletions

View File

@ -1,6 +1,10 @@
name: LinuxInstall
on:
create:
tags:
- 'v*'
workflow_dispatch:
jobs:
@ -8,11 +12,23 @@ jobs:
runs-on: ubuntu-20.04
steps:
- name: Install dependencies
run: |
sudo apt-get update
sudo apt-get install -y libxcb-cursor0
sudo apt-get install -y libspeechd2
- name: Checkout repository
uses: actions/checkout@v4
with:
path: pdf4qt
- name: Set up GCC
uses: egor-tensin/setup-gcc@v1
with:
version: 11
platform: x64
- name: 'VCPKG: Set up VCPKG'
run: |
git clone --depth=1 https://github.com/microsoft/vcpkg.git
@ -50,9 +66,17 @@ jobs:
- name: Build project
working-directory: pdf4qt
run: |
cmake -B build -S . -DPDF4QT_INSTALL_QT_DEPENDENCIES=0 -DCMAKE_TOOLCHAIN_FILE=../vcpkg/scripts/buildsystems/vcpkg.cmake -DCMAKE_BUILD_TYPE=Release -DVCPKG_OVERLAY_PORTS=vcpkg/overlays
cmake -B build -S . -DPDF4QT_INSTALL_QT_DEPENDENCIES=0 -DCMAKE_TOOLCHAIN_FILE=../vcpkg/scripts/buildsystems/vcpkg.cmake -DCMAKE_BUILD_TYPE=Release -DVCPKG_OVERLAY_PORTS=vcpkg/overlays -DPDF4QT_INSTALL_TO_USR=ON
cmake --build build -j6
cmake --install build
cp -rp build/install build/install_appimage
- name: 'Linux Deploy Qt'
working-directory: pdf4qt/build
run: |
wget -O deploy.AppImage https://github.com/probonopd/linuxdeployqt/releases/download/continuous/linuxdeployqt-continuous-x86_64.AppImage
chmod +x deploy.AppImage
./deploy.AppImage install/usr/share/applications/io.github.JakubMelka.Pdf4qt.desktop -executable-dir=install/usr/bin -extra-plugins=iconengines,imageformats,texttospeech
- name: Make DEB package
working-directory: pdf4qt/build
@ -65,3 +89,17 @@ jobs:
name: ubuntu-deb-package
path: ./pdf4qt/build/*.deb
retention-days: 30
- name: 'Make AppImage'
working-directory: pdf4qt/build
run: |
cp install_appimage/usr/share/icons/hicolor/scalable/apps/io.github.JakubMelka.Pdf4qt.svg install_appimage/io.github.JakubMelka.Pdf4qt.svg
./deploy.AppImage install_appimage/usr/share/applications/io.github.JakubMelka.Pdf4qt.desktop -appimage -executable-dir=install_appimage/usr/bin -always-overwrite -extra-plugins=iconengines,imageformats,texttospeech
- name: Upload AppImage package
uses: actions/upload-artifact@v3
with:
name: ubuntu-appimage
path: ./pdf4qt/build/*.AppImage
retention-days: 30

View File

@ -4,7 +4,7 @@ Type=Application
Name=PDF4QT DocDiff
Comment=Compare PDF documents
Exec=Pdf4QtDocDiff
Icon=io.github.JakubMelka.Pdf4qt.Pdf4QtDocDiff.svg
Icon=io.github.JakubMelka.Pdf4qt.Pdf4QtDocDiff
Terminal=false
Categories=Office
MimeType=application/pdf
Categories=Office;
MimeType=application/pdf;

View File

@ -4,7 +4,7 @@ Type=Application
Name=PDF4QT DocPage Organizer
Comment=Organize, merge, split, and duplicate pages in PDF files
Exec=Pdf4QtDocPageOrganizer
Icon=io.github.JakubMelka.Pdf4qt.Pdf4QtDocPageOrganizer.svg
Icon=io.github.JakubMelka.Pdf4qt.Pdf4QtDocPageOrganizer
Terminal=false
Categories=Office
MimeType=application/pdf
Categories=Office;
MimeType=application/pdf;

View File

@ -4,7 +4,7 @@ Type=Application
Name=PDF4QT Viewer Lite
Comment=View and navigate PDF documents
Exec=Pdf4QtViewerLite
Icon=io.github.JakubMelka.Pdf4qt.Pdf4QtViewerLite.svg
Icon=io.github.JakubMelka.Pdf4qt.Pdf4QtViewerLite
Terminal=false
Categories=Office
MimeType=application/pdf
Categories=Office;
MimeType=application/pdf;

View File

@ -4,7 +4,7 @@ Type=Application
Name=PDF4QT Viewer Profi
Comment=Edit and modify PDF files
Exec=Pdf4QtViewerProfi
Icon=io.github.JakubMelka.Pdf4qt.svg
Icon=io.github.JakubMelka.Pdf4qt
Terminal=false
Categories=Office
MimeType=application/pdf
Categories=Office;
MimeType=application/pdf;