Skip to content

Commit dc2e7a3

Browse files
committed
#RI-3937 - build flatpack in the circleci
1 parent 2e41e8a commit dc2e7a3

File tree

2 files changed

+47
-1
lines changed

2 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/*-linux.yml
558565
- release/redisstack
559566
macosx:

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"]
@@ -78,6 +82,41 @@
7882
"Comment": "Redis GUI by Redis Ltd"
7983
}
8084
},
85+
"flatpak": {
86+
"runtimeVersion": "20.08",
87+
"modules": [
88+
{
89+
"name": "libsecret",
90+
"buildsystem": "meson",
91+
"config-opts": [
92+
"-Dmanpage=false",
93+
"-Dvapi=false",
94+
"-Dgtk_doc=false",
95+
"-Dintrospection=false"
96+
],
97+
"cleanup": ["/bin", "/include", "/lib/pkgconfig", "/share/man"],
98+
"sources": [
99+
{
100+
"type": "archive",
101+
"url": "https://download.gnome.org/sources/libsecret/0.20/libsecret-0.20.5.tar.xz",
102+
"sha256": "3fb3ce340fcd7db54d87c893e69bfc2b1f6e4d4b279065ffe66dac9f0fd12b4d"
103+
}
104+
]
105+
}
106+
],
107+
"finishArgs": [
108+
"--share=ipc",
109+
"--share=network",
110+
"--filesystem=home",
111+
"--device=dri",
112+
"--talk-name=org.freedesktop.secrets",
113+
"--talk-name=org.freedesktop.Notifications",
114+
"--talk-name=org.freedesktop.Flatpak",
115+
"--socket=fallback-x11",
116+
"--socket=wayland",
117+
"--socket=x11"
118+
]
119+
},
81120
"directories": {
82121
"app": "redisinsight",
83122
"buildResources": "resources",

0 commit comments

Comments
 (0)