Closed Bug 1640090 Opened 5 years ago Closed 5 years ago

Tech spec for Update.xml & MAR files.

Categories

(Toolkit :: Application Update, defect)

76 Branch
defect

Tracking

()

RESOLVED INVALID

People

(Reporter: netimpress, Unassigned)

References

Details

User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:76.0) Gecko/20100101 Firefox/76.0

Steps to reproduce:

Where is a tech specification about update.xml for update Firefox form MAR files ?

Bugbug thinks this bug should belong to this component, but please revert this change in case of error.

Component: Untriaged → Application Update
Product: Firefox → Toolkit

If you're looking for technical documentation of the XML format, there is a MozillaWiki page for it here, but this is likely out of date as most of those fields are no longer used. An xml as we serve now looks like this:

<?xml version="1.0" encoding="UTF-8"?>
<updates>
    <update type="minor" displayVersion="2000.0a1" appVersion="2000.0a1" platformVersion="2000.0a1" buildID="21181002100236">
        <patch type="complete" URL="http://127.0.0.1:8000/<mar name>" hashFunction="sha512" hashValue="<hash>" size="<size>"/>
    </update>
</updates>

Some of this is redundant; displayVersion, appVersion and platformVersion are usually going to be the same, and I don't think we distinguish between minor and major update types anymore.

You may find this MDN article helpful from a practical perspective if you're trying to serve your own updates: Setting up an update server

There is a wiki article for the MAR file structure which I think is accurate.

We have bug 1616403 on file for generally improving the documentation around the updater. If you have any specific questions please feel free to ask, but I'll close this for now as this is not really a support forum.

Status: UNCONFIRMED → RESOLVED
Closed: 5 years ago
Resolution: --- → INVALID
See Also: → updater-docs
You need to log in before you can comment on or make changes to this bug.