From 0b25c8a8987a4ce1aaf9bc41c0c87fa81366e727 Mon Sep 17 00:00:00 2001 From: Hayden Mumm Date: Thu, 11 May 2023 11:36:14 -0500 Subject: [PATCH] Copied file types --- plugin.js | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/plugin.js b/plugin.js index 83638b7..813510f 100644 --- a/plugin.js +++ b/plugin.js @@ -17,6 +17,7 @@ const makePlugin0 = async (pluginDirectory, version) => { await copyAndUpdatePluginXML(version); copyMasterProperties(); copySetupScripts(); + copyFileTypes(); await copyAndExtractLib(); copyPluginJar(); @@ -58,6 +59,17 @@ const copyMasterProperties = () => { console.log('Copied FD_MASTER_PROPERTY_LISTING.xml'); } +const copyFileTypes = () => { + const fileTypesDir = utils.getChildFile(_pluginDir, 'plugin\\filetypes'); + + if(fs.existsSync(fileTypesDir)) + { + fs.cpSync(fileTypesDir, _pluginTempDir + "\\filetypes"); + } + + console.log('Copied filetypes'); +} + const copySetupScripts = () => { const setupSh = utils.getChildFile(_pluginDir, 'plugin\\bin\\setup.sh'); const setupBat = utils.getChildFile(_pluginDir, 'plugin\\bin\\setup.bat');