Skip to content

Commit 0fe841a

Browse files
Merge pull request #1519 from RedisInsight/build/flathub
2 parents 68e7721 + 955bbf4 commit 0fe841a

File tree

3 files changed

+47
-1
lines changed

3 files changed

+47
-1
lines changed

.circleci/config.yml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -511,7 +511,13 @@ jobs:
511511
- run:
512512
name: install dependencies
513513
command: |
514-
sudo apt-get update -y && sudo apt-get install -y rpm
514+
sudo apt-get update -y && sudo apt-get install -y rpm flatpak flatpak-builder ca-certificates
515+
flatpak remote-add --user --if-not-exists flathub https://dl.flathub.org/repo/flathub.flatpakrepo
516+
flatpak install flathub --no-deps --arch x86_64 --assumeyes \
517+
runtime/org.freedesktop.Sdk/x86_64/20.08 \
518+
runtime/org.freedesktop.Platform/x86_64/20.08 \
519+
org.electronjs.Electron2.BaseApp/x86_64/20.08
520+
515521
yarn --cwd redisinsight/api/ install
516522
yarn install
517523
yarn build:statics
@@ -554,6 +560,7 @@ jobs:
554560
- release/RedisInsight*.deb
555561
- release/RedisInsight*.rpm
556562
- release/RedisInsight*.AppImage
563+
- release/RedisInsight*.flatpak
557564
- release/RedisInsight*.snap
558565
- release/*-linux.yml
559566
- release/redisstack

electron-builder.json

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,10 @@
6464
"target": "deb",
6565
"arch": ["x64"]
6666
},
67+
{
68+
"target": "flatpak",
69+
"arch": ["x64"]
70+
},
6771
{
6872
"target": "rpm",
6973
"arch": ["x64"]
@@ -90,6 +94,41 @@
9094
"confinement": "strict",
9195
"stagePackages": ["default"]
9296
},
97+
"flatpak": {
98+
"runtimeVersion": "20.08",
99+
"modules": [
100+
{
101+
"name": "libsecret",
102+
"buildsystem": "meson",
103+
"config-opts": [
104+
"-Dmanpage=false",
105+
"-Dvapi=false",
106+
"-Dgtk_doc=false",
107+
"-Dintrospection=false"
108+
],
109+
"cleanup": ["/bin", "/include", "/lib/pkgconfig", "/share/man"],
110+
"sources": [
111+
{
112+
"type": "archive",
113+
"url": "https://download.gnome.org/sources/libsecret/0.20/libsecret-0.20.5.tar.xz",
114+
"sha256": "3fb3ce340fcd7db54d87c893e69bfc2b1f6e4d4b279065ffe66dac9f0fd12b4d"
115+
}
116+
]
117+
}
118+
],
119+
"finishArgs": [
120+
"--share=ipc",
121+
"--share=network",
122+
"--filesystem=home",
123+
"--device=dri",
124+
"--talk-name=org.freedesktop.secrets",
125+
"--talk-name=org.freedesktop.Notifications",
126+
"--talk-name=org.freedesktop.Flatpak",
127+
"--socket=fallback-x11",
128+
"--socket=wayland",
129+
"--socket=x11"
130+
]
131+
},
93132
"directories": {
94133
"app": "redisinsight",
95134
"buildResources": "resources",

resources/icons/1024x1024.png

-99.8 KB
Binary file not shown.

0 commit comments

Comments
 (0)