diff options
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 |