From 666c36a4bd20b6867a77de67793881f2c86455db Mon Sep 17 00:00:00 2001 From: Robert Knight Date: Tue, 6 Dec 2011 15:08:12 +0000 Subject: [PATCH] Convert the README file to markdown --- README => README.md | 77 ++++++++++++++++++--------------------------- 1 file changed, 31 insertions(+), 46 deletions(-) rename README => README.md (72%) diff --git a/README b/README.md similarity index 72% rename from README rename to README.md index 7ae3ba4..fa3c41a 100644 --- a/README +++ b/README.md @@ -17,44 +17,35 @@ the location of the compressed packages and the path to the update script. Once the updater has been started, it: 1. Waits for the application to exit - 2. Acquires the necessary priviledges to install the updates, prompting the user if necessary. - 3. Installs the updates, displaying progress to the user in a small dialog - 4. Performs cleanup and any additional actions required as part of the update - 5. Starts the new version of the main application. In the event of a failure during the update, the installation is rolled back to its previous state and a message is presented to the user. -Building the Updater -==================== +## Building the Updater Create a new directory for the build and from that directory run: - cmake - make + cmake + make The updater binary will be built in the src/ directory. You should also run the tests in src/tests to verify that the updater is functioning correctly. -Preparing an Update -=================== +## Preparing an Update 1. Create a directory containing your application's files, laid out in the same way and with the same permissions as they would be when installed. - 2. Create a config file specifying how the application's files should be partitioned into packages - see tools/config-template.json - 3. Use the tools/create-packages.rb script to create a file_list.xml file and a set of package files required for updates. - 4. Upload the file_list.xml file and packages to a server After step 4 is done, you need to notify existing installs that an update @@ -64,45 +55,40 @@ Preparing an Update See doc/update-hosting for more details on hosting and delivering the updates. -Invoking the Updater -==================== +## Invoking the Updater Once the application has downloaded an update, it needs to invoke it. The syntax is: - updater --install-dir --package-dir --script