sandstorm-pkgdef.capnp 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103
  1. @0xeef286f78b0168e0;
  2. # When cloning the example, you'll want to replace the above file ID with a new
  3. # one generated using the `capnp id` command.
  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 = "nfqhx83vvzm80edpgkpax8mhqp176qj2vwg67rgq5e3kjc5r4cyh",
  12. # The app ID is actually the public key used to sign the app package.
  13. # All packages with the same ID are versions of the same app.
  14. #
  15. # If you are working from the example, you'll need to replace the above
  16. # public key with one of your own. Use the `spk keygen` command to generate
  17. # a new one.
  18. manifest = (
  19. # This manifest is included in your app package to tell Sandstorm
  20. # about your app.
  21. appVersion = 1, # Increment this for every release.
  22. appTitle = (defaultText = "draw.io"),
  23. appMarketingVersion = (defaultText = "5.0.2.3"),
  24. actions = [
  25. # Define your "new document" handlers here.
  26. ( title = (defaultText = "New draw.io diagram"),
  27. nounPhrase = (defaultText = "diagram"),
  28. command = .myCommand
  29. # The command to run when starting for the first time. (".myCommand"
  30. # is just a constant defined at the bottom of the file.)
  31. )
  32. ],
  33. continueCommand = .myCommand,
  34. # This is the command called to start your app back up after it has been
  35. # shut down for inactivity. Here we're using the same command as for
  36. # starting a new instance, but you could use different commands for each
  37. # case.
  38. metadata = (
  39. icons = (
  40. appGrid = (png = (dpi1x = embed "client/images/drawlogo128.png")),
  41. grain = (png = (dpi1x = embed "client/images/drawlogo48.png")),
  42. market = (png = (dpi1x = embed "client/images/drawlogo256.png")),
  43. ),
  44. website = "https://www.draw.io/",
  45. categories = [office, productivity],
  46. author = (
  47. contactEmail = "support@draw.io",
  48. pgpSignature = embed "client/pgp-signature",
  49. ),
  50. pgpKeyring = embed "client/pgp-keyring",
  51. description = (defaultText = embed "client/description.md"),
  52. shortDescription = (defaultText = embed "client/shortDesc.txt"),
  53. screenshots = [
  54. (width = 448, height = 243, png = embed "client/images/drawio448.png")
  55. ],
  56. changeLog = (defaultText = embed "client/ChangeLog"),
  57. )
  58. ),
  59. sourceMap = (
  60. # Here we define where to look for files to copy into your package.
  61. searchPath = [
  62. ( packagePath = "server", sourcePath = "server" ),
  63. # Map server binary at "/server".
  64. ( packagePath = "client", sourcePath = "client" ),
  65. # Map client directory at "/client".
  66. ( sourcePath = "empty" )
  67. # Make sure / is mapped to work around Sandstorm bug (temporary).
  68. ]
  69. ),
  70. alwaysInclude = [ "." ]
  71. # Always include all mapped files, whether or not they are opened during
  72. # "spk dev".
  73. );
  74. const myCommand :Spk.Manifest.Command = (
  75. # Here we define the command used to start up your server.
  76. argv = ["/server"],
  77. environ = [
  78. # Note that this defines the *entire* environment seen by your app.
  79. (key = "PATH", value = "/usr/local/bin:/usr/bin:/bin")
  80. ]
  81. );