From f9b1a32ae7f6318735ad1d074524d8e3def9ceed Mon Sep 17 00:00:00 2001 From: Laurent Cozic Date: Sat, 12 Oct 2024 12:08:37 +0100 Subject: [PATCH] Tools: Update script to test plugins --- packages/app-desktop/testPluginDemo.sh | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/packages/app-desktop/testPluginDemo.sh b/packages/app-desktop/testPluginDemo.sh index 2037f36a6..e2e3ab95b 100755 --- a/packages/app-desktop/testPluginDemo.sh +++ b/packages/app-desktop/testPluginDemo.sh @@ -16,9 +16,13 @@ if [[ $NEED_COMPILING == 1 ]]; then echo "Copying from: $PLUGIN_PATH" echo "To: $TEMP_PLUGIN_PATH" - rsync -a --delete "$PLUGIN_PATH/" "$TEMP_PLUGIN_PATH/" + rsync -a --exclude "cache/" --exclude "node_modules" --delete "$PLUGIN_PATH/" "$TEMP_PLUGIN_PATH/" - NODE_OPTIONS=--openssl-legacy-provider npm install --prefix="$TEMP_PLUGIN_PATH" && yarn start --dev-plugins "$TEMP_PLUGIN_PATH" + cd "$TEMP_PLUGIN_PATH/" + NODE_OPTIONS=--openssl-legacy-provider npm install + + cd "$SCRIPT_DIR" + yarn start --dev-plugins "$TEMP_PLUGIN_PATH" else yarn start --dev-plugins "$PLUGIN_PATH" fi