diff --git a/website/EN/devguide.html b/website/EN/devguide.html index 9f920237..a86c0332 100644 --- a/website/EN/devguide.html +++ b/website/EN/devguide.html @@ -3,7 +3,7 @@ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> - + @@ -245,9 +245,9 @@ for the JavaScript code in this tag.

Developers Guide

-
-

Adding extra apps

-
+
+

Adding extra apps

+

Suppose you have some internet application which you want to add to the system. To do this you need to create an app script which tells the system how to install/remove and also backup/restore. On an installed system the app scripts go into the directory:

@@ -364,9 +364,10 @@ An example template for an app script is shown below. Copy this and add whatever restore_database myappname # Restore some data from a directory - # Note that we don't restore directly but to a temporary directory - # and then copy the files. This ensures that if there is a restore - # failure you don't end up with half-copied or corrupted files + # Note that we don't restore directly but to a temporary + # directory and then copy the files. This ensures that if + # there is a restore failure you don't end up with + # half-copied or corrupted files restore_directory_from_usb $MYAPP_DATA_DIR myappname cp -r $temp_restore_dir/$MYAPP_DATA_DIR $MYAPP_DATA_DIR rm -rf $temp_restore_dir @@ -433,7 +434,8 @@ An example template for an app script is shown below. Copy this and add whatever 80 ${MYAPPNAME_ONION_PORT}) # Do any other configuration - # Here you might use $ONION_ONLY or $SOME_IMPORTANT_CONFIG_VARIABLE + # Here you might use $ONION_ONLY or + # $SOME_IMPORTANT_CONFIG_VARIABLE # Mark the app as having installed successfully # If this variable isn't set then it will be assumed that