From fb39899f8e0bd0f8eb2adf406629054e38fa78d8 Mon Sep 17 00:00:00 2001 From: Caleb John Date: Fri, 16 Oct 2020 08:18:19 -0600 Subject: [PATCH] Desktop, Cli: Regression: Fix export of pluginAssets when exporting to html/pdf (#3927) --- .../lib/services/interop/InteropService_Exporter_Html.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ReactNativeClient/lib/services/interop/InteropService_Exporter_Html.ts b/ReactNativeClient/lib/services/interop/InteropService_Exporter_Html.ts index 1c448bc60..6d6463a21 100644 --- a/ReactNativeClient/lib/services/interop/InteropService_Exporter_Html.ts +++ b/ReactNativeClient/lib/services/interop/InteropService_Exporter_Html.ts @@ -103,7 +103,7 @@ export default class InteropService_Exporter_Html extends InteropService_Exporte // The source path is a bit hard-coded but shouldn't change. for (let i = 0; i < result.pluginAssets.length; i++) { const asset = result.pluginAssets[i]; - const filePath = `${dirname(dirname(__dirname))}/gui/note-viewer/pluginAssets/${asset.name}`; + const filePath = `${dirname(dirname(dirname(__dirname)))}/gui/note-viewer/pluginAssets/${asset.name}`; const destPath = `${dirname(noteFilePath)}/pluginAssets/${asset.name}`; await shim.fsDriver().mkdir(dirname(destPath)); await shim.fsDriver().copy(filePath, destPath);