mirror of
https://github.com/JakubMelka/PDF4QT.git
synced 2025-06-05 21:59:17 +02:00
Merge remote-tracking branch 'remotes/origin/branches/linuxinstall'
This commit is contained in:
40
.github/workflows/LinuxInstall.yml
vendored
40
.github/workflows/LinuxInstall.yml
vendored
@@ -1,6 +1,10 @@
|
|||||||
name: LinuxInstall
|
name: LinuxInstall
|
||||||
|
|
||||||
on:
|
on:
|
||||||
|
create:
|
||||||
|
tags:
|
||||||
|
- 'v*'
|
||||||
|
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
@@ -8,11 +12,23 @@ jobs:
|
|||||||
runs-on: ubuntu-20.04
|
runs-on: ubuntu-20.04
|
||||||
|
|
||||||
steps:
|
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
|
- name: Checkout repository
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
path: pdf4qt
|
path: pdf4qt
|
||||||
|
|
||||||
|
- name: Set up GCC
|
||||||
|
uses: egor-tensin/setup-gcc@v1
|
||||||
|
with:
|
||||||
|
version: 11
|
||||||
|
platform: x64
|
||||||
|
|
||||||
- name: 'VCPKG: Set up VCPKG'
|
- name: 'VCPKG: Set up VCPKG'
|
||||||
run: |
|
run: |
|
||||||
git clone --depth=1 https://github.com/microsoft/vcpkg.git
|
git clone --depth=1 https://github.com/microsoft/vcpkg.git
|
||||||
@@ -50,9 +66,17 @@ jobs:
|
|||||||
- name: Build project
|
- name: Build project
|
||||||
working-directory: pdf4qt
|
working-directory: pdf4qt
|
||||||
run: |
|
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 --build build -j6
|
||||||
cmake --install build
|
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
|
- name: Make DEB package
|
||||||
working-directory: pdf4qt/build
|
working-directory: pdf4qt/build
|
||||||
@@ -65,3 +89,17 @@ jobs:
|
|||||||
name: ubuntu-deb-package
|
name: ubuntu-deb-package
|
||||||
path: ./pdf4qt/build/*.deb
|
path: ./pdf4qt/build/*.deb
|
||||||
retention-days: 30
|
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
|
||||||
|
|
||||||
|
@@ -4,7 +4,7 @@ Type=Application
|
|||||||
Name=PDF4QT DocDiff
|
Name=PDF4QT DocDiff
|
||||||
Comment=Compare PDF documents
|
Comment=Compare PDF documents
|
||||||
Exec=Pdf4QtDocDiff
|
Exec=Pdf4QtDocDiff
|
||||||
Icon=io.github.JakubMelka.Pdf4qt.Pdf4QtDocDiff.svg
|
Icon=io.github.JakubMelka.Pdf4qt.Pdf4QtDocDiff
|
||||||
Terminal=false
|
Terminal=false
|
||||||
Categories=Office
|
Categories=Office;
|
||||||
MimeType=application/pdf
|
MimeType=application/pdf;
|
||||||
|
@@ -4,7 +4,7 @@ Type=Application
|
|||||||
Name=PDF4QT DocPage Organizer
|
Name=PDF4QT DocPage Organizer
|
||||||
Comment=Organize, merge, split, and duplicate pages in PDF files
|
Comment=Organize, merge, split, and duplicate pages in PDF files
|
||||||
Exec=Pdf4QtDocPageOrganizer
|
Exec=Pdf4QtDocPageOrganizer
|
||||||
Icon=io.github.JakubMelka.Pdf4qt.Pdf4QtDocPageOrganizer.svg
|
Icon=io.github.JakubMelka.Pdf4qt.Pdf4QtDocPageOrganizer
|
||||||
Terminal=false
|
Terminal=false
|
||||||
Categories=Office
|
Categories=Office;
|
||||||
MimeType=application/pdf
|
MimeType=application/pdf;
|
||||||
|
@@ -4,7 +4,7 @@ Type=Application
|
|||||||
Name=PDF4QT Viewer Lite
|
Name=PDF4QT Viewer Lite
|
||||||
Comment=View and navigate PDF documents
|
Comment=View and navigate PDF documents
|
||||||
Exec=Pdf4QtViewerLite
|
Exec=Pdf4QtViewerLite
|
||||||
Icon=io.github.JakubMelka.Pdf4qt.Pdf4QtViewerLite.svg
|
Icon=io.github.JakubMelka.Pdf4qt.Pdf4QtViewerLite
|
||||||
Terminal=false
|
Terminal=false
|
||||||
Categories=Office
|
Categories=Office;
|
||||||
MimeType=application/pdf
|
MimeType=application/pdf;
|
||||||
|
@@ -4,7 +4,7 @@ Type=Application
|
|||||||
Name=PDF4QT Viewer Profi
|
Name=PDF4QT Viewer Profi
|
||||||
Comment=Edit and modify PDF files
|
Comment=Edit and modify PDF files
|
||||||
Exec=Pdf4QtViewerProfi
|
Exec=Pdf4QtViewerProfi
|
||||||
Icon=io.github.JakubMelka.Pdf4qt.svg
|
Icon=io.github.JakubMelka.Pdf4qt
|
||||||
Terminal=false
|
Terminal=false
|
||||||
Categories=Office
|
Categories=Office;
|
||||||
MimeType=application/pdf
|
MimeType=application/pdf;
|
||||||
|
Reference in New Issue
Block a user