946
edits
No edit summary |
|||
| (29 intermediate revisions by 5 users not shown) | |||
| Line 1: | Line 1: | ||
Back to [[Software Update]] | |||
The Update Service: | The Update Service: | ||
| Line 4: | Line 6: | ||
* provides a means for the user to check for updates to the application | * provides a means for the user to check for updates to the application | ||
* provide a set of controls for determining update behavior | * provide a set of controls for determining update behavior | ||
= The Background Timer = | |||
The system will automatically check for updates without user intervention: | |||
* every 24 hours | |||
* on the first startup following an update, to check to see if the patch applied is the newest possible update or if there are newer ones. | |||
Regarding critical security updates, it would be useful to the user, if we could display a pop-up or similar sort (like what we have for-- " New updates available ") with the importance of this critical security update. This way we can inform the user the urgent need for the upgrade. | |||
= The Update Check = | = The Update Check = | ||
| Line 17: | Line 28: | ||
The Service URL needs to incorporate data in these dimensions so as to reduce the complexity of the processing on the client side: | The Service URL needs to incorporate data in these dimensions so as to reduce the complexity of the processing on the client side: | ||
* service URL schema version (so we can change it in the future) | |||
* app name | * app name | ||
* app version | * app version | ||
* app buildid (for distinguishing between nightlies on a "tester" build stream for example) | * app buildid (for distinguishing between nightlies on a "tester" build stream for example) | ||
* app buildtarget | * app buildtarget | ||
* app locale | |||
* aus channel | |||
* distribution name | |||
* distribution version | |||
e.g. | e.g., | ||
<tt>/ | <tt>/update/3/Firefox/3.0a8pre/2007083015/Darwin_x86-gcc3/en-US/default/Darwin%208.10.1/testpartner/1.0/update.xml</tt> | ||
See app.update.url below for the template used in creating the Service URL. | |||
=The Updates File= | =The Updates File= | ||
See [[Software_Update:updates.xml_Format]] for documentation of this format. | |||
for | |||
= Preference Controls and State = | |||
* <tt>app.update.enabled</tt> | |||
<blockquote> | |||
<table border="1" cellspacing="0" cellpadding="3"> | |||
<tr><td><tt>'''true'''</tt></td><td>Enables background update checking</td></tr> | |||
<tr><td><tt>'''false'''</tt></td><td>Disables background update checking</td></tr> | |||
</table> | |||
</blockquote> | |||
* <tt>app.update.mode</tt> | |||
<blockquote> | |||
<table border="1" cellspacing="0" cellpadding="3"> | |||
<tr><td>'''0'''</td> | |||
<td>automatically download updates for minor and major updates, regardless of incompatibilities that may arise with addons</td></tr> | |||
<tr><td>'''1'''</td> | |||
<td>automatically download updates for minor and major releases, if no incompatibilities with addons are present, otherwise prompt</td></tr> | |||
<tr><td>'''2'''</td> | |||
<td>automatically download updates for minor releases, prompt about major releases</td></tr> | |||
<tr><td>'''3'''</td> | |||
<td>prompt about minor and major releases</td></tr> | |||
</table> | |||
</blockquote> | |||
* <tt>app.update.interval</tt> | |||
<blockquote> | |||
<table border="1" cellspacing="0" cellpadding="3"> | |||
<tr><td>'''86400'''</td><td>seconds between update checks</td></tr> | |||
</table> | |||
</blockquote> | |||
* <tt>app.update.timer</tt> | |||
<blockquote> | |||
<table border="1" cellspacing="0" cellpadding="3"> | |||
<tr><td>'''5000'''</td><td>milliseconds between app.update.interval expiry checks</td></tr> | |||
</table> | |||
</blockquote> | |||
* <tt>app.update.silent</tt> | |||
<blockquote> | |||
<table border="1" cellspacing="0" cellpadding="3"> | |||
<tr><td>'''true'''</td><td>all update prompting should be suppressed</td></tr> | |||
<tr><td>'''false'''</td><td>show prompts to the user when there are events they should respond to</td></tr> | |||
</table> | |||
</blockquote> | |||
* <tt>app.update.lastUpdateDate.background-update-timer</tt> | |||
<blockquote> | |||
<table border="1" cellspacing="0" cellpadding="3"> | |||
<tr><td>'''1114648397'''</td><td>seconds since epoch of last update time</td></tr> | |||
</table> | |||
</blockquote> | |||
* <tt>app.update.url</tt> | |||
<blockquote> | |||
<table border="1" cellspacing="0" cellpadding="3"> | |||
<tr><td>'''https://aus2.mozilla.org/update/3/%PRODUCT%/%VERSION%/%BUILD_ID%/%BUILD_TARGET%/%LOCALE%/%CHANNEL%/%OS_VERSION%/%DISTRIBUTION%/%DISTRIBUTION_VERSION%/update.xml'''</td></tr> | |||
<tr><td>'3' is the schema version<br/> | |||
PRODUCT: App name (e.g., 'Firefox')<br/> | |||
VERSION: App version (e.g. '3.0a8pre')<br/> | |||
BUILD_ID: Build ID (e.g., '2007083015')<br/> | |||
BUILD_TARGET: Build target (e.g., 'Darwin_x86-gcc3')<br/> | |||
LOCALE: App locale (e.g., 'en-US')<br/> | |||
CHANNEL: AUS channel (e.g., 'default')<br/> | |||
OS_VERSION: Operating System version (e.g., 'Darwin%208.10.1')<br/> | |||
DISTRIBUTION: Name of customized distribution, if any (e.g., 'testpartner')<br/> | |||
DISTRIBUTION_VERSION: Version of the customized distribution (e.g., '1.0) | |||
</td></tr> | |||
</table> | |||
</blockquote> | |||
Back to [[Software Update]] | |||
edits