forked from flathub/com.notesnook.Notesnook
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcom.notesnook.Notesnook.yml
More file actions
92 lines (85 loc) · 3.66 KB
/
com.notesnook.Notesnook.yml
File metadata and controls
92 lines (85 loc) · 3.66 KB
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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
app-id: com.notesnook.Notesnook
runtime: org.freedesktop.Platform
runtime-version: "24.08"
sdk: org.freedesktop.Sdk
base: org.electronjs.Electron2.BaseApp
base-version: "24.08"
sdk-extensions:
- org.freedesktop.Sdk.Extension.node20
command: start-notesnook
separate-locales: false
finish-args:
- --share=ipc
# Wayland access
- --socket=wayland
# X11 fallback socket
- --socket=fallback-x11
# audio
- --socket=pulseaudio
# required for Electron hardware acceleration
- --device=dri
# Syncing & login
- --share=network
# Backups
- --filesystem=xdg-documents/Notesnook:create
# System Tray Icon
- --talk-name=org.kde.StatusNotifierWatcher
# Notifications
- --talk-name=org.freedesktop.Notifications
# required to fix cursor scaling on wayland
- --env=XCURSOR_PATH=/run/host/user-share/icons:/run/host/share/icons
build-options:
append-path: /usr/lib/sdk/node20/bin
env:
NPM_CONFIG_LOGLEVEL: info
modules:
- name: notesnook
buildsystem: simple
build-options:
env:
XDG_CACHE_HOME: /run/build/notesnook/flatpak-node/cache
npm_config_cache: /run/build/notesnook/flatpak-node/npm-cache
npm_config_offline: "true"
npm_config_runtime: "electron"
npm_config_nodedir: /run/build/notesnook/flatpak-node/cache/node-gyp/31.7.4
build-commands:
- ./flatpak-node/electron-builder-arch-args.sh
- |
set -e
npm install --omit=dev --offline --ignore-scripts
cd apps/desktop/
npm i --offline --legacy-peer-deps --ignore-scripts
npx patch-package
npx --offline electron-builder $ELECTRON_BUILDER_ARCH_ARGS --linux --dir
# Bundle app and dependencies
cp -r output/linux-*unpacked/* /app/bin/
- install -Dm 755 start-notesnook.sh /app/bin/start-notesnook
post-install:
- install -Dm644 ./apps/desktop/assets/icons/16x16.png /app/share/icons/hicolor/16x16/apps/$FLATPAK_ID.png
- install -Dm644 ./apps/desktop/assets/icons/24x24.png /app/share/icons/hicolor/24x24/apps/$FLATPAK_ID.png
- install -Dm644 ./apps/desktop/assets/icons/32x32.png /app/share/icons/hicolor/32x32/apps/$FLATPAK_ID.png
- install -Dm644 ./apps/desktop/assets/icons/64x64.png /app/share/icons/hicolor/64x64/apps/$FLATPAK_ID.png
- install -Dm644 ./apps/desktop/assets/icons/48x48.png /app/share/icons/hicolor/48x48/apps/$FLATPAK_ID.png
- install -Dm644 ./apps/desktop/assets/icons/128x128.png /app/share/icons/hicolor/128x128/apps/$FLATPAK_ID.png
- install -Dm644 ./apps/desktop/assets/icons/256x256.png /app/share/icons/hicolor/256x256/apps/$FLATPAK_ID.png
- install -Dm644 ./apps/desktop/assets/icons/512x512.png /app/share/icons/hicolor/512x512/apps/$FLATPAK_ID.png
- install -D com.notesnook.Notesnook.desktop -t /app/share/applications/
- install -D com.notesnook.Notesnook.metainfo.xml -t /app/share/metainfo/
sources:
- generated-sources.json
- type: git
url: https://github.com/streetwriters/notesnook.git
commit: 46a74f95124999bdeb7f32723690a662ac8b3a1d
- type: archive
url: https://github.com/streetwriters/notesnook/releases/download/v3.0.25/notesnook_build_v3.0.25.zip
sha256: 122af8c4525bb0cc60dda24838bf6614c671d0fca26e5773a99a00ba53bebb19
strip-components: 0
- type: file
path: com.notesnook.Notesnook.desktop
- type: file
path: com.notesnook.Notesnook.metainfo.xml
- type: script
dest-filename: start-notesnook.sh
commands:
- export TMPDIR="$XDG_RUNTIME_DIR/app/$FLATPAK_ID"
- zypak-wrapper.sh /app/bin/notesnook --ozone-platform-hint=auto --enable-features=WaylandWindowDecorations "$@"