Skip to content

Commit e97e10d

Browse files
committed
simplify flatpak build and add flathub link to website
1 parent d0a8821 commit e97e10d

File tree

2 files changed

+20
-35
lines changed

2 files changed

+20
-35
lines changed

docs/linux.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,10 @@ title: Download MMapper for Linux
55

66
## Download MMapper for Linux
77

8+
<a href='https://flathub.org/apps/org.mume.MMapper'>
9+
<img width='200' alt='Get it on Flathub' src='https://flathub.org/api/badge?locale=en' style="vertical-align: middle;"/>
10+
</a>
11+
812
[![Get it from the Snap Store](https://snapcraft.io/en/dark/install.svg)](https://snapcraft.io/mmapper)
913

1014
{% for asset in site.github.latest_release.assets %}

org.mume.MMapper.json

Lines changed: 16 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -1,40 +1,27 @@
11
{
22
"app-id": "org.mume.MMapper",
33
"runtime": "org.kde.Platform",
4-
"runtime-version": "6.8",
4+
"runtime-version": "6.9",
55
"sdk": "org.kde.Sdk",
66
"finish-args": [
77
"--share=network",
88
"--socket=wayland",
99
"--socket=fallback-x11",
1010
"--share=ipc",
1111
"--device=dri",
12-
"--filesystem=xdg-documents:rw"
12+
"--filesystem=xdg-documents"
1313
],
1414
"command": "mmapper",
1515
"cleanup": [
16-
"/app/images",
17-
"/app/include",
18-
"/app/arda.xml",
19-
"*.a"
16+
"*.a",
17+
"/arda.xml",
18+
"/images",
19+
"/include",
20+
"/lib/cmake",
21+
"/lib/pkgconfig",
22+
"/mkspecs"
2023
],
2124
"modules": [
22-
{
23-
"name": "openssl3",
24-
"buildsystem": "simple",
25-
"sources": [
26-
{
27-
"type": "git",
28-
"url": "https://github.com/openssl/openssl.git",
29-
"tag": "openssl-3.5.1"
30-
}
31-
],
32-
"build-commands": [
33-
"./config shared no-tests no-unit-test no-weak-ssl-ciphers no-idea no-mdc2 no-rc5 --prefix=/app",
34-
"make",
35-
"make install"
36-
]
37-
},
3825
{
3926
"name": "glm",
4027
"buildsystem": "simple",
@@ -46,7 +33,8 @@
4633
}
4734
],
4835
"build-commands": [
49-
"cp -r glm /app/include/"
36+
"mkdir -p /app/include/glm",
37+
"cp -r glm/* /app/include/glm/"
5038
]
5139
},
5240
{
@@ -91,8 +79,8 @@
9179
"sources": [
9280
{
9381
"type": "archive",
94-
"url": "https://github.com/frankosterfeld/qtkeychain/archive/0.14.3.tar.gz",
95-
"sha256": "a22c708f351431d8736a0ac5c562414f2b7bb919a6292cbca1ff7ac0849cb0a7",
82+
"url": "https://github.com/frankosterfeld/qtkeychain/archive/0.15.tar.gz",
83+
"sha256": "2bf85c721315f69f6b486323a2833c2f38b9c1807941bbb3ac16cf11c5b26588",
9684
"x-checker-data": {
9785
"type": "anitya",
9886
"project-id": 4138,
@@ -102,11 +90,8 @@
10290
}
10391
],
10492
"config-opts": [
105-
"-DCMAKE_INSTALL_LIBDIR=/app/lib",
106-
"-DLIB_INSTALL_DIR=/app/lib",
10793
"-DBUILD_TRANSLATIONS=OFF",
108-
"-DBUILD_WITH_QT6=ON",
109-
"-DCMAKE_PREFIX_PATH=/app"
94+
"-DBUILD_WITH_QT6=ON"
11095
]
11196
},
11297
{
@@ -130,7 +115,7 @@
130115
{
131116
"type": "git",
132117
"url": "https://github.com/MUME/images.git",
133-
"tag": "main"
118+
"commit": "235b9d6c4d66304f52af16bae982b3e0ae7f4738"
134119
}
135120
],
136121
"build-commands": [
@@ -155,11 +140,7 @@
155140
"-DWITH_MAP=/app/arda.xml",
156141
"-DWITH_IMAGES=/app/images/",
157142
"-DWITH_TESTS=OFF",
158-
"-DOPENSSL_ROOT_DIR=/app",
159-
"-DCMAKE_PREFIX_PATH=/app/lib/qt6:/app"
160-
],
161-
"build-commands": [
162-
"sed -i 's|^Exec=.*|Exec=/app/bin/mmapper|' ../src/org.mume.MMapper.desktop"
143+
"-DWITH_UPDATER=OFF"
163144
]
164145
}
165146
]

0 commit comments

Comments
 (0)