Roku Developer Program

Developers and content creators—a complete solution for growing an audience directly.
cancel
Showing results for 
Search instead for 
Did you mean: 

Visual Studio Code + Viacom Roku Builder

I managed to integrate Visual Studio Code to the Roku Builder app developed by VIacom Inc. (https://github.com/ViacomInc/roku_builder)

After you manage to install both tools in your environment and set up properly your device(s), project(s) and key(s) in  "roku builder" config file, you need to create tasks on Visual Studio Code.

Here an example I created and works for me:

{
   // See https://go.microsoft.com/fwlink/?LinkId=733558
   // for the documentation about the tasks.json format
   "version": "0.1.0",
   "tasks": [
       {
           "taskName": "build",
           "command": "roku",
           "isBuildCommand": true,
           "isShellCommand": true,
           "echoCommand": true,
           "args": ["-ls", "release", "-P", "${workspaceRootFolderName}", "-O",  "out"],
           "showOutput": "always"
       },
       {
           "taskName": "package",
           "command": "roku",
           "isShellCommand": true,
           "echoCommand": true,
           "args": ["-ps", "release", "-P", "${workspaceRootFolderName}", "-O",  "out"],
           "showOutput": "always"
       },
       {
           "taskName": "screenshot",
           "command": "roku",
           "isShellCommand": true,
           "echoCommand": true,
           "args": ["-S", "-P", "${workspaceRootFolderName}", "-O",  "out"],
           "showOutput": "always"
       }
   ]
}

By default the Build shortcut is Ctrl-Shift-B and you can configure other shortcuts for your custom tasks, check how here:
https://code.visualstudio.com/docs/editor/tasks
0 Kudos