Add Firefox make goal (#41)
This commit is contained in:
3
.gitignore
vendored
3
.gitignore
vendored
@@ -1,4 +1,5 @@
|
|||||||
/chrome
|
/chromium
|
||||||
|
/firefox
|
||||||
/src/node_modules
|
/src/node_modules
|
||||||
/src/css
|
/src/css
|
||||||
/src/js
|
/src/js
|
||||||
|
55
Makefile
55
Makefile
@@ -1,31 +1,48 @@
|
|||||||
CLEAN_FILES := chrome
|
CLEAN_FILES := chromium firefox
|
||||||
|
|
||||||
.PHONY: all
|
.PHONY: all
|
||||||
all: extension chrome
|
all: extension chromium firefox
|
||||||
|
|
||||||
.PHONY: extension
|
.PHONY: extension
|
||||||
extension:
|
extension:
|
||||||
$(MAKE) -C src
|
$(MAKE) -C src
|
||||||
|
|
||||||
CHROME_FILES := manifest.json \
|
EXTENSION_FILES := \
|
||||||
*.css \
|
src/*.css \
|
||||||
*.png \
|
src/*.png \
|
||||||
popup/*.html \
|
src/popup/*.html \
|
||||||
popup/*.svg \
|
src/popup/*.svg \
|
||||||
options/*.html
|
src/options/*.html
|
||||||
CHROME_FILES := $(wildcard $(addprefix src/,$(CHROME_FILES))) \
|
EXTENSION_FILES := \
|
||||||
src/css/popup.dist.css \
|
$(wildcard $(EXTENSION_FILES)) \
|
||||||
src/css/options.dist.css \
|
src/css/popup.dist.css \
|
||||||
src/js/background.dist.js \
|
src/css/options.dist.css \
|
||||||
src/js/popup.dist.js \
|
src/js/background.dist.js \
|
||||||
src/js/options.dist.js \
|
src/js/popup.dist.js \
|
||||||
src/js/inject.dist.js
|
src/js/options.dist.js \
|
||||||
CHROME_FILES := $(patsubst src/%,chrome/%,$(CHROME_FILES))
|
src/js/inject.dist.js
|
||||||
|
CHROMIUM_FILES := $(patsubst src/%,chromium/%, $(EXTENSION_FILES))
|
||||||
|
FIREFOX_FILES := $(patsubst src/%,firefox/%, $(EXTENSION_FILES))
|
||||||
|
|
||||||
.PHONY: chrome
|
.PHONY: chromium
|
||||||
chrome: extension $(CHROME_FILES)
|
chromium: extension $(CHROMIUM_FILES) chromium/manifest.json
|
||||||
|
|
||||||
$(CHROME_FILES) : chrome/% : src/%
|
$(CHROMIUM_FILES) : chromium/% : src/%
|
||||||
|
[ -d $(dir $@) ] || mkdir -p $(dir $@)
|
||||||
|
cp $< $@
|
||||||
|
|
||||||
|
chromium/manifest.json : src/manifest-chromium.json
|
||||||
|
[ -d $(dir $@) ] || mkdir -p $(dir $@)
|
||||||
|
cp $< $@
|
||||||
|
|
||||||
|
.PHONY: firefox
|
||||||
|
firefox: extension $(FIREFOX_FILES) firefox/manifest.json
|
||||||
|
|
||||||
|
$(FIREFOX_FILES) : firefox/% : src/%
|
||||||
|
[ -d $(dir $@) ] || mkdir -p $(dir $@)
|
||||||
|
cp $< $@
|
||||||
|
|
||||||
|
firefox/manifest.json : src/manifest-firefox.json
|
||||||
[ -d $(dir $@) ] || mkdir -p $(dir $@)
|
[ -d $(dir $@) ] || mkdir -p $(dir $@)
|
||||||
cp $< $@
|
cp $< $@
|
||||||
|
|
||||||
|
@@ -4,7 +4,7 @@
|
|||||||
"name": "Browserpass",
|
"name": "Browserpass",
|
||||||
"description": "Browser extension for zx2c4's pass (password manager)",
|
"description": "Browser extension for zx2c4's pass (password manager)",
|
||||||
"version": "3.0.0",
|
"version": "3.0.0",
|
||||||
"author": ["Maxim Baz <browserpass@maximbaz.com>", "Steve Gilberd <steve@erayd.net>"],
|
"author": "Maxim Baz <browserpass@maximbaz.com>, Steve Gilberd <steve@erayd.net>",
|
||||||
"homepage_url": "https://github.com/browserpass/browserpass-extension",
|
"homepage_url": "https://github.com/browserpass/browserpass-extension",
|
||||||
"background": {
|
"background": {
|
||||||
"persistent": true,
|
"persistent": true,
|
||||||
@@ -23,6 +23,7 @@
|
|||||||
"open_in_tab": false
|
"open_in_tab": false
|
||||||
},
|
},
|
||||||
"permissions": [
|
"permissions": [
|
||||||
|
"clipboardWrite",
|
||||||
"activeTab",
|
"activeTab",
|
||||||
"nativeMessaging",
|
"nativeMessaging",
|
||||||
"notifications",
|
"notifications",
|
46
src/manifest-firefox.json
Normal file
46
src/manifest-firefox.json
Normal file
@@ -0,0 +1,46 @@
|
|||||||
|
{
|
||||||
|
"manifest_version": 2,
|
||||||
|
"name": "Browserpass",
|
||||||
|
"description": "Browser extension for zx2c4's pass (password manager)",
|
||||||
|
"version": "3.0.0",
|
||||||
|
"author": "Maxim Baz <browserpass@maximbaz.com>, Steve Gilberd <steve@erayd.net>",
|
||||||
|
"homepage_url": "https://github.com/browserpass/browserpass-extension",
|
||||||
|
"background": {
|
||||||
|
"persistent": true,
|
||||||
|
"scripts": ["js/background.dist.js"]
|
||||||
|
},
|
||||||
|
"icons": {
|
||||||
|
"128": "icon-lock.png"
|
||||||
|
},
|
||||||
|
"browser_action": {
|
||||||
|
"default_icon": "icon-lock.png",
|
||||||
|
"default_popup": "popup/popup.html"
|
||||||
|
},
|
||||||
|
"options_ui": {
|
||||||
|
"page": "options/options.html",
|
||||||
|
"open_in_tab": false
|
||||||
|
},
|
||||||
|
"permissions": [
|
||||||
|
"clipboardWrite",
|
||||||
|
"activeTab",
|
||||||
|
"nativeMessaging",
|
||||||
|
"notifications",
|
||||||
|
"webRequest",
|
||||||
|
"webRequestBlocking",
|
||||||
|
"http://*/*",
|
||||||
|
"https://*/*"
|
||||||
|
],
|
||||||
|
"applications": {
|
||||||
|
"gecko": {
|
||||||
|
"id": "browserpass@maximbaz.com",
|
||||||
|
"strict_min_version": "50.0"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"commands": {
|
||||||
|
"_execute_browser_action": {
|
||||||
|
"suggested_key": {
|
||||||
|
"default": "Ctrl+Shift+L"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
Reference in New Issue
Block a user