This is simply extension, without upload google server.
Make CRX file and You can update manually this google chrome extension.

You Need File: manifest.json

This file content is:

{ { … } <- this is comment (with bold) }

{
“name”: “{Extension Name}“,
“version”: “{extension version (e.g. 1.5). it is for update!!! }“,
“description”: “{Extension description}“,
“icons”: {
“32”: “icon32.png”, {It is icons 32, 48 and 128 X pixel, for all views…}
“48”: “icon48.png”,
“128”: “icon128.png”
},

{ AND NEXT }

“browser_action”: {
“default_icon”: “logo.png”, {extension icon}
“popup”: “index.html” {open index.html file}
},

{ AND NEXT }

“permissions”: [
“tabs” {only tabs, becose i want open only index.html simply file}
],
“update_url”: “{here is url http://…example.xml it is for update with version (version: 1.5->1.6) .}
}

NEXT FILE IS index.html with content:

<style>
….
….

</style>

AND

<script>

function home() { {this function is, for open in new tab this URL}
chrome.tabs.create({url:”http://www.example.com&#8221;,selected:true});
}

</script>

AND

OPEN HOME PAGE

{this is html code and when click – open page http://www.example.com}

<p onclick=”home()”> Click for Home page </p>

 

AND THEN GO TO google chrome -> Option -> Tools -> Extensions

1)PACK EXTENSION;
2) set “Extension root directory:”;
3) click PACK EXTESNION (without private key)

then one up level folder we have two files:
1. —.crx
2. —.pem

AND THEN

OPEN this CRX file (with mouse drop) in google chrome and install this extension.
then go to again google chrome -> Option -> Tools -> Extensions.
in our extension is arrow – “>”. click this arroy and we can read extension ID.

AND THEN

example.xml content:

<app appid=”{sadflkasjdflaskdjfsald}“>

{appid – it is EXTENSION ID }
and we have crx file.

_____________________________________________

FOR UPDATE we can make our chrome extension new version.

in json file write more version (e.g. 1.5 more -> 1.6 , 2.0, 5.9 and other)

change anything in script what you want and then pack crx again (google chrome -> Option -> Tools -> Extensions.)
* next version we wonna make pack with —.pem file, for unique ID, for update with XML file.

_________

sorry for my bad english : ) good luck

Advertisements