user1182355
user1182355

Reputation: 11

How to package Firefox and Chrome extensions

I am new to Firefox and Chrome extension development.

I have downloaded and tested helloworld sample extension in both FF and Chrome in development mode.

Followed the following steps to work properly in FF and chrome,

Now I would like to know how to package these extensions? I mean on clicking the package that extension should install directly in the browser instead of following the above steps.

Upvotes: 1

Views: 5861

Answers (1)

Wladimir Palant
Wladimir Palant

Reputation: 57691

It's generally not a good idea to ask four questions at once. Let's try to answer all your questions:

How do I package a Firefox extension?

You follow the official documentation (a Firefox XPI package is simply a ZIP archive).

How do I package a Chrome extension?

You follow the official documentation.

How do I make sure a Firefox extension can be installed from a website?

That question is already answered elsewhere.

How do I make sure a Chrome extension can be installed from a website?

You cannot. Current Chrome versions make it very complicated to install extensions from third-party sites. Your best bet is to upload your extension to the Chrome Web Store (as a ZIP archive of extension files, not a proper package - Chrome Web Store creates the package for you). Once the extension is in the Chrome Web Store you can use inline installation to simplify installation from the website associated with your extension.

Upvotes: 3

Related Questions