2004-06-09 19:09:16 +00:00
|
|
|
<?php
|
2004-03-02 03:46:04 +00:00
|
|
|
require_once("docutil.php");
|
2004-12-01 05:03:53 +00:00
|
|
|
page_head("Releasing application versions");
|
2004-03-02 03:46:04 +00:00
|
|
|
echo "
|
|
|
|
|
2004-05-31 18:13:01 +00:00
|
|
|
The <code>update_versions</code> script
|
2004-03-02 03:46:04 +00:00
|
|
|
releases new application versions.
|
2004-12-09 00:46:07 +00:00
|
|
|
It creates database entries and copies files to the download directory.
|
2003-09-11 22:26:42 +00:00
|
|
|
<p>
|
|
|
|
To use:
|
|
|
|
<ul>
|
2004-12-09 00:46:07 +00:00
|
|
|
<li>
|
|
|
|
If it doesn't already exit,
|
|
|
|
create an directory 'apps' under the project directory,
|
|
|
|
and add an ", htmlspecialchars("<app_dir>"),
|
2004-03-02 03:46:04 +00:00
|
|
|
" element to config.xml giving the path of the apps directory.
|
2003-09-11 22:26:42 +00:00
|
|
|
<li> Create a subdirectory for each application,
|
2004-12-09 00:46:07 +00:00
|
|
|
with the short name of the application.
|
2005-03-17 22:46:07 +00:00
|
|
|
Put new application files here (see below).
|
2003-09-11 22:26:42 +00:00
|
|
|
<code>update_versions</code>
|
2004-05-31 18:13:01 +00:00
|
|
|
scans these directories for new application versions.
|
2005-03-17 22:46:07 +00:00
|
|
|
<li> From the project's root directory, run bin/update_versions
|
2004-05-31 18:13:01 +00:00
|
|
|
</ul>
|
2005-03-17 22:46:07 +00:00
|
|
|
|
|
|
|
<h3>Single-file application versions</h3>
|
2003-09-11 22:26:42 +00:00
|
|
|
|
|
|
|
File names must be of the form <code>NAME_VERSION_PLATFORM[.ext]</code>, e.g.:
|
|
|
|
<pre>
|
2006-06-14 21:58:23 +00:00
|
|
|
boinc_3.17_i686-pc-linux-gnu
|
2003-09-11 22:26:42 +00:00
|
|
|
astropulse_7.17_windows_intelx86.exe
|
|
|
|
</pre>
|
2004-10-01 22:00:39 +00:00
|
|
|
<p>
|
2004-12-09 00:46:07 +00:00
|
|
|
<b>Platform strings must match the names of platforms in the database.</b>
|
|
|
|
If needed, <a href=tool_xadd.php>add the platform to the DB</a>.
|
2003-09-04 06:17:15 +00:00
|
|
|
|
2006-06-14 21:58:23 +00:00
|
|
|
|
|
|
|
<h3>Multiple-file application versions</h3>
|
|
|
|
|
|
|
|
Application versions can consist of multiple files,
|
|
|
|
one of which is the main program.
|
|
|
|
To create a multiple-file application version,
|
|
|
|
create a directory with the same name as the main program
|
|
|
|
(of the form NAME_VERSION_PLATFORM[.ext]).
|
|
|
|
and put the files in that directory.
|
|
|
|
<p>
|
|
|
|
If your application includes executable files other than
|
|
|
|
the main file, make sure that their protection flags
|
|
|
|
include the user execute (u+x) bit.
|
|
|
|
|
|
|
|
<h3>Passing extra information about files</h3>
|
2003-09-11 22:26:42 +00:00
|
|
|
<p>
|
2004-08-19 15:36:30 +00:00
|
|
|
If a file of the form
|
|
|
|
<pre>
|
2005-01-28 04:57:56 +00:00
|
|
|
FILENAME.sig
|
2004-08-19 15:36:30 +00:00
|
|
|
</pre>
|
|
|
|
is found, its contents will be used as a digital signature
|
|
|
|
for the corresponding file.
|
|
|
|
Recommended code-signing practices are described
|
|
|
|
<a href=code_signing.php>here</a>.
|
|
|
|
|
2004-12-09 00:46:07 +00:00
|
|
|
<p>
|
|
|
|
If a file of the form
|
|
|
|
<pre>
|
2005-01-28 04:57:56 +00:00
|
|
|
FILENAME.file_ref_info
|
2004-12-09 00:46:07 +00:00
|
|
|
</pre>
|
2005-01-28 04:57:56 +00:00
|
|
|
is found, its contents will be added to the <file_ref>
|
2004-12-09 00:46:07 +00:00
|
|
|
element describing the file
|
|
|
|
(you can use this for attributes like <copy_file>).
|
2004-09-25 00:27:25 +00:00
|
|
|
|
2005-01-28 04:57:56 +00:00
|
|
|
<p>
|
2006-06-14 21:58:23 +00:00
|
|
|
If a file of the form
|
|
|
|
<pre>
|
|
|
|
LOGICAL_NAME=PHYSICAL_NAME
|
|
|
|
</pre>
|
|
|
|
is found, the given logical and physical names will be used
|
|
|
|
(i.e., the application will be able to access the file
|
|
|
|
by passing the logical name to boinc_resolve_filename()).
|
2004-03-02 03:46:04 +00:00
|
|
|
|
|
|
|
|
2003-09-11 22:26:42 +00:00
|
|
|
";
|
2003-09-04 06:17:15 +00:00
|
|
|
page_tail();
|
|
|
|
?>
|
|
|
|
|