Compiling the Embedded portal
Beginning from STB software version 0.2.18, all customizations of the Embedded portal must be made using source codes of the portal. After all customizations complete, it should be done compiling and minimization of the source code of the portal. After compiling and minimization, all files of the portal could be placed in a home directory for further image-making. Source code of the Embedded portal, portal-dev-*.tgz is in a directory with current release at soft.infomir.com.
- Download full packages of portal's source codes (portal-dev-*.tgz is in the directory with current release http://soft.infomir.com);
- Complete necessary customizations of the portal;
- Make portal compiling
- Place compiled portal version to rootfs directory.
Necessary packages
- python-software-properties
- node.js
- git
- npm
Installation
Example for Ubuntu Server 12.04:
apt-get install -y python-software-properties && add-apt-repository -y ppa:chris-lea/node.js apt-get update && apt-get install -y nodejs git npm
Example for Ubuntu Server 14.04:
apt-get update && apt-get install -y python-software-properties nodejs git npm
Compiling
- Open tools directory (tools directory is in the directory with portal source code);
- Set all dependencies with running the command
npm install
- Run compiling script
./build.release.sh
- After compiling, a compiled portal version will be put into mini directory.
Further STB image making
In order to further STB image making, place a compiled portal version (files from mini directory) into the folowing directories:
- For MAG250/254/275 - <rootfs>/home/web/
- For MAG256, 322 and all subsequent models - <rootfs>/usr/local/share/app/web/