Skip to content

Commit

Permalink
publishing info and commands in Makefile
Browse files Browse the repository at this point in the history
  • Loading branch information
stannie committed Oct 18, 2018
1 parent 28b1a0a commit f0846cf
Show file tree
Hide file tree
Showing 4 changed files with 119 additions and 0 deletions.
41 changes: 41 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
# dependencies for browser add-on / extension
# (c) 2018 Authentiq B.V.
# Stan van de Burgt @stannie

IMGFILES=$(wildcard images/*)
FILES=LICENSE README.md background.js options.js options.html

hi:
@echo "Use: make firefox|chrome|opera"

#all: firefox chrome

firefox: authentiq-firefox-2fa.zip
@echo Ready for $@: $<
@echo Console: https://addons.mozilla.org/en-US/developers/addon/authentiq-2fa/edit

authentiq-firefox-2fa.zip: manifest-firefox.json $(FILES) $(IMGFILES)
cp $< manifest.json
zip $@ manifest.json $^
#printf "@ manifest-firefox.json\n@=manifest.json\n" | zipnote -w $@

chrome: authentiq-chrome-2fa.zip
@echo Ready for $@: $<
@echo Console: https://chrome.google.com/webstore/developer/dashboard/g03867941375704827632

authentiq-chrome-2fa.zip: manifest-chrome.json $(FILES) $(IMGFILES)
cp $< manifest.json
zip $@ manifest.json $^
#printf "@ manifest-chrome.json\n@=manifest.json\n" | zipnote -w $@

opera: authentiq-opera-2fa.zip
@echo Ready for $@: $<
@echo See https://dev.opera.com/extensions/basics/ on how to create a .nex
@echo Console: https://addons.opera.com/developer/package/233586/

authentiq-opera-2fa.zip: manifest-opera.json $(FILES) $(IMGFILES)
cp $< manifest.json
zip $@ manifest.json $^

clean:
/bin/rm manifest.json authentiq-*-2fa.zip
36 changes: 36 additions & 0 deletions manifest-chrome.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
{
"name": "Authentiq 2FA",
"short_name": "Authentiq",
"description": "Nudge your Authentiq ID app (iOS, Android) to display the 2FA code for the current site",
"version": "0.2",
"author": "The Authentiq team",

"options_ui": {
"page": "options.html"
},

"background": {
"scripts": ["background.js"]
},
"browser_action": {
"default_icon": {
"16": "images/authentiq-16.png",
"19": "images/authentiq-19.png",
"32": "images/authentiq-32.png",
"38": "images/authentiq-38.png"
}
},
"icons": {
"16": "images/authentiq-16.png",
"32": "images/authentiq-32.png",
"48": "images/authentiq-48.png",
"96": "images/authentiq-96.png",
"128": "images/authentiq-128.png"
},
"permissions": [
"activeTab",
"storage",
"https://20-dot-authentiqio.appspot.com/*"
],
"manifest_version": 2
}
42 changes: 42 additions & 0 deletions manifest-firefox.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
{
"name": "Authentiq 2FA",
"description": "Nudge your Authentiq ID app to display the TOTP for this site",
"version": "0.2",
"author": "The Authentiq team",

"applications": {
"gecko": {
"id": "[email protected]",
"strict_min_version": "42.0"
}
},

"options_ui": {
"page": "options.html"
},

"background": {
"scripts": ["background.js"]
},
"browser_action": {
"default_icon": {
"16": "images/authentiq-16.png",
"19": "images/authentiq-19.png",
"32": "images/authentiq-32.png",
"38": "images/authentiq-38.png"
}
},
"icons": {
"16": "images/authentiq-16.png",
"32": "images/authentiq-32.png",
"48": "images/authentiq-48.png",
"96": "images/authentiq-96.png",
"128": "images/authentiq-128.png"
},
"permissions": [
"activeTab",
"storage",
"https://20-dot-authentiqio.appspot.com/*"
],
"manifest_version": 2
}
File renamed without changes.

0 comments on commit f0846cf

Please sign in to comment.