-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathorg.standardnotes.standardnotes.yml
115 lines (113 loc) · 4.94 KB
/
org.standardnotes.standardnotes.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
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
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
app-id: org.standardnotes.standardnotes
runtime: org.freedesktop.Platform
runtime-version: &runtime-version '24.08'
sdk: org.freedesktop.Sdk
base: org.electronjs.Electron2.BaseApp
base-version: *runtime-version
command: start-standardnotes
finish-args:
# camera access for moments
- --device=all
- --share=ipc
- --share=network
- --socket=wayland
- --socket=fallback-x11
- --talk-name=org.freedesktop.Notifications
- --talk-name=org.freedesktop.secrets
# Tray icon
- --talk-name=org.kde.StatusNotifierWatcher
# Legacy text backup directory: https://github.com/standardnotes/app/blob/6a7c5277f8a957944fea59ce146a7aecdaa52da7/packages/desktop/app/javascripts/Main/FileBackups/FileBackupsManager.ts#L105
- --persist=Standard Notes Backups
# For backups
- --persist=Documents
- --env=ELECTRON_OZONE_PLATFORM_HINT=auto
- --env=XCURSOR_PATH=~/.icons:/app/share/icons:/icons:/run/host/user-share/icons:/run/host/share/icons
modules:
- name: dbus-run-session
buildsystem: cmake
cleanup: ['*']
sources:
- type: archive
url: https://gitlab.freedesktop.org/dbus/dbus/-/archive/dbus-1.16.2/dbus-dbus-1.16.2.tar.gz
sha256: d77cc71acd93e85f2bd2a6fe3a40e5bd023519e3e9fa9b5361e7109f42b74060
x-checker-data:
type: anitya
project-id: 5356
url-template: https://gitlab.freedesktop.org/dbus/dbus/-/archive/dbus-$version/dbus-dbus-$version.tar.gz
# fix Flatpak libsecret
# https://github.com/flathub/org.signal.Signal/pull/756/commits/2caf105b18f906e7707f67b3cf7384a21f461564
- name: libsecret
buildsystem: meson
config-opts:
- -Dmanpage=false
- -Dcrypto=disabled
- -Dvapi=false
- -Dgtk_doc=false
- -Dintrospection=false
- -Dbash_completion=disabled
cleanup:
- /bin
- /include
- /lib/pkgconfig
- /share/man
sources:
- type: archive
url: https://download.gnome.org/sources/libsecret/0.21/libsecret-0.21.7.tar.xz
sha256: 6b452e4750590a2b5617adc40026f28d2f4903de15f1250e1d1c40bfd68ed55e
x-checker-data:
type: gnome
name: libsecret
stable-only: true
- name: standardnotes
buildsystem: simple
build-commands:
- bsdtar -Oxf standard-notes.deb data.tar.xz | bsdtar -xf -
- mv "opt/Standard Notes" ${FLATPAK_DEST}/standardnotes
# To allow separate locales
# https://searchfox.org/mozilla-central/rev/8a4f55bc09ffc5c25dcb4586c51ae4a9fee77b4c/taskcluster/docker/firefox-flatpak/runme.sh#131-133
- |
for lang in ${FLATPAK_DEST}/standardnotes/locales/*.pak
do
locale="$(basename -s .pak $lang)"
install -Dm644 -t "${FLATPAK_DEST}/share/runtime/locale/${locale%%-*}/" "$lang"
ln -sf "${FLATPAK_DEST}/share/runtime/locale/${locale%%-*}/$(basename $lang)" "${FLATPAK_DEST}/standardnotes/locales/$(basename $lang)"
done
- install -Dm644 usr/share/icons/hicolor/512x512/apps/standard-notes.png "${FLATPAK_DEST}/share/icons/hicolor/512x512/apps/${FLATPAK_ID}.png"
- install -Dm644 usr/share/applications/standard-notes.desktop "${FLATPAK_DEST}/share/applications/${FLATPAK_ID}.desktop"
- desktop-file-edit --set-key=Exec --set-value='start-standardnotes %U' --set-icon=${FLATPAK_ID} "${FLATPAK_DEST}/share/applications/${FLATPAK_ID}.desktop"
sources:
- type: file
dest-filename: standard-notes.deb
only-arches: [x86_64]
url: https://github.com/standardnotes/app/releases/download/%40standardnotes%2Fdesktop%403.196.1/standard-notes-3.196.1-linux-amd64.deb
sha256: 6be24fb38ab83d4141bf40a6bb85b8277f5c7d97acc90587c4de70b95c8fba59
x-checker-data:
type: anitya
project-id: 146681
url-template: https://github.com/standardnotes/app/releases/download/%40standardnotes%2Fdesktop%40$version/standard-notes-$version-linux-amd64.deb
stable-only: true
- type: file
dest-filename: standard-notes.deb
only-arches: [aarch64]
url: https://github.com/standardnotes/app/releases/download/%40standardnotes%2Fdesktop%403.196.1/standard-notes-3.196.1-linux-arm64.deb
sha256: 3dbad11161a712986e00fd6ca503047ceb26414d323bda9b323211a5143db3a6
x-checker-data:
type: anitya
project-id: 146681
url-template: https://github.com/standardnotes/app/releases/download/%40standardnotes%2Fdesktop%40$version/standard-notes-$version-linux-arm64.deb
stable-only: true
- name: start-script
buildsystem: simple
build-commands:
# Install the wrapper script to start it.
- install -Dm 755 start-standardnotes.sh /app/bin/start-standardnotes
sources:
- type: file
path: start-standardnotes.sh
- name: metainfo
buildsystem: simple
build-commands:
- install -Dm644 org.standardnotes.standardnotes.metainfo.xml /app/share/metainfo/$FLATPAK_ID.metainfo.xml
sources:
- type: file
path: org.standardnotes.standardnotes.metainfo.xml