From 30c39bf9c7e6b3f2d0667bee3701983ea5b46618 Mon Sep 17 00:00:00 2001 From: Jeremy Wu Date: Thu, 23 Feb 2023 07:51:10 +1100 Subject: [PATCH] switch to Node.js env --- README.md | 8 -------- plugin.json | 6 +++--- start.bat | 15 --------------- 3 files changed, 3 insertions(+), 26 deletions(-) delete mode 100644 start.bat diff --git a/README.md b/README.md index ab16f89..21e5248 100644 --- a/README.md +++ b/README.md @@ -30,14 +30,6 @@ You can then read the results, or select one of them to open the full WordRefere # 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 WordReference diff --git a/plugin.json b/plugin.json index e522d76..913d8a4 100644 --- a/plugin.json +++ b/plugin.json @@ -4,9 +4,9 @@ "Name": "WordReference", "Description": "WordReference translations (es, en, fr, it)", "Author": "LeoDupont", - "Version": "1.0.1", - "Language": "executable", + "Version": "1.0.2", + "Language": "javascript", "Website": "https://github.com/LeoDupont/Flow.Launcher.Plugin.WordReference", - "ExecuteFileName": "start.bat", + "ExecuteFileName": "./src/main.js", "IcoPath": "images\\favicon-32x32.png" } diff --git a/start.bat b/start.bat deleted file mode 100644 index 2b0b83e..0000000 --- a/start.bat +++ /dev/null @@ -1,15 +0,0 @@ -@echo off -SET plugin_dir=%~dp0% -SET icon=%plugin_dir%images\favicon-32x32.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 WordReference Plugin!" - - -where /q node -IF ERRORLEVEL 1 ( - echo {"result": [{"Title": %title%, "Subtitle": %subtitle%, "IcoPath": "%icon%"}]} -) ELSE ( - node %plugin_dir%/src/main.js %* -)