-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrun.sh
More file actions
executable file
·33 lines (27 loc) · 1.44 KB
/
run.sh
File metadata and controls
executable file
·33 lines (27 loc) · 1.44 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
#!/usr/bin/env bash
# ─────────────────────────────────────────────────────────────────────────────
# run.sh — Launch a sandbox IntelliJ IDEA with the LearnShortcuts plugin loaded
#
# Usage:
# ./run.sh # build + launch (incremental, fast after first run)
# ./run.sh --clean # clean build before launching
# ─────────────────────────────────────────────────────────────────────────────
set -euo pipefail
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
cd "$SCRIPT_DIR"
if [[ "${1:-}" == "--clean" ]]; then
echo "🧹 Cleaning build output..."
./gradlew clean
fi
echo "🔨 Building plugin..."
./gradlew assemble --quiet
echo "🚀 Launching sandbox IntelliJ IDEA with LearnShortcuts..."
echo " (The IDE window will open shortly — this may take 30–60 seconds on first run)"
echo " Log: /tmp/learnshortcuts-runIde.log"
echo ""
echo " Once IDEA opens:"
echo " 1. Open or create any project"
echo " 2. View → Tool Windows → LearnShortcuts (or look in the right sidebar)"
echo " 3. Click 'Start Session' and start learning!"
echo ""
./gradlew runIde 2>&1 | tee /tmp/learnshortcuts-runIde.log