Skip to content

Commit e2c3f88

Browse files
committed
Issue #212: Update Flatpak
1 parent c70063e commit e2c3f88

File tree

3 files changed

+37
-40
lines changed

3 files changed

+37
-40
lines changed

.github/workflows/LinuxFlatpak.yml

Lines changed: 31 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,24 +5,52 @@ on:
55

66
jobs:
77
build_ubuntu:
8-
runs-on: ubuntu-20.04
8+
runs-on: ubuntu-latest
99

1010
steps:
11+
- name: Install Dependencies
12+
run: |
13+
sudo apt update
14+
sudo apt install -y ninja-build libglib2.0-dev libxml2-dev libyaml-dev gettext libarchive-dev gperf pkg-config libstemmer-dev python3-dev python3-pip libcurl4-openssl-dev libsystemd-dev gobject-introspection libgirepository1.0-dev itstool xsltproc
15+
sudo pip3 install meson
16+
17+
- name: Install AppStream
18+
run: |
19+
git clone https://github.com/ximion/appstream.git
20+
cd appstream
21+
meson build
22+
ninja -C build
23+
sudo ninja -C build install
24+
25+
- name: Verify AppStream Version
26+
run: |
27+
appstreamcli --version
28+
1129
- name: Setup Flatpak
1230
run: |
1331
sudo apt update
1432
sudo apt install -y flatpak-builder flatpak
1533
1634
- name: Add Flatpak repository
1735
run: |
18-
flatpak remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo
36+
sudo flatpak remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo
1937
38+
- name: Install KDE SDK and Runtime
39+
run: |
40+
sudo flatpak install -y flathub org.kde.Sdk/x86_64/6.8 org.kde.Platform/x86_64/6.8
41+
42+
- name: List Flatpak Installed Packages and Version
43+
run: |
44+
flatpak --version
45+
appstreamcli --version
46+
flatpak list
47+
2048
- name: Checkout repository
2149
uses: actions/checkout@v3
2250

2351
- name: Build Flatpak
2452
run: |
25-
flatpak-builder --repo=repo --sandbox --force-clean build-dir ./pdf4qt/Flatpak/io.github.JakubMelka.Pdf4qt.json
53+
flatpak-builder --repo=repo --sandbox --force-clean build-dir ./Flatpak/io.github.JakubMelka.Pdf4qt.json
2654
2755
- name: Build Flatpak Package
2856
run: |

Desktop/io.github.JakubMelka.Pdf4qt.appdata.xml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,10 +38,12 @@
3838
<release version="1.0.0" date="2021-09-19"/>
3939
</releases>
4040
<screenshots>
41-
<screenshot><caption>Browse PDF files easily and efficiently</caption><image>https://jakubmelka.github.io/assets/flatpak/profi-default.png</image></screenshot>
41+
<screenshot default="true"><caption>Edit content of PDF documents</caption><image>https://jakubmelka.github.io/assets/flatpak/profi-editor.png</image></screenshot>
42+
<screenshot><caption>Browse PDF files easily and efficiently</caption><image>https://jakubmelka.github.io/assets/flatpak/profi-default.png</image></screenshot>
4243
<screenshot><caption>Utilize the 'magnifying glass' feature to zoom in on specific sections of the page</caption><image>https://jakubmelka.github.io/assets/flatpak/profi-magnifier.png</image></screenshot>
4344
<screenshot><caption>Display statistics for various content types within the PDF file</caption><image>https://jakubmelka.github.io/assets/flatpak/profi-object-statistics.png</image></screenshot>
4445
<screenshot><caption>View the document details</caption><image>https://jakubmelka.github.io/assets/flatpak/profi-properties.png</image></screenshot>
4546
<screenshot><caption>List of add-ons available for the PDF editor</caption><image>https://jakubmelka.github.io/assets/flatpak/profi-addons.png</image></screenshot>
47+
<screenshot><caption>Search PDF documents using regular expressions</caption><image>https://jakubmelka.github.io/assets/flatpak/profi-search-regex.png</image></screenshot>
4648
</screenshots>
4749
</component>

Flatpak/io.github.JakubMelka.Pdf4qt.json

Lines changed: 3 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -3,16 +3,14 @@
33
"runtime": "org.kde.Sdk",
44
"runtime-version": "6.8",
55
"sdk": "org.kde.Sdk",
6-
"command": "Pdf4QtLaunchPad",
6+
"command": "Pdf4QtEditor",
77
"finish-args": [
88
"--socket=fallback-x11",
99
"--socket=wayland",
1010
"--device=dri",
1111
"--share=ipc"
1212
],
1313
"cleanup": [
14-
"/pdf4qt",
15-
"/vcpkg"
1614
],
1715
"build-options": {
1816
"env": {
@@ -71,7 +69,8 @@
7169
"name": "openjpeg",
7270
"buildsystem": "cmake-ninja",
7371
"config-opts": [
74-
"-DCMAKE_BUILD_TYPE=Release"
72+
"-DCMAKE_BUILD_TYPE=Release",
73+
"-DBUILD_CODEC=OFF"
7574
],
7675
"sources": [
7776
{
@@ -82,38 +81,6 @@
8281
}
8382
]
8483
},
85-
{
86-
"name": "freetype",
87-
"buildsystem": "cmake-ninja",
88-
"builddir": true,
89-
"config-opts": [
90-
"-DCMAKE_BUILD_TYPE=Release",
91-
"-DBUILD_SHARED_LIBS=true"
92-
],
93-
"sources": [
94-
{
95-
"type": "git",
96-
"url": "https://github.com/freetype/freetype.git",
97-
"tag": "VER-2-13-3",
98-
"commit": "42608f77f20749dd6ddc9e0536788eaad70ea4b5"
99-
}
100-
]
101-
},
102-
{
103-
"name": "libjpegturbo",
104-
"buildsystem": "cmake-ninja",
105-
"config-opts": [
106-
"-DCMAKE_BUILD_TYPE=Release"
107-
],
108-
"sources": [
109-
{
110-
"type": "git",
111-
"url": "https://github.com/libjpeg-turbo/libjpeg-turbo.git",
112-
"tag": "3.0.90",
113-
"commit": "a9f7490cda6f6840ff3662b4d67ce0a91de5c9a5"
114-
}
115-
]
116-
},
11784
{
11885
"name": "asmjit",
11986
"buildsystem": "cmake-ninja",

0 commit comments

Comments
 (0)