Skip to content

Instantly share code, notes, and snippets.

@jryans
Last active November 25, 2015 19:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jryans/c1cdc71ea55a40dc6ca8 to your computer and use it in GitHub Desktop.
Save jryans/c1cdc71ea55a40dc6ca8 to your computer and use it in GitHub Desktop.
Release simulators
# This first upload is slow, it appeared to hang for me, but eventually completed
aws s3 cp fxos-simulator-2.6.20151123030230-mac64.xpi s3://net-mozaws-prod-delivery-contrib/pub/labs/fxos-simulator/2.6/mac64/fxos-simulator-2.6.20151123030230-mac64.xpi
# WebIDE will try to download from https://ftp.mozilla.org/pub/mozilla.org/labs/fxos-simulator/#VERSION#/#OS#/fxos_#SLASHED_VERSION#_simulator-#OS#-latest.xpi
# Use a copy inside s3 to avoid re-uploading
aws s3 cp s3://net-mozaws-prod-delivery-contrib/pub/labs/fxos-simulator/2.6/mac64/fxos-simulator-2.6.20151123030230-mac64.xpi s3://net-mozaws-prod-delivery-contrib/pub/labs/fxos-simulator/2.6/mac64/fxos_2_6_simulator-mac64-latest.xpi
# Edit update.rdf to reflect the correct ID, version, path
aws s3 cp --cache-control max-age=3600 update.rdf s3://net-mozaws-prod-delivery-contrib/pub/labs/fxos-simulator/2.6/mac64/update.rdf
<?xml version="1.0" encoding="utf-8"?>
<RDF xmlns="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:em="http://www.mozilla.org/2004/em-rdf#">
<Description about="urn:mozilla:extension:fxos_2_6_simulator@mozilla.org">
<em:updates>
<Seq><li>
<Description>
<em:version>2.6.20151123030230</em:version>
<em:targetApplication>
<Description>
<em:id>{ec8030f7-c20a-464f-9b0e-13a3a9e97384}</em:id>
<em:minVersion>19.0</em:minVersion>
<em:maxVersion>40.*</em:maxVersion>
<em:updateLink>https://ftp.mozilla.org/pub/mozilla.org/labs/fxos-simulator/2.6/mac64/fxos-simulator-2.6.20151123030230-mac64.xpi</em:updateLink>
</Description>
</em:targetApplication>
</Description>
</li></Seq>
</em:updates>
</Description>
</RDF>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment