|
| 1 | +@0xb0c9c98147bea6cf; |
| 2 | + |
| 3 | +using Spk = import "/sandstorm/package.capnp"; |
| 4 | +# This imports: |
| 5 | +# $SANDSTORM_HOME/latest/usr/include/sandstorm/package.capnp |
| 6 | +# Check out that file to see the full, documented package definition format. |
| 7 | + |
| 8 | +const pkgdef :Spk.PackageDefinition = ( |
| 9 | + # The package definition. Note that the spk tool looks specifically for the |
| 10 | + # "pkgdef" constant. |
| 11 | + |
| 12 | + id = "n4n49dkfyskmhcmg5h0mfzk4kjvce2jcs8ravr7y7uw9xs2pzghh", |
| 13 | + # Your app ID is actually its public key. The private key was placed in |
| 14 | + # your keyring. All updates must be signed with the same key. |
| 15 | + |
| 16 | + manifest = ( |
| 17 | + # This manifest is included in your app package to tell Sandstorm |
| 18 | + # about your app. |
| 19 | + |
| 20 | + appTitle = (defaultText = "TextEditor"), |
| 21 | + |
| 22 | + appVersion = 0, # Increment this for every release. |
| 23 | + |
| 24 | + appMarketingVersion = (defaultText = "0.0.1"), |
| 25 | + # Human-readable representation of appVersion. Should match the way you |
| 26 | + # identify versions of your app in documentation and marketing. |
| 27 | + |
| 28 | + actions = [ |
| 29 | + # Define your "new document" handlers here. |
| 30 | + ( title = (defaultText = "New Document"), |
| 31 | + command = .myCommand |
| 32 | + # The command to run when starting for the first time. (".myCommand" |
| 33 | + # is just a constant defined at the bottom of the file.) |
| 34 | + ) |
| 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 | + |
| 43 | + |
| 44 | + metadata = ( |
| 45 | + icons = ( |
| 46 | + appGrid = (svg = embed "../app/icon.svg"), |
| 47 | + grain = (svg = embed "../app/icon.svg"), |
| 48 | + market = (svg = embed "../app/icon.svg"), |
| 49 | + marketBig = (svg = embed "../app/icon.svg"), |
| 50 | + ), |
| 51 | + |
| 52 | + website = "https://github.com/rchrd2/texteditor", |
| 53 | + codeUrl = "https://github.com/rchrd2/texteditor", |
| 54 | + license = (openSource = mit), |
| 55 | + categories = [office, productivity], |
| 56 | + |
| 57 | + author = ( |
| 58 | + contactEmail = "me@rchrd.net", |
| 59 | + pgpSignature = embed "../app/pgp-signature", |
| 60 | + upstreamAuthor = "Richard Caceres", |
| 61 | + ), |
| 62 | + pgpKeyring = embed "../app/pgp-keyring", |
| 63 | + |
| 64 | + description = (defaultText = embed "../app/description.md"), |
| 65 | + shortDescription = (defaultText = "Plain text editor"), |
| 66 | + |
| 67 | + screenshots = [ |
| 68 | + (width = 797, height = 627, png = embed "../app/screenshot-01.png"), |
| 69 | + (width = 797, height = 627, png = embed "../app/screenshot-02.png"), |
| 70 | + (width = 797, height = 627, png = embed "../app/screenshot-03.png") |
| 71 | + ], |
| 72 | + |
| 73 | + changeLog = (defaultText = embed "../CHANGELOG.md"), |
| 74 | + ), |
| 75 | + |
| 76 | + ), |
| 77 | + |
| 78 | + sourceMap = ( |
| 79 | + # The following directories will be copied into your package. |
| 80 | + searchPath = [ |
| 81 | + ( sourcePath = "/home/vagrant/bundle" ), |
| 82 | + ( sourcePath = "/opt/meteor-spk/meteor-spk.deps" ) |
| 83 | + ] |
| 84 | + ), |
| 85 | + |
| 86 | + alwaysInclude = [ "." ] |
| 87 | + # This says that we always want to include all files from the source map. |
| 88 | + # (An alternative is to automatically detect dependencies by watching what |
| 89 | + # the app opens while running in dev mode. To see what that looks like, |
| 90 | + # run `spk init` without the -A option.) |
| 91 | +); |
| 92 | + |
| 93 | +const myCommand :Spk.Manifest.Command = ( |
| 94 | + # Here we define the command used to start up your server. |
| 95 | + argv = ["/sandstorm-http-bridge", "8000", "--", "/opt/app/.sandstorm/launcher.sh"], |
| 96 | + environ = [ |
| 97 | + # Note that this defines the *entire* environment seen by your app. |
| 98 | + (key = "PATH", value = "/usr/local/bin:/usr/bin:/bin") |
| 99 | + ] |
| 100 | +); |
0 commit comments