-
Notifications
You must be signed in to change notification settings - Fork 13
/
snapcraft.yaml
92 lines (89 loc) · 2.45 KB
/
snapcraft.yaml
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
# Kronos - Snapcraft Build - Known to build in most Ubuntu versions
# https://kronoswallet.org
# https://github.com/metaspartan/kronos
# By MetaSpartan
name: kronos
version: '2.0.8'
summary: Kronos
description: |
A Dashboard Interface and Wallet for Denarius (D), Ethereum (ETH), and Denarii (ARI) built with NodeJS and Electron
grade: stable
confinement: strict
plugs: # plugs for theming, font settings, cursor and to use gtk3 file chooser
gtk-3-themes:
interface: content
target: $SNAP/data-dir/themes
default-provider: gtk-common-themes:gtk-3-themes
icon-themes:
interface: content
target: $SNAP/data-dir/icons
default-provider: gtk-common-themes:icon-themes
sound-themes:
interface: content
target: $SNAP/data-dir/sounds
default-provider: gtk-common-themes:sounds-themes
apps:
kronosd:
command: bin/node -r esm ./bin/kronos
plugs: [home, network, network-bind]
daemon: forking
headless:
command: bin/node -r esm ./bin/kronos
plugs: [home, network, network-bind]
environment:
XDG_DATA_DIRS: $SNAP_USER_DATA:/var/lib/snapd/desktop:$XDG_DATA_DIRS
# Override HOME so the datadir is located at
# ~/snap/kronos/common/Kronos/ instead of
# ~/snap/kronos/current/Kronos/, and each new version of the
# snap won't have a different data directory:
# https://docs.snapcraft.io/environment-variables/7983
HOME: $SNAP_USER_COMMON
kronos:
command: bin/node $SNAP/src/main.js
plugs: [home, network, network-bind, unity7, wayland, desktop-legacy, desktop, x11, gsettings]
desktop: kronos.desktop
environment:
QT_QPA_PLATFORMTHEME: gtk3
XDG_DATA_DIRS: $SNAP_USER_DATA:/var/lib/snapd/desktop:$XDG_DATA_DIRS
HOME: $SNAP_USER_COMMON
parts:
headless:
source: https://github.com/metaspartan/kronos.git
source-type: git
source-tag: master
plugin: nodejs
node-engine: 16.9.1
build-packages:
- g++
- jq
- wget
- unzip
- curl
- build-essential
stage-packages:
- g++
- jq
- wget
- unzip
- curl
- build-essential
kronos:
source: https://github.com/metaspartan/kronos.git
source-type: git
source-tag: master
plugin: nodejs
node-engine: 16.9.1
build-packages:
- g++
- jq
- wget
- unzip
- curl
- build-essential
stage-packages:
- g++
- jq
- wget
- unzip
- curl
- build-essential