Opened 2 years ago

Last modified 22 months ago

#2533 new task

browser update server [clearnet | i2p]

Reported by: Meeh Owned by: Meeh
Priority: major Milestone: undecided
Component: apps/browser Version: 0.9.40
Keywords: Cc: Eche|on
Parent Tickets: Sensitive: no


We need a way to push new updates of the browser to our users. So we reuse TBB and Mozilla's auto updater.


Change History (6)

comment:1 Changed 2 years ago by anonymous maybe

and dont forget as well plugins updates (Noscript , Https-everywhere ..)

comment:2 Changed 2 years ago by Meeh

However I refuse to install the security hole they name "PHP". So I'll figure out a small python/ruby script doing the same.

comment:3 Changed 22 months ago by Meeh

Sensitive: unset

Initial code is written. A simple flask script which says no updates is added below.

from flask import Flask
import os,sys

# Flask app
app = Flask(__name__)

# Routes

@app.route('/i2pbrowser/update_3/<channel>/<build_target>/<version>/<locale>/update.xml', methods=['GET'])
def update_alias(channel,build_target,version,locale):
    return show_update_xml(channel,build_target,version,locale)

@app.route('/i2pbrowser/update_3/<channel>/<build_target>/<version>/<locale>', methods=['GET'])
def show_updates(channel,build_target,version,locale):
    return show_update_xml(channel,build_target,version,locale)

# Actual functionality

def show_update_xml(channel,build_target,version,locale):
    return """<?xml version="1.0"?>

# Debug run mode

if __name__ == '__main__':'', port=5050, debug=True)

app.update.url is set to "" and I've also made the service available.

comment:4 Changed 22 months ago by Meeh

Cc: Eche|on added

echelon: could you add a A record for to

comment:5 Changed 22 months ago by Meeh

Paths to expect to be requested (with changing version number and locale);

comment:6 Changed 22 months ago by Eche|on

Ok, added A entry.

Note: See TracTickets for help on using tickets.