You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
30 lines
733 B
30 lines
733 B
#!/bin/bash
|
|
|
|
# TimeSafari Electron Setup Script
|
|
# This script installs all required dependencies for the Electron platform
|
|
|
|
set -e
|
|
|
|
echo "🔧 Setting up Electron dependencies..."
|
|
|
|
# Navigate to electron directory
|
|
cd electron
|
|
|
|
# Install required dependencies for Capacitor SQLite plugin
|
|
echo "📦 Installing better-sqlite3-multiple-ciphers..."
|
|
npm install better-sqlite3-multiple-ciphers
|
|
|
|
echo "📦 Installing electron-json-storage..."
|
|
npm install electron-json-storage
|
|
|
|
# Rebuild native modules
|
|
echo "🔨 Rebuilding native modules..."
|
|
npm run build
|
|
|
|
echo "✅ Electron setup complete!"
|
|
echo ""
|
|
echo "To run the Electron app:"
|
|
echo " npm run electron:start"
|
|
echo ""
|
|
echo "Or from the project root:"
|
|
echo " npm run electron:dev"
|