forked from mailpile/Mailpile
-
Notifications
You must be signed in to change notification settings - Fork 2
/
sandstorm-pkgdef.capnp
47 lines (36 loc) · 1.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
@0xc3217fd74cd95974;
using Spk = import "/sandstorm/package.capnp";
const pkgdef :Spk.PackageDefinition = (
id = "0s6hcw325yjs22c03hh09uyr0wxy8r09qet34637kep6tncfh9uh",
manifest = (
appVersion = 5,
actions = [
( title = (defaultText = "New Mailpile Mailbox"),
command = .myCommand
)
],
continueCommand = .myCommand
),
sourceMap = (
searchPath = [
( sourcePath = "." ),
# Include source directory.
( sourcePath = "/opt/sandstorm/latest/usr/include/sandstorm" ),
# Include Sandstorm protocol schemas (especially email.capnp).
( sourcePath = "/bin/busybox", packagePath = "bin/sh" ),
# Map bin/sh to busybox.
( sourcePath = "/", hidePaths = [ "home", "proc", "sys", "lib/x86_64-linux-gnu/libnss_myhostname.so.2" ] ),
( sourcePath = "/opt/sandstorm/latest/usr/include", packagePath = "usr/include" )
# Map root dir.
]
),
fileList = "sandstorm-files.list",
alwaysInclude = [ "mailpile" ]
);
const myCommand :Spk.Manifest.Command = (
argv = ["/sandstorm-http-bridge", "33411", "--", "/run-sandstorm.sh"],
environ = [
(key = "PATH", value = "/usr/local/bin:/usr/bin:/bin"),
(key = "PYTHONPATH", value = "/usr/include")
]
);