29 lines
728 B
Bash
29 lines
728 B
Bash
BUILD_DIR="$TRAVIS_BUILD_DIR/gh-pages/"
|
|
mkdir -p $BUILD_DIR
|
|
|
|
cat > $BUILD_DIR/chromium.xml <<EOL
|
|
<?xml version='1.0' encoding='UTF-8'?>
|
|
<gupdate xmlns='http://www.google.com/update2/response' protocol='2.0'>
|
|
<app appid='magjmaimhngoidhmklnpihkdjkggbpnp'>
|
|
<updatecheck codebase='https://github.com/burlesco/burlesco/releases/download/$TRAVIS_TAG/burlesco-chromium.crx' version='${TRAVIS_TAG:1}' />
|
|
</app>
|
|
</gupdate>
|
|
EOL
|
|
|
|
|
|
cat > $BUILD_DIR/firefox.json <<EOL
|
|
{
|
|
"addons": {
|
|
"burlesco@burles.co": {
|
|
"updates": [
|
|
{
|
|
"version": "${TRAVIS_TAG:1}",
|
|
"update_link": "https://github.com/burlesco/burlesco/releases/download/$TRAVIS_TAG/burlesco-firefox.xpi"
|
|
}
|
|
]
|
|
}
|
|
}
|
|
}
|
|
EOL
|
|
|