35 lines
762 B
Bash
Executable File
35 lines
762 B
Bash
Executable File
#!/bin/bash
|
|
|
|
# Build NDK bundle and copy to www/ directory
|
|
# Usage: ./build_and_copy.sh
|
|
|
|
echo "🔧 Building NDK bundle..."
|
|
node build-ndk-bundle.js
|
|
|
|
if [ $? -ne 0 ]; then
|
|
echo "❌ Build failed"
|
|
exit 1
|
|
fi
|
|
|
|
echo ""
|
|
echo "📋 Copying NDK bundle to www/ directory..."
|
|
|
|
# Copy NDK bundle
|
|
cp build/ndk-core.bundle.js www/
|
|
cp build/ndk-core.bundle.js.map www/
|
|
|
|
if [ $? -eq 0 ]; then
|
|
echo "✅ NDK bundle files copied to www/"
|
|
echo ""
|
|
echo "📦 NDK Bundle:"
|
|
ls -lh www/ndk-core.bundle.js
|
|
echo ""
|
|
echo "💡 Note: Make sure nostr.bundle.js and nostr-lite.js are in www/"
|
|
echo " (Copy manually from nostr_login_lite/build/ if needed)"
|
|
echo ""
|
|
echo "🚀 Ready to deploy with: ./upload_www.sh"
|
|
else
|
|
echo "❌ Failed to copy files"
|
|
exit 1
|
|
fi
|