diff options
author | Omar Rizwan <omar.rizwan@gmail.com> | 2020-10-16 21:56:49 -0700 |
---|---|---|
committer | Omar Rizwan <omar.rizwan@gmail.com> | 2020-10-16 21:56:49 -0700 |
commit | 74b1b0f789ea4e310a138c4b6d476a78d49cf557 (patch) | |
tree | 268d1a06984d0430d987ac0f350e3e2d6e3f7629 /Makefile | |
parent | 53de6736feb5ab5d5a3039190ea770bfddc67ccf (diff) | |
download | TabFS-74b1b0f789ea4e310a138c4b6d476a78d49cf557.tar.gz TabFS-74b1b0f789ea4e310a138c4b6d476a78d49cf557.zip |
Starting to move to native messaging.
Why? The WebSocket stuff is broken right now, and I want to get rid of
the dep...
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..f15f5dc --- /dev/null +++ b/Makefile @@ -0,0 +1,23 @@ +EXE_PATH=$(shell pwd)/fs/tabfs +define NATIVE_MESSAGING_APP_MANIFEST +{ + "name": "com.rsnous.TabFS", + "description": "TabFS", + "path": "$(EXE_PATH)", + "type": "stdio", + "allowed_extensions": ["tabfs@rsnous.com"] +} +endef +export NATIVE_MESSAGING_APP_MANIFEST + +# "allowed_origins": [ +# "chrome-extension://knldjmfmopnpolahpmmgbagdohdnhkik/" +# ] + +# ~/Library/Application Support/Google/Chrome/NativeMessagingHosts +MANIFEST_LOCATION="$$HOME/Library/Application Support/Mozilla/NativeMessagingHosts" +APP_NAME="com.rsnous.TabFS" +install: +# install native messaging json + mkdir -p $(MANIFEST_LOCATION) + echo "$$NATIVE_MESSAGING_APP_MANIFEST" > $(MANIFEST_LOCATION)/$(APP_NAME).json |