batipanel 0.4.37 → 0.4.39
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/VERSION +1 -1
- package/bin/cli.sh +18 -5
- package/install.sh +4 -0
- package/package.json +1 -1
- package/scripts/install/fonts.sh +17 -2
package/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
0.4.
|
|
1
|
+
0.4.39
|
package/bin/cli.sh
CHANGED
|
@@ -4,12 +4,25 @@ set -euo pipefail
|
|
|
4
4
|
|
|
5
5
|
BATIPANEL_HOME="${BATIPANEL_HOME:-$HOME/.batipanel}"
|
|
6
6
|
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
7
|
+
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)"
|
|
8
|
+
|
|
9
|
+
if [ ! -f "$BATIPANEL_HOME/bin/start.sh" ]; then
|
|
10
|
+
# not installed yet (manual run without postinstall)
|
|
10
11
|
echo "batipanel is not installed yet. Running installer..."
|
|
11
|
-
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)"
|
|
12
12
|
bash "$SCRIPT_DIR/install.sh"
|
|
13
|
+
fi
|
|
14
|
+
|
|
15
|
+
# check if postinstall just ran (flag file created by install.sh under npm)
|
|
16
|
+
if [ -f "$BATIPANEL_HOME/.just-installed" ]; then
|
|
17
|
+
rm -f "$BATIPANEL_HOME/.just-installed"
|
|
13
18
|
echo ""
|
|
14
|
-
echo
|
|
19
|
+
echo -e " \033[2m───────────────────────────────────\033[0m"
|
|
20
|
+
echo -e " \033[1mNext step\033[0m \033[2m— activate your shell:\033[0m"
|
|
21
|
+
echo ""
|
|
22
|
+
echo -e " \033[36mexec \$SHELL -l\033[0m"
|
|
23
|
+
echo ""
|
|
24
|
+
echo -e " \033[2mor just open a new terminal window.\033[0m"
|
|
25
|
+
echo -e " \033[2m───────────────────────────────────\033[0m"
|
|
26
|
+
else
|
|
27
|
+
exec bash "$BATIPANEL_HOME/bin/start.sh" "$@"
|
|
15
28
|
fi
|
package/install.sh
CHANGED
|
@@ -144,6 +144,10 @@ else
|
|
|
144
144
|
fi
|
|
145
145
|
|
|
146
146
|
# === activate prompt theme ===
|
|
147
|
+
# npm/npx: create flag for cli.sh to show activation message
|
|
148
|
+
if [ -n "${npm_lifecycle_event:-}" ]; then
|
|
149
|
+
touch "$BATIPANEL_HOME/.just-installed"
|
|
150
|
+
fi
|
|
147
151
|
# don't exec $SHELL — it breaks /dev/tty when run from curl|bash or subshells
|
|
148
152
|
if [ -z "${npm_lifecycle_event:-}" ] && [ -z "${BATIPANEL_WEB_INSTALL:-}" ]; then
|
|
149
153
|
echo ""
|
package/package.json
CHANGED
package/scripts/install/fonts.sh
CHANGED
|
@@ -40,9 +40,24 @@ setup_fonts_and_terminal() {
|
|
|
40
40
|
# install Nerd Font via Homebrew
|
|
41
41
|
if command -v brew &>/dev/null; then
|
|
42
42
|
if ! brew list --cask font-meslo-lg-nerd-font &>/dev/null 2>&1; then
|
|
43
|
-
echo "Installing Nerd Font (MesloLGS NF) for powerline glyphs..."
|
|
44
|
-
|
|
43
|
+
echo " Installing Nerd Font (MesloLGS NF) for powerline glyphs..."
|
|
44
|
+
# ensure cask-fonts tap is available (older brew needs manual tap)
|
|
45
|
+
if ! brew tap | grep -q "homebrew/cask-fonts" 2>/dev/null; then
|
|
46
|
+
brew tap homebrew/cask-fonts 2>/dev/null || true
|
|
47
|
+
fi
|
|
48
|
+
if brew install --cask font-meslo-lg-nerd-font; then
|
|
49
|
+
echo " Nerd Font installed"
|
|
50
|
+
else
|
|
51
|
+
echo " Warning: Nerd Font install via brew failed."
|
|
52
|
+
echo " Try manually: brew install --cask font-meslo-lg-nerd-font"
|
|
53
|
+
fi
|
|
54
|
+
else
|
|
55
|
+
echo " Nerd Font already installed"
|
|
45
56
|
fi
|
|
57
|
+
else
|
|
58
|
+
echo " Warning: Homebrew not found — cannot install Nerd Font automatically."
|
|
59
|
+
echo " Install manually: https://github.com/ryanoasis/nerd-fonts/releases"
|
|
60
|
+
echo " Look for 'MesloLGS Nerd Font' and install the .ttf files."
|
|
46
61
|
fi
|
|
47
62
|
|
|
48
63
|
# auto-configure Apple Terminal: create/update "batipanel" profile
|