-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.sh
More file actions
executable file
·37 lines (28 loc) · 1.06 KB
/
setup.sh
File metadata and controls
executable file
·37 lines (28 loc) · 1.06 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
#!/bin/bash
# SecureVault - Setup Script
echo "Setting up SecureVault..."
# Check if Node.js is installed
if ! command -v node &> /dev/null; then
echo "Error: Node.js is not installed. Please install Node.js (v14 or later) and try again."
exit 1
fi
# Check Node.js version
NODE_VERSION=$(node -v | cut -d 'v' -f 2 | cut -d '.' -f 1)
if [ "$NODE_VERSION" -lt 14 ]; then
echo "Error: Node.js version $NODE_VERSION is not supported. Please upgrade to Node.js v14 or later."
exit 1
fi
# Install dependencies
echo "Installing dependencies..."
npm install
# Create necessary directories if they don't exist
mkdir -p images/icons
# Create placeholder icons
echo "Creating placeholder icons..."
for size in 72 96 128 144 152 192 384 512; do
echo "Creating ${size}x${size} icon placeholder..."
echo "<!-- Placeholder icon ${size}x${size} -->" > "images/icons/icon-${size}x${size}.png"
done
echo "Creating favicon placeholder..."
echo "<!-- Placeholder favicon -->" > "images/icons/favicon.ico"
echo "Setup complete! Run 'npm start' to start the development server."