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');