Tonido Support Home
Log in Page Discussion History Go to the site toolbox

Developer:Manifest

From Tonido Support


Developer Home | Support Forum | Tonido Feedback | Tonido Homepage

Manifest Guide


Every Tonido application needs a manifest before it can be loaded. A manifest is nothing but a XML file with defined contents.
There are three main sections

Meta section
Files section
Actions section

Meta Section

Runtime

If the Runtime element is not specified, it is assumed to be a native C++ application.

For PHP apps, you should add <Runtime>php</Runtime>. This allows Tonido to verify that the user has PHP support available before installing or loading your application.

For C++, the runtime is considered as <Runtime>native</Runtime> even if not specified. So it is safe to leave it out.

Files Section

Details coming soon.

Actions Section

Actions are special scripted operations that manifests want Tonido to execute at certain states.

<Action When="" State="" Operation="">Value</Action>

Actions have the following attributes

  • When
  • State
  • Operation

When specifies when to do this action. It can be pre or post. Pre means before the state specified, Post is after state specified.

State

Specifies the state at which to perform this action.

  • startup
When Tonido starts up. Plugins don't have to be enabled or loaded
  • shutdown
When Tonido shuts down.
  • install
When the application is installed
  • uninstall
When the application is uninstalled
  • start
When the application is started or loaded
  • stopped
When the application is stopped or unloaded

Operation

Specifies what the action should do

  • log
Logs the string specified in the value
  • unzip
Unzips the file specified in the value. The file location is assumed to be in the application directory
  • launch
Launches the command specified in the value. Commands are assumed to be absolute unless a '.' is prepended to the value in which case the command will be executed by adding the path to the application wherever it might be. Note that when launching Tonido does not wait or check for any errors. Also note that the current directory will remain Tonido's directory for all launch actions.

Examples

<Action When="post" State="startup" Operation="log">Log Action</Action>
<Action When="post" State="startup" Operation="launch">Notepad.exe</Action>

Site Toolbox:

Personal tools
TOOLBOX
LANGUAGES
This page was last modified on 3 December 2011, at 20:36. - This page has been accessed 1,479 times. - Disclaimers - About Tonido Support