sandstorm-pkgdef.capnp 7.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235
  1. # Use use the meteor-spk tool to generate a sandstorm package (spk) from this
  2. # meteor application source code. https://github.com/sandstorm-io/meteor-spk
  3. @0xa5275bd3ad124e12;
  4. using Spk = import "/sandstorm/package.capnp";
  5. # This imports:
  6. # $SANDSTORM_HOME/latest/usr/include/sandstorm/package.capnp
  7. # Check out that file to see the full, documented package definition format.
  8. const pkgdef :Spk.PackageDefinition = (
  9. # The package definition. Note that the spk tool looks specifically for the
  10. # "pkgdef" constant.
  11. id = "m86q05rdvj14yvn78ghaxynqz7u2svw6rnttptxx49g1785cdv1h",
  12. # The app ID is actually its public key. The private key was placed in your
  13. # keyring. All updates must be signed with the same key.
  14. manifest = (
  15. # This manifest is included in our app package to tell Sandstorm about our
  16. # app.
  17. appTitle = (defaultText = "Wekan"),
  18. # The name of the app as it is displayed to the user.
  19. appVersion = 20,
  20. # Increment this for every release.
  21. appMarketingVersion = (defaultText = "0.18.0~2017-04-02"),
  22. # Human-readable presentation of the app version.
  23. minUpgradableAppVersion = 0,
  24. # The minimum version of the app which can be safely replaced by this app
  25. # package without data loss. This might be non-zero if the app's data store
  26. # format changed drastically in the past and the app is no longer able to
  27. # read the old format.
  28. actions = [
  29. # Define your "new document" handlers here.
  30. (
  31. title = (defaultText = "New board"),
  32. command = .myCommand,
  33. # The command to run when starting for the first time. (".myCommand" is
  34. # just a constant defined at the bottom of the file.)
  35. )
  36. ],
  37. continueCommand = .myCommand,
  38. # This is the command called to start your app back up after it has been
  39. # shut down for inactivity. Here we're using the same command as for
  40. # starting a new instance, but you could use different commands for each
  41. # case.
  42. metadata = (
  43. icons = (
  44. appGrid = (svg = embed "meta/icons/wekan-128.svg"),
  45. grain = (svg = embed "meta/icons/wekan-24.svg"),
  46. market = (svg = embed "meta/icons/wekan-150.svg"),
  47. ),
  48. website = "https://wekan.github.io",
  49. codeUrl = "https://github.com/wekan/wekan",
  50. license = (openSource = mit),
  51. categories = [productivity, office],
  52. author = (
  53. upstreamAuthor = "Maxime Quandalle",
  54. contactEmail = "david@sandstorm.io",
  55. pgpSignature = embed "meta/dwrensha-pgp-sig",
  56. ),
  57. pgpKeyring = embed "meta/keyring",
  58. description = (defaultText = embed "meta/description.md"),
  59. shortDescription = (defaultText = "Kanban board"),
  60. screenshots = [
  61. (
  62. width = 1920,
  63. height = 1133,
  64. png = embed "meta/screenshots/board_view_01.png"
  65. ),
  66. (
  67. width = 1920,
  68. height = 1133,
  69. png = embed "meta/screenshots/board_view_02.png"
  70. ),
  71. ],
  72. changeLog = (
  73. defaultText = embed "CHANGELOG.md",
  74. localizations = [
  75. (locale = "fr", text = embed "meta/t9n-changelog/fr.md"),
  76. ],
  77. )
  78. )
  79. ),
  80. sourceMap = (
  81. # The following directories will be copied into your package.
  82. searchPath = [
  83. (sourcePath = ".meteor-spk/deps"),
  84. (sourcePath = ".meteor-spk/bundle"),
  85. ]
  86. ),
  87. alwaysInclude = [ "." ],
  88. # This says that we always want to include all files from the source map. (An
  89. # alternative is to automatically detect dependencies by watching what the app
  90. # opens while running in dev mode. To see what that looks like, run `spk init`
  91. # without the -A option.)
  92. bridgeConfig = (
  93. viewInfo = (
  94. permissions = [(
  95. name = "participate",
  96. title = (
  97. defaultText = "participate",
  98. localizations = [
  99. (locale = "fr", text = "participer"),
  100. ],
  101. ),
  102. description = (
  103. defaultText = "allows participating in the board",
  104. localizations = [
  105. (locale = "fr", text = "permet de participer dans le tableau"),
  106. ],
  107. )
  108. ), (
  109. name = "configure",
  110. title = (
  111. defaultText = "configure",
  112. localizations = [
  113. (locale = "fr", text = "configurer"),
  114. ],
  115. ),
  116. description = (
  117. defaultText = "allows configuring the board",
  118. localizations = [
  119. (locale = "fr", text = "permet de configurer le tableau"),
  120. ],
  121. )
  122. )],
  123. roles = [(
  124. title = (
  125. defaultText = "observer",
  126. localizations = [
  127. (locale = "fr", text = "observateur"),
  128. ],
  129. ),
  130. permissions = [false, false],
  131. verbPhrase = (
  132. defaultText = "can read",
  133. localizations = [
  134. (locale = "fr", text = "peut lire"),
  135. ],
  136. )
  137. ), (
  138. title = (
  139. defaultText = "member",
  140. localizations = [
  141. (locale = "fr", text = "membre"),
  142. ],
  143. ),
  144. permissions = [true, false],
  145. verbPhrase = (
  146. defaultText = "can edit",
  147. localizations = [
  148. (locale = "fr", text = "peut éditer"),
  149. ],
  150. ),
  151. default = true,
  152. # ), (
  153. # title = (defaultText = "administrator"),
  154. # permissions = [true, true],
  155. # verbPhrase = (defaultText = "can configure")
  156. #
  157. # XXX Administrators configuration options aren’t implemented yet, so this
  158. # role is currently useless.
  159. )],
  160. eventTypes = [(
  161. name = "addBoardMember",
  162. verbPhrase = (defaultText = "added to board"),
  163. ), (
  164. name = "createList",
  165. verbPhrase = (defaultText = "created new list"),
  166. ), (
  167. name = "archivedList",
  168. verbPhrase = (defaultText = "archived list"),
  169. ), (
  170. name = "restoredList",
  171. verbPhrase = (defaultText = "restored list"),
  172. ), (
  173. name = "createCard",
  174. verbPhrase = (defaultText = "created new card"),
  175. ), (
  176. name = "moveCard",
  177. verbPhrase = (defaultText = "moved card"),
  178. ), (
  179. name = "archivedCard",
  180. verbPhrase = (defaultText = "archived card"),
  181. ), (
  182. name = "restoredCard",
  183. verbPhrase = (defaultText = "restored card"),
  184. ), (
  185. name = "addComment",
  186. verbPhrase = (defaultText = "added comment"),
  187. ), (
  188. name = "addAttachement",
  189. verbPhrase = (defaultText = "added attachment"),
  190. ), (
  191. name = "joinMember",
  192. verbPhrase = (defaultText = "added to card"),
  193. ), (
  194. name = "unjoinMember",
  195. verbPhrase = (defaultText = "removed from card"),
  196. ), ],
  197. ),
  198. saveIdentityCaps = true,
  199. ),
  200. );
  201. const myCommand :Spk.Manifest.Command = (
  202. # Here we define the command used to start up your server.
  203. argv = ["/sandstorm-http-bridge", "4000", "--", "node", "start.js"],
  204. environ = [
  205. # Note that this defines the *entire* environment seen by your app.
  206. (key = "PATH", value = "/usr/local/bin:/usr/bin:/bin"),
  207. (key = "SANDSTORM", value = "1"),
  208. (key = "METEOR_SETTINGS", value = "{\"public\": {\"sandstorm\": true}}")
  209. ]
  210. );