-
Notifications
You must be signed in to change notification settings - Fork 75
/
com.patrikx3.redis-ui.yml
58 lines (57 loc) · 2.14 KB
/
com.patrikx3.redis-ui.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
app-id: com.patrikx3.redis-ui
runtime: org.freedesktop.Platform
runtime-version: '23.08'
sdk: org.freedesktop.Sdk
base: org.electronjs.Electron2.BaseApp
base-version: '23.08'
sdk-extensions:
- org.freedesktop.Sdk.Extension.node18
command: run.sh
separate-locales: false
finish-args:
- "--socket=x11"
- "--share=ipc"
- "--device=dri"
- "--share=network"
build-options:
append-path: /usr/lib/sdk/node18/bin
env:
NPM_CONFIG_LOGLEVEL: info
modules:
- name: p3x-redis-ui
buildsystem: simple
subdir: main
build-options:
env:
XDG_CACHE_HOME: /run/build/p3x-redis-ui/flatpak-node/cache
npm_config_cache: /run/build/p3x-redis-ui/flatpak-node/npm-cache
npm_config_offline: 'true'
YARN_CACHE_FOLDER: /run/build/p3x-redis-ui/flatpak-node/yarn-cache
build-commands:
- node ./scripts/fix-packages-publish.js flathub-before
- echo "yarn-offline-mirror "/run/build/p3x-redis-ui/flatpak-node/yarn-mirror"" >> .yarnrc
- yarn install --offline
# Build the app; in this example the dist script
# in package.json runs electron-builder
- |
. ../flatpak-node/electron-builder-arch-args.sh
npm run dist -- $ELECTRON_BUILDER_ARCH_ARGS --linux --dir
# Bundle app and dependencies
- cp -a dist/linux*unpacked /app/main
# Install app wrapper
- mkdir -p /app/main
- install -Dm755 -t /app/bin/ ../run.sh
- install -Dm444 src/electron/images/512x512.png ${FLATPAK_DEST}/share/icons/hicolor/512x512/apps/${FLATPAK_ID}.png
- install -Dm444 src/flathub/p3x-redis-ui.desktop ${FLATPAK_DEST}/share/applications/${FLATPAK_ID}.desktop
- install -Dm444 src/flathub/metainfo.xml ${FLATPAK_DEST}/share/metainfo/${FLATPAK_ID}.metainfo.xml
sources:
- type: archive
url: https://github.com/patrikx3/redis-ui/archive/refs/tags/v2024.4.165.tar.gz
sha256: ac7ba9ab1c68717d2b402eb88feb68d13a469c618eca08b9c0b3b284dbe2a071
dest: main
- generated-sources.json
# Wrapper to launch the app
- type: script
dest-filename: run.sh
commands:
- zypak-wrapper.sh /app/main/p3x-redis-ui "$@"