Skip to content

Commit 66a1986

Browse files
committed
Flatpat: modify io.github.KangLin.RabbitRemoteControl.json
1 parent 930ba87 commit 66a1986

File tree

5 files changed

+42
-58
lines changed

5 files changed

+42
-58
lines changed

.github/workflows/flatpak.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ jobs:
3333
uses: flathub-infra/flatpak-github-actions/flatpak-builder@master
3434
with:
3535
bundle: RabbitRemoteControl.flatpak
36-
manifest-path: Package/io.github.KangLin.RabbitRemoteControl.json
36+
manifest-path: Package/Flatpak/io.github.KangLin.RabbitRemoteControl.json
3737
cache-key: flatpak-builder-${{ github.sha }}
3838
arch: ${{ matrix.variant.arch }}
3939
verbose: true

.gitmodules

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
[submodule "Package/Flatpak/shared-modules"]
2+
path = Package/Flatpak/shared-modules
3+
url = https://github.com/flathub/shared-modules.git

Package/io.github.KangLin.RabbitRemoteControl.json renamed to Package/Flatpak/io.github.KangLin.RabbitRemoteControl.json

Lines changed: 36 additions & 57 deletions
Original file line numberDiff line numberDiff line change
@@ -9,32 +9,6 @@
99
"V": "1"
1010
}
1111
},
12-
"cleanup": [
13-
"*.la",
14-
"*.a",
15-
"/include",
16-
"/lib/cmake",
17-
"/lib/pkgconfig"
18-
],
19-
"finish-args": [
20-
"--share=network",
21-
"--socket=pulseaudio",
22-
"--socket=pcsc",
23-
"--socket=ssh-auth",
24-
"--socket=x11",
25-
"--device=all",
26-
"--filesystem=~/Documents",
27-
"--filesystem=xdg-documents",
28-
"--talk-name=org.freedesktop.Notifications",
29-
"--talk-name=org.freedesktop.secrets",
30-
"--talk-name=org.kde.StatusNotifierWatcher",
31-
"--system-talk-name=org.freedesktop.Avahi"
32-
],
33-
"cleanup-commands": [
34-
"rm -fr /var/tmp/*"
35-
],
36-
"cleanup-platform-commands": [
37-
],
3812
"modules": [
3913
{
4014
"name": "xprop",
@@ -114,7 +88,7 @@
11488
"sha256": "14b7dcc72e91e08151c58b981a7b570ab2663f630e7d2837645d5a9c612c1b79"
11589
}
11690
],
117-
"buildsystem": "cmake",
91+
"buildsystem": "cmake-ninja",
11892
"builddir": true,
11993
"config-opts": [
12094
"-DWITH_EXAMPLES=OFF"
@@ -142,6 +116,7 @@
142116
"cleanup": [
143117
]
144118
},
119+
"shared-modules/libusb/libusb.json",
145120
{
146121
"name": "FreeRDP",
147122
"disabled": false,
@@ -152,7 +127,7 @@
152127
"sha256": "a7a979382703c2bc18aa9b22cfa12d7a441b6927ab45ac62ef8353786bc92241"
153128
}
154129
],
155-
"buildsystem": "cmake",
130+
"buildsystem": "cmake-ninja",
156131
"builddir": true,
157132
"config-opts": [
158133
"-DCMAKE_VERBOSE_MAKEFILE=OFF",
@@ -184,7 +159,7 @@
184159
"sha256": "62352c7795e231dfce044beb96156065a05a05c974e5de9e023d688d8ff675d7"
185160
}
186161
],
187-
"buildsystem": "cmake",
162+
"buildsystem": "cmake-ninja",
188163
"builddir": true,
189164
"config-opts": [
190165
"-DWITH_OPENSSL=ON",
@@ -207,7 +182,7 @@
207182
"sha256": "3da93db5469c30588cfeb283d9d62edfc6ded9eb0edc10a4f5bbfb7d722ea802"
208183
}
209184
],
210-
"buildsystem": "cmake",
185+
"buildsystem": "cmake-ninja",
211186
"builddir": true,
212187
"config-opts": [
213188
"-DBUILD_TESTING=OFF"
@@ -225,46 +200,25 @@
225200
"branch": "master"
226201
}
227202
],
228-
"buildsystem": "simple",
229-
"build-commands": [
230-
"cp -R /run/build/RabbitCommon /var/tmp/"
231-
]
232-
},
233-
{
234-
"name": "RabbitRemoteControl-Flathub",
235-
"disabled": true,
236-
"sources": [
237-
{
238-
"type": "git",
239-
"url": "https://github.com/KangLin/RabbitRemoteControl.git",
240-
"branch": "master"
241-
}
242-
],
243-
"buildsystem": "cmake",
203+
"buildsystem": "cmake-ninja",
244204
"builddir": true,
245205
"config-opts": [
246-
"-DRabbitCommon_ROOT=/var/tmp/RabbitCommon",
247-
"-DCMAKE_BUILD_TYPE:STRING=Release"
248-
],
249-
"build-options": {
250-
"env": {
251-
}
252-
}
206+
"-DCMAKE_BUILD_TYPE=Release"
207+
]
253208
},
254209
{
255210
"name": "RabbitRemoteControl",
256211
"disabled": false,
257212
"sources": [
258213
{
259214
"type": "dir",
260-
"path": ".."
215+
"path": "../.."
261216
}
262217
],
263-
"buildsystem": "cmake",
218+
"buildsystem": "cmake-ninja",
264219
"builddir": true,
265220
"config-opts": [
266-
"-DRabbitCommon_ROOT=/var/tmp/RabbitCommon",
267-
"-DCMAKE_BUILD_TYPE:STRING=Release",
221+
"-DCMAKE_BUILD_TYPE=Release",
268222
"-DCMARK_SHARED=OFF",
269223
"-DCMARK_TESTS=OFF",
270224
"-DCMARK_STATIC=ON"
@@ -275,7 +229,32 @@
275229
},
276230
"post-install": [
277231
"sed -i 's|Path=/app/bin|Path=/bin|' /app/share/applications/io.github.KangLin.RabbitRemoteControl.desktop"
232+
],
233+
"cleanup": [
278234
]
279235
}
236+
],
237+
"cleanup": [
238+
"*.la",
239+
"*.a",
240+
"/include",
241+
"/lib/cmake",
242+
"/lib/pkgconfig"
243+
],
244+
"cleanup-commands": [
245+
],
246+
"finish-args": [
247+
"--share=ipc",
248+
"--share=network",
249+
"--socket=pulseaudio",
250+
"--socket=pcsc",
251+
"--socket=ssh-auth",
252+
"--socket=x11",
253+
"--device=all",
254+
"--filesystem=xdg-documents",
255+
"--talk-name=org.freedesktop.Notifications",
256+
"--talk-name=org.freedesktop.secrets",
257+
"--talk-name=org.kde.StatusNotifierWatcher",
258+
"--system-talk-name=org.freedesktop.Avahi"
280259
]
281260
}

Package/Flatpak/shared-modules

Submodule shared-modules added at a6c788b

docs/Compile/Linux.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -788,6 +788,7 @@ After install sdk and runtime, Run again:
788788
789789
- Documents
790790
- [flatpak manifest](https://docs.flatpak.org/en/latest/flatpak-builder-command-reference.html#flatpak-manifest)
791+
- [Sandbox Permissions](https://docs.flatpak.org/en/latest/sandbox-permissions.html)
791792
- [Submission](https://docs.flathub.org/docs/for-app-authors/submission)
792793
793794
### Script

0 commit comments

Comments
 (0)