forked from wekan/wekan
-
Notifications
You must be signed in to change notification settings - Fork 0
/
sandstorm-pkgdef.capnp
273 lines (249 loc) · 9.22 KB
/
sandstorm-pkgdef.capnp
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
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
# Use use the meteor-spk tool to generate a sandstorm package (spk) from this
# meteor application source code. https://github.com/sandstorm-io/meteor-spk
@0xa5275bd3ad124e12;
using Spk = import "/sandstorm/package.capnp";
# This imports:
# $SANDSTORM_HOME/latest/usr/include/sandstorm/package.capnp
# Check out that file to see the full, documented package definition format.
const pkgdef :Spk.PackageDefinition = (
# The package definition. Note that the spk tool looks specifically for the
# "pkgdef" constant.
id = "m86q05rdvj14yvn78ghaxynqz7u2svw6rnttptxx49g1785cdv1h",
# The app ID is actually its public key. The private key was placed in your
# keyring. All updates must be signed with the same key.
manifest = (
# This manifest is included in our app package to tell Sandstorm about our
# app.
appTitle = (defaultText = "Wekan"),
# The name of the app as it is displayed to the user.
appVersion = 724,
# Increment this for every release.
appMarketingVersion = (defaultText = "7.24.0~2023-12-17"),
# Human-readable presentation of the app version.
minUpgradableAppVersion = 0,
# The minimum version of the app which can be safely replaced by this app
# package without data loss. This might be non-zero if the app's data store
# format changed drastically in the past and the app is no longer able to
# read the old format.
actions = [
# Define your "new document" handlers here.
(
title = (defaultText = "New board"),
command = .myCommand,
# The command to run when starting for the first time. (".myCommand" is
# just a constant defined at the bottom of the file.)
)
],
continueCommand = .myCommand,
# This is the command called to start your app back up after it has been
# shut down for inactivity. Here we're using the same command as for
# starting a new instance, but you could use different commands for each
# case.
metadata = (
icons = (
appGrid = (svg = embed "meta/icons/wekan-128.svg"),
grain = (svg = embed "meta/icons/wekan-24.svg"),
market = (svg = embed "meta/icons/wekan-150.svg"),
),
website = "https://wekan.github.io",
codeUrl = "https://github.com/wekan/wekan",
license = (openSource = mit),
categories = [productivity, office],
author = (
contactEmail = "[email protected]",
pgpSignature = embed "meta/wekanteam-pgp-sig",
),
pgpKeyring = embed "meta/keyring",
description = (defaultText = embed "meta/description.md"),
shortDescription = (defaultText = "Kanban board"),
screenshots = [
(
width = 1920,
height = 1133,
png = embed "meta/screenshots/board_view_01.png"
),
(
width = 1920,
height = 1133,
png = embed "meta/screenshots/board_view_02.png"
),
],
changeLog = (defaultText = embed "CHANGELOG.md"),
),
),
sourceMap = (
# The following directories will be copied into your package.
searchPath = [
(sourcePath = ".meteor-spk/deps"),
(sourcePath = ".meteor-spk/bundle"),
]
),
alwaysInclude = [ "." ],
# This says that we always want to include all files from the source map. (An
# alternative is to automatically detect dependencies by watching what the app
# opens while running in dev mode. To see what that looks like, run `spk init`
# without the -A option.)
bridgeConfig = (
viewInfo = (
permissions = [(
name = "participate",
title = (
defaultText = "participate",
localizations = [
(locale = "fr", text = "participer"),
(locale = "fi", text = "osallistu"),
],
),
description = (
defaultText = "allows participating in the board",
localizations = [
(locale = "fr", text = "permet de participer dans le tableau"),
(locale = "fi", text = "mahdollistaa taululle osallistumisen"),
],
)
), (
name = "configure",
title = (
defaultText = "configure",
localizations = [
(locale = "fr", text = "configurer"),
(locale = "fi", text = "asetukset"),
],
),
description = (
defaultText = "allows configuring the board",
localizations = [
(locale = "fr", text = "permet de configurer le tableau"),
(locale = "fi", text = "mahdollistaa taulun asetusten määrittämisen"),
],
)
)],
roles = [(
title = (
defaultText = "observer",
localizations = [
(locale = "fr", text = "observateur"),
(locale = "fi", text = "tarkkailija"),
],
),
permissions = [false, false],
verbPhrase = (
defaultText = "can read",
localizations = [
(locale = "fr", text = "peut lire"),
(locale = "fi", text = "voi lukea"),
],
)
), (
title = (
defaultText = "member",
localizations = [
(locale = "fr", text = "membre"),
(locale = "fi", text = "jäsen"),
],
),
permissions = [true, false],
verbPhrase = (
defaultText = "can edit",
localizations = [
(locale = "fr", text = "peut éditer"),
(locale = "fi", text = "voi muokata"),
],
),
default = true,
# ), (
# title = (defaultText = "administrator"),
# permissions = [true, true],
# verbPhrase = (defaultText = "can configure")
#
# XXX Administrators configuration options aren’t implemented yet, so this
# role is currently useless.
)],
eventTypes = [(
name = "addBoardMember",
verbPhrase = (defaultText = "added to board"),
), (
name = "createList",
verbPhrase = (defaultText = "created new list"),
), (
name = "archivedList",
verbPhrase = (defaultText = "archived list"),
), (
name = "restoredList",
verbPhrase = (defaultText = "restored list"),
), (
name = "createCard",
verbPhrase = (defaultText = "created new card"),
), (
name = "moveCard",
verbPhrase = (defaultText = "moved card"),
), (
name = "archivedCard",
verbPhrase = (defaultText = "archived card"),
), (
name = "restoredCard",
verbPhrase = (defaultText = "restored card"),
), (
name = "addComment",
verbPhrase = (defaultText = "added comment"),
), (
name = "addAttachement",
verbPhrase = (defaultText = "added attachment"),
), (
name = "joinMember",
verbPhrase = (defaultText = "added to card"),
), (
name = "unjoinMember",
verbPhrase = (defaultText = "removed from card"),
), ],
),
apiPath = "/",
saveIdentityCaps = true,
),
);
const myCommand :Spk.Manifest.Command = (
# Here we define the command used to start up your server.
#argv = ["/sandstorm-http-bridge", "4000", "--", "node", "start.js"],
#argv = ["/sandstorm-http-bridge", "4000", "--", "node", "--stack-size=65500", "start.js"],
argv = ["/sandstorm-http-bridge", "4000", "--", "node", "start.js"],
environ = [
# Note that this defines the *entire* environment seen by your app.
#---------------------------------------------------------------------
# https://github.com/wekan/wekan/issues/3585#issuecomment-1021522132
# Add more Node heap:
#export NODE_OPTIONS="--max_old_space_size=4096"
# Add more stack:
#bash -c "ulimit -s 65500; exec node --stack-size=65500 main.js"
#---------------------------------------------------------------------
(key = "NODE_OPTIONS", value = "--max_old_space_size=4096"),
(key = "PATH", value = "/usr/local/bin:/usr/bin:/bin"),
(key = "WRITABLE_PATH", value = "/var/wekan-uploads"),
(key = "RESULTS_PER_PAGE", value = ""),
(key = "WITH_API", value = "true"),
(key = "RICHER_CARD_COMMENT_EDITOR", value="false"),
(key = "CARD_OPENED_WEBHOOK_ENABLED", value="false"),
(key = "NOTIFICATION_TRAY_AFTER_READ_DAYS_BEFORE_REMOVE", value=""),
(key = "BIGEVENTS_PATTERN", value="NONE"),
(key = "MATOMO_ADDRESS", value=""),
(key = "MATOMO_SITE_ID", value=""),
(key = "MATOMO_DO_NOT_TRACK", value="true"),
(key = "MATOMO_WITH_USERNAME", value="false"),
(key = "BROWSER_POLICY_ENABLED", value="true"),
(key = "TRUSTED_URL", value=""),
(key = "WEBHOOKS_ATTRIBUTES", value=""),
(key = "OAUTH2_ENABLED", value="false"),
(key = "OAUTH2_CA_CERT", value=""),
(key = "OAUTH2_ADFS_ENABLED", value="false"),
(key = "OAUTH2_B2C_ENABLED", value="false"),
(key = "OAUTH2_CLIENT_ID", value="false"),
(key = "OAUTH2_SECRET", value=""),
(key = "OAUTH2_SERVER_URL", value=""),
(key = "OAUTH2_AUTH_ENDPOINT", value=""),
(key = "OAUTH2_USERINFO_ENDPOINT", value=""),
(key = "OAUTH2_TOKEN_ENDPOINT", value=""),
(key = "LDAP_ENABLE", value="false"),
(key = "PASSWORD_LOGIN_ENABLED", value="true"),
(key = "SANDSTORM", value="1"),
(key = "METEOR_SETTINGS", value = "{\"public\": {\"sandstorm\": true}}")
]
);