diff --git a/README.md b/README.md index f0ec75d..d112eea 100644 --- a/README.md +++ b/README.md @@ -50,14 +50,6 @@ The last parameter is an optional unit of time to compute the difference in. # Installation -## 1. Install Node.js - -This plugin is written in JavaScript, so you need to install Node.js to use it with Flow Launcher. - -Just go to https://nodejs.org/ and download the LTS ("Long Term Support") version of Node.js. - -## 2. Install the plugin - You can find this plugin in Flow's Plugin Store (in the app's settings), or by directly running this command in Flow Launcher: ``` pm install DateDiff diff --git a/plugin.json b/plugin.json index 5776015..b526b0c 100644 --- a/plugin.json +++ b/plugin.json @@ -4,9 +4,9 @@ "Name": "DateDiff", "Description": "Difference between two dates (documentation on website)", "Author": "LeoDupont", - "Version": "1.1.0", - "Language": "executable", + "Version": "1.1.1", + "Language": "javascript", "Website": "https://github.com/LeoDupont/Flow.Launcher.Plugin.DateDiff", - "ExecuteFileName": "start.bat", + "ExecuteFileName": "./src/main.js", "IcoPath": "images\\icon.png" } diff --git a/start.bat b/start.bat deleted file mode 100644 index 3ece4a2..0000000 --- a/start.bat +++ /dev/null @@ -1,15 +0,0 @@ -@echo off -SET plugin_dir=%~dp0% -SET icon=%plugin_dir%images\icon.png -:: JSON doesn't like backslashes so we convert them to forward slashes -SET "icon=%icon:\=/%" -SET title="Error: Node.js is not installed on your system." -SET subtitle="Please install it from nodejs.org to use the DateDiff plugin!" - - -where /q node -IF ERRORLEVEL 1 ( - echo {"result": [{"Title": %title%, "Subtitle": %subtitle%, "IcoPath": "%icon%"}]} -) ELSE ( - node %plugin_dir%/src/main.js %* -)