Apps for the Roku platform use our You.i Roku Cloud solution. Because of this, Roku apps follow a special deployment process. Also, the deployment process depends on whether you have a development or production app:
WARNING For Roku certification, your production app must support:
Note Currently, deployed Roku production apps must be hosted by You.i TV’s cloud servers.
Development apps may need to be deployed to an AWS cloud server for testing, debugging, and validation. The steps and tools to do this depend on your particular development and testing infrastructure. Contact your You.i TV representative for guidance on how to set this up.
Apps for a Roku platform have two parts:
If you change your Roku client software after certification, then you must resubmit it for certification. However, you can change the app logic hosted in the cloud without triggering the recertification process.
WARNING Before you deploy your app, ensure the following:
This procedure applies to the following use cases:
To deploy an updated production app where only the server software was changed, see Partial App Deployment.
To deploy the app:
build/linux/Release/bin
subdirectory.Build your customized Roku client (zip file) with the youi-tv roku-client
command.
See Run the ‘youi-tv roku-client’ CLI command.
The roku-client
command creates a zip file of your customized Roku client in the client
directory.
WARNING Do not launch the app after the build.
Launching the app produces artifacts (export files, logs, and so on) that need to be excluded when sending the app to You.i TV.
Build the server tar file by running the following command in your build/linux/Release/bin
folder:
tar --exclude=<appname>.tar -cf <appname>.tar ./
where <appname>
is the name of the app.
This procedure applies when you want to deploy an updated production app where only the server software was changed. For other use cases, see New or Full App Deployment.
Note If you are still using old test stacks, refer to the pre-5.18 version of this section.
To deploy the app:
Build the Release version of your app on Linux. See Building Roku Apps. Ensure it has no errors.
The resulting executable files are in the build/linux/Release/bin
subdirectory.
WARNING Do not launch the app after the build.
Launching the app produces artifacts (export files, logs, and so on) that need to be excluded when sending the app to You.i TV.
Build your customized Roku client (zip file) with the youi-tv roku-client
command.
See Updates With the Script.
The roku-client
command creates a zip file of your customized Roku client in the client
directory.
Note This step is required even though a partial app deployment applies when only the server software was changed.
The zip file of your customized Roku client is required for testing purposes.
Build the server tar file by running the following command in your build/linux/Release/bin
folder:
tar --exclude=<appname>.tar -cf <appname>.tar ./
where <appname>
is the name of the app.
Because You.i TV hosts the cloud server portion for all Roku production apps, you must contact You.i TV and supply the following information before submitting your app to Roku for certification:
MyApp
v2.0.4
YI_CLOUD_S3_TAG
environment variable; for example, build-1282
or a SHA numberIs the default session inactivity termination behavior suitable for your app?
A session is inactive when no key presses on the Roku device are observed.