Last time we broke down our app design into three different graphics files – background, list container and metadata box. Next, we will create the skeleton of our app and place the files in their permanent home.
First, we will create our descriptor.xml. The descriptor.xml is the configuration file for the application that tells Boxee the location of all important resources and provides metadata about the app including title, description, version and author.
An example of such a descriptor.xml is:
<name>Name of App</name>
<description>A description of your app.</description>
What do all these elements mean and how do they affect your app? The Boxee developer documentation has a complete breakdown with three helpful examples.
After we create the descriptor.xml, we can create the directory structure for our application.
First we create a directory with the same name as the value of the id element in our descriptor.xml. Afterwards, we place our descriptor.xml in that directory.
In the root folder we need to create a directory called skin.
Then within the skin folder, create another called Boxee Skin NG. This is where we store the media and resolution skin XMLs.
Within Boxee Skin NG, create two directory – one called 720p and another called media.
When finished, your app’s directory structure should look like:
|---Boxee Skin NG
Afterwards, we put the graphic files we created in the last step in their final destination, the media directory.
With our skeleton complete, we can go ahead and place our app folder in a place where Boxee can recognize it. First we need to identify the location of our UserData folder; its location varies depending on your operating system.
- Linux: ~/.boxee/UserData/
- Mac OS/X: ~/Library/Application Support/BOXEE/UserData/
- AppleTV: ~/Library/Application\ Support/BOXEE/UserData/
- Windows Vista: C:\Users\\AppData\Roaming\BOXEE\userdata\
- Windows XP: C:\Documents and Settings\\Application Data\BOXEE\userdata\
Once identifying your UserData folder, you need to place your app in the UserData/apps folder to prepare for the next step: hello world!