summaryrefslogtreecommitdiffstats
path: root/sandstorm-pkgdef.capnp
diff options
context:
space:
mode:
authorMaxime Quandalle <maxime@quandalle.com>2015-05-25 21:49:06 +0200
committerMaxime Quandalle <maxime@quandalle.com>2015-05-26 00:18:45 +0200
commit1b4fcc67f4ec94ed53a2f86ad6889e551f00815e (patch)
tree134083028cb512e67f864566130c30b44c1626ba /sandstorm-pkgdef.capnp
parentfc2435b042babd8a9b0f946a9cc5696b98cc837c (diff)
downloadwekan-1b4fcc67f4ec94ed53a2f86ad6889e551f00815e.tar.gz
wekan-1b4fcc67f4ec94ed53a2f86ad6889e551f00815e.tar.bz2
wekan-1b4fcc67f4ec94ed53a2f86ad6889e551f00815e.zip
Upgrade sandstorm integration
Both sandstorm and LibreBoard have significantly evolved since the last release of LibreBoard on sandstorm. This commit: * adds some more attributes on the sandstorm manifest * introduces support with the sandstorm sharing box * uses a server redirection to point to the board document * hides the top shortcut bar on sandstorm Fixes #163.
Diffstat (limited to 'sandstorm-pkgdef.capnp')
-rw-r--r--sandstorm-pkgdef.capnp60
1 files changed, 54 insertions, 6 deletions
diff --git a/sandstorm-pkgdef.capnp b/sandstorm-pkgdef.capnp
index 51bede4c..54215a06 100644
--- a/sandstorm-pkgdef.capnp
+++ b/sandstorm-pkgdef.capnp
@@ -1,3 +1,5 @@
+# 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";
@@ -10,18 +12,32 @@ const pkgdef :Spk.PackageDefinition = (
# "pkgdef" constant.
id = "m86q05rdvj14yvn78ghaxynqz7u2svw6rnttptxx49g1785cdv1h",
- # Your app ID is actually its public key. The private key was placed in your
+ # 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 your app package to tell Sandstorm
- # about your app.
+ # This manifest is included in our app package to tell Sandstorm about our
+ # app.
- appVersion = 1, # Increment this for every release.
+ appTitle = (defaultText = "LibreBoard"),
+ # The name of the app as it is displayed to the user.
+
+ appVersion = 2,
+ # Increment this for every release.
+
+ appMarketingVersion = (defaultText = "0.9.0"),
+ # 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"),
+ (
+ 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.)
@@ -43,11 +59,43 @@ const pkgdef :Spk.PackageDefinition = (
]
),
- alwaysInclude = [ "." ]
+ 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"),
+ description = (defaultText = "allows participating in the board")
+ ), (
+ name = "configure",
+ title = (defaultText = "configure"),
+ description = (defaultText = "allows configuring the board")
+ )],
+
+ roles = [(
+ title = (defaultText = "observer"),
+ permissions = [false, false],
+ verbPhrase = (defaultText = "can read")
+ ), (
+ title = (defaultText = "member"),
+ permissions = [true, false],
+ verbPhrase = (defaultText = "can edit"),
+ 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.
+ )]
+ )
+ )
);
const myCommand :Spk.Manifest.Command = (