From d2e92374a2e9a8a1496b9b5c074c783d3750a8d2 Mon Sep 17 00:00:00 2001 From: Ximi1970 Date: Sat, 4 Jan 2020 00:06:41 +0100 Subject: [PATCH] Initial setup --- .gitignore | 2 ++ Makefile | 15 +++++++++++++++ webext/background.js | 1 + webext/icons/LICENSE | 1 + webext/icons/message.svg | 8 ++++++++ webext/manifest.json | 27 +++++++++++++++++++++++++++ 6 files changed, 54 insertions(+) create mode 100644 .gitignore create mode 100644 Makefile create mode 100644 webext/background.js create mode 100644 webext/icons/LICENSE create mode 100644 webext/icons/message.svg create mode 100644 webext/manifest.json diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..86c2fc7 --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +*.xpi + diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..3698380 --- /dev/null +++ b/Makefile @@ -0,0 +1,15 @@ +.PHONY: clean \ + systray-x-xpi + +all: systray-x-xpi + +clean: + echo "Deleting all XPI" + @rm -f *.xpi + +systray-x-xpi: + @echo "Creating systray-x.xpi" ;\ + rm -f systray-x.xpi ;\ + cd webext ;\ + zip ../systray-x.xpi -qr * ;\ + cd .. diff --git a/webext/background.js b/webext/background.js new file mode 100644 index 0000000..940a3ff --- /dev/null +++ b/webext/background.js @@ -0,0 +1 @@ +console.log("Hello world!"); diff --git a/webext/icons/LICENSE b/webext/icons/LICENSE new file mode 100644 index 0000000..c4e7bdc --- /dev/null +++ b/webext/icons/LICENSE @@ -0,0 +1 @@ +The icon used here is taken from the "Miscellany Web icons" set by Maria & Guillem (https://www.iconfinder.com/andromina), and is used under the Creative Commons (Attribution 3.0 Unported) license. diff --git a/webext/icons/message.svg b/webext/icons/message.svg new file mode 100644 index 0000000..9b1a1fb --- /dev/null +++ b/webext/icons/message.svg @@ -0,0 +1,8 @@ + diff --git a/webext/manifest.json b/webext/manifest.json new file mode 100644 index 0000000..9b883ed --- /dev/null +++ b/webext/manifest.json @@ -0,0 +1,27 @@ +{ + "manifest_version": 2, + "name": "SysTray-X", + "description": "System tray control add-on", + "version": "0.1", + "author": "Maxime Rijnders", + "homepage_url": "https://github.com/Ximi1970/systray-x", + + "applications": { + "gecko": { + "id": "systray-x@Ximi1970", + "strict_min_version": "68.0" + } + }, + + "icons": { + "48": "icons/message.svg" + }, + + "background": { + "scripts": ["background.js"] + }, + + "browser_action": { + "default_icon": "icons/message.svg" + } +}