Roku Developer Program

Join our online forum to talk to Roku developers and fellow channel creators. Ask questions, share tips with the community, and find helpful resources.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
marcelo_cabral
Roku Guru

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
Need Assistance?
Welcome to the Roku Community! Feel free to search our Community for answers or post your question to get help.

Become a Roku Streaming Expert!

Share your expertise, help fellow streamers, and unlock exclusive rewards as part of the Roku Community. Learn more.