Galz
Galz

Reputation: 6842

chrome extension auto-update from a local server

I have created a chrome extension for the company I work for, and want to post updates to a local server within the office network. I have read http://code.google.com/chrome/extensions/autoupdate.html, but to no avail.

manifest.json

{
  "name": "My Helper",
  "version": "1.0",
  "description": "desc",
  "omnibox": { "keyword" : "bla" },

  "update_url": "\\\\serverName\\Dir\\updates.xml",
  "background_page" : "background.html",
  "browser_action": {
    "default_icon": "icon.png",
    "popup": "popup.html"
  },

  "permissions":
     ["tabs"]
}

updates.xml

<?xml version='1.0' encoding='UTF-8'?>
<gupdate xmlns='http://www.google.com/update2/response' protocol='2.0'>
  <app appid='abpjmfcmljpfhjpalecklgnndibgnjmp'>
    <updatecheck codebase='\\serverName\Dir\my_helper.crx' version='1.0' />
  </app>
</gupdate>

Now, after I make some changes, I do the following:

-> Nothing happens.

Question is - how to make an extension auto-update from a shared server on the local network?

P.S. I am pretty sure this is not a permissions issue. I have made sure I can access \\serverName\Dir\ from all clients on this network.

Upvotes: 2

Views: 3732

Answers (2)

xLRDxREVENGEx
xLRDxREVENGEx

Reputation: 215

yep you could put the update on a live but private server with some ridiculous sub-domain or domain name and even further add a random dir name or two if your worried about it going public

Upvotes: 1

Mohamed Mansour
Mohamed Mansour

Reputation: 40189

AFAIK Network URL's are not supported. Host a simple HTTP server (there are many out there), and link directly to that instead.

Upvotes: 1

Related Questions