Create a new directory by using the following command:
mkdir {application_name}
For this tutorial, I will use:
mkdir rokuapplication
Change into the new directory with:
cd {application_name}
For example:
cd rokuapplication
Download the "Hello World" program using:
wget https://github.com/CalmhostAcct/RokuTutorial/raw/main/hello-world.zip
Extract the contents of the ZIP file with:
unzip hello-world.zip
You can remove the ZIP file after extracting it by using:
rm hello-world.zip
Open the manifest
file to customize the app's title, version, icon, etc.:
nano manifest
Modify how the app behaves by editing the Main.brs
file:
cd source
nano Main.brs
Change how the app looks by editing the helloworld.xml
file:
cd components
nano helloworld.xml
Note: Ensure the folder is correctly named components
instead of compenots
.
Install Node.js and npm, which are required for libraries, using:
sudo apt-get install nodejs npm
Install brs
, which runs BrightScript code:
npm install -g @rokucommunity/brs
Install brighterscript
, which compiles BrightScript code:
npm install -g brighterscript
Run the BrightScript code to test it by using:
cd source
brs Main.brs
Move to the root directory of your channel and compile the BrightScript code with:
bsc
That's it! You have now created and compiled your Roku app.