Skip to content

Commit

Permalink
Merge branch 'amo-fixes'
Browse files Browse the repository at this point in the history
* amo-fixes:
  only do file actions when those files are available
  add CurrentTransfers to light
  • Loading branch information
minj committed Oct 10, 2015
2 parents d9d3c27 + cbbca45 commit 2d605ac
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 15 deletions.
1 change: 1 addition & 0 deletions included-modules-light
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ forum/forum-thread-auto-ignore.js
forum/forum-youth-icons.js
forum/mark-all-as-read.js
forum/mark-unread.js
information-aggregation/current-transfers.js
information-aggregation/dashboard-calendar.js
information-aggregation/extended-player-details.js
information-aggregation/extra-player-info.js
Expand Down
38 changes: 23 additions & 15 deletions maintainer/upload-nightly.sh
Original file line number Diff line number Diff line change
Expand Up @@ -68,25 +68,33 @@ fi
if [ -f "${SRC_DIR}/foxtrick.zip" ]; then
DISPLAY=:89 python dist/cws_upload.py ${CHROME_ID} "${SRC_DIR}/foxtrick.zip" || exit 2
fi
DISPLAY=:89 python dist/amo_upload.py "${SRC_DIR}/foxtrick.xpi" || exit 2
if [ -f "${SRC_DIR}/foxtrick.xpi" ]; then
DISPLAY=:89 python dist/amo_upload.py "${SRC_DIR}/foxtrick.xpi" || exit 2
fi

if [ "$UPLOAD_UPDATE_FILES" == "true" ]; then
# modify update-firefox.rdf for Gecko
cp update-tmpl-firefox.rdf update-firefox.rdf
GECKO_SHA1SUM=`sha1sum "${SRC_DIR}/foxtrick.xpi" | sed -r 's/\s+.+$//g'`
sed -i "s|{UPDATE_LINK}|${URL_BASE}/foxtrick-${VERSION}.xpi|g" update-firefox.rdf
sed -i "s|{UPDATE_HASH}|sha1:${GECKO_SHA1SUM}|g" update-firefox.rdf
sed -i "s|{VERSION}|${VERSION}|g" update-firefox.rdf
if [ -f "${SRC_DIR}/foxtrick.xpi" ]; then
# modify update-firefox.rdf for Gecko
cp update-tmpl-firefox.rdf update-firefox.rdf
GECKO_SHA1SUM=`sha1sum "${SRC_DIR}/foxtrick.xpi" | sed -r 's/\s+.+$//g'`
sed -i "s|{UPDATE_LINK}|${URL_BASE}/foxtrick-${VERSION}.xpi|g" update-firefox.rdf
sed -i "s|{UPDATE_HASH}|sha1:${GECKO_SHA1SUM}|g" update-firefox.rdf
sed -i "s|{VERSION}|${VERSION}|g" update-firefox.rdf
fi

# modify update-chrome.xml for Google Chrome
cp update-tmpl-chrome.xml update-chrome.xml
sed -i "s|{UPDATE_LINK}|${URL_BASE}/chrome/foxtrick-${VERSION}.crx|g" update-chrome.xml
sed -i "s|{VERSION}|${VERSION}|g" update-chrome.xml
if [ -f "${SRC_DIR}/foxtrick.crx" ]; then
# modify update-chrome.xml for Google Chrome
cp update-tmpl-chrome.xml update-chrome.xml
sed -i "s|{UPDATE_LINK}|${URL_BASE}/chrome/foxtrick-${VERSION}.crx|g" update-chrome.xml
sed -i "s|{VERSION}|${VERSION}|g" update-chrome.xml
fi

# modify update-safari.plist for Safari
cp update-tmpl-safari.plist update-safari.plist
sed -i "s|{UPDATE_LINK}|${URL_BASE}/safari/foxtrick-${VERSION}.safariextz|g" update-safari.plist
sed -i "s|{VERSION}|${VERSION}|g" update-safari.plist
if [ -f "${SRC_DIR}/foxtrick.safariextz" ]; then
# modify update-safari.plist for Safari
cp update-tmpl-safari.plist update-safari.plist
sed -i "s|{UPDATE_LINK}|${URL_BASE}/safari/foxtrick-${VERSION}.safariextz|g" update-safari.plist
sed -i "s|{VERSION}|${VERSION}|g" update-safari.plist
fi
fi

echo "uploading to $HOST $DEST"
Expand Down

0 comments on commit 2d605ac

Please sign in to comment.