sync-to-uniapp.sh 572 Bytes
#!/bin/bash
set -euo pipefail

PLUGIN_DIR="$(cd "$(dirname "$0")" && pwd)"
PROJECT_ROOT="$(cd "$PLUGIN_DIR/../.." && pwd)"
UNIAPP_PLUGIN_DIR="$PROJECT_ROOT/美国版/Food Labeling Management App UniApp/nativeplugins/native-fast-printer"

rm -rf "$UNIAPP_PLUGIN_DIR"
mkdir -p "$UNIAPP_PLUGIN_DIR/android"

cp "$PLUGIN_DIR/package.json" "$UNIAPP_PLUGIN_DIR/package.json"
cp "$PLUGIN_DIR/README.md" "$UNIAPP_PLUGIN_DIR/README.md"
cp "$PLUGIN_DIR/android/native_fast_printer-release.aar" "$UNIAPP_PLUGIN_DIR/android/"

echo "Synced native-fast-printer to: $UNIAPP_PLUGIN_DIR"