-
Notifications
You must be signed in to change notification settings - Fork 14
Expand file tree
/
Copy pathquickstart.sh
More file actions
executable file
Β·55 lines (48 loc) Β· 1.72 KB
/
quickstart.sh
File metadata and controls
executable file
Β·55 lines (48 loc) Β· 1.72 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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
#!/bin/bash
set -eu
echo "π₯οΈ Valkey Admin Desktop Quickstart"
echo "=================================="
echo ""
# This reads the 'version' field from the root package.json
VERSION=$(node -p "require('./package.json').version")
echo "π¦ Version detected: $VERSION"
# Source common setup functions
source "$(dirname "$0")/scripts/common-setup.sh"
# Run common setup steps
run_common_setup
# Step 4: Build desktop application
echo "π¨ Building desktop application..."
echo " This may take a few minutes..."
if [ "$PLATFORM" = "mac" ]; then
echo "π± Building macOS app..."
npm run package:mac:nosign
APP_PATH="release/Valkey Admin.app"
echo "β
macOS app built successfully!"
echo "π Location: $APP_PATH"
elif [ "$PLATFORM" = "linux" ] || [ "$PLATFORM" = "wsl" ]; then
echo "π§ Building Linux app..."
npm run package:linux:nosign
APP_PATH="release/Valkey Admin-${VERSION}.AppImage"
echo "β
Linux app built successfully!"
echo "π Location: $APP_PATH"
if [ "$PLATFORM" = "linux" ]; then
chmod +x "$APP_PATH"
echo "π§ Made AppImage executable"
fi
fi
echo ""
echo "π Desktop quickstart complete!"
echo ""
echo "π Next steps:"
echo " 1. Launch the app from: $APP_PATH"
echo " 2. Add a connection with these details:"
echo " - Host: $ANNOUNCE_IP"
echo " - Port: 7001"
echo " - Name: Local Valkey Cluster"
echo ""
echo "π‘ Cluster management:"
echo " - Cluster is running in the background"
echo " - Use 'docker logs valkey-cluster-valkey-7001-1' to see cluster logs"
echo " - Use 'docker compose -f tools/valkey-cluster/docker-compose.yml down -v' to stop cluster"
echo ""
echo "π Enjoy the full Valkey Admin experience with all features!"