batipanel 0.4.39 → 0.4.41
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/package.json +1 -1
- package/scripts/install/tools.sh +33 -1
package/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
0.4.
|
|
1
|
+
0.4.41
|
package/package.json
CHANGED
package/scripts/install/tools.sh
CHANGED
|
@@ -29,6 +29,37 @@ install_required_tools() {
|
|
|
29
29
|
|
|
30
30
|
_setup_brew_path
|
|
31
31
|
|
|
32
|
+
# macOS: install Homebrew if missing (needed for tmux and other tools)
|
|
33
|
+
if [ "$OS" = "Darwin" ] && ! command -v brew &>/dev/null; then
|
|
34
|
+
echo ""
|
|
35
|
+
echo " Homebrew is required on macOS for installing tools (tmux, etc.)"
|
|
36
|
+
local _brew_answer="y"
|
|
37
|
+
if [ -z "${npm_lifecycle_event:-}" ]; then
|
|
38
|
+
# interactive: ask user
|
|
39
|
+
printf " Install Homebrew now? [Y/n] "
|
|
40
|
+
if [ -t 0 ]; then
|
|
41
|
+
read -r _brew_answer
|
|
42
|
+
else
|
|
43
|
+
read -r _brew_answer < /dev/tty 2>/dev/null || _brew_answer="y"
|
|
44
|
+
fi
|
|
45
|
+
fi
|
|
46
|
+
case "$_brew_answer" in
|
|
47
|
+
[nN]*)
|
|
48
|
+
echo " Skipped. Install Homebrew manually: https://brew.sh"
|
|
49
|
+
;;
|
|
50
|
+
*)
|
|
51
|
+
echo " Installing Homebrew..."
|
|
52
|
+
NONINTERACTIVE=1 /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
|
|
53
|
+
# add brew to PATH for this session
|
|
54
|
+
if [ -f /opt/homebrew/bin/brew ]; then
|
|
55
|
+
eval "$(/opt/homebrew/bin/brew shellenv)"
|
|
56
|
+
elif [ -f /usr/local/bin/brew ]; then
|
|
57
|
+
eval "$(/usr/local/bin/brew shellenv)"
|
|
58
|
+
fi
|
|
59
|
+
;;
|
|
60
|
+
esac
|
|
61
|
+
fi
|
|
62
|
+
|
|
32
63
|
# required: tmux
|
|
33
64
|
if ! command -v tmux &>/dev/null; then
|
|
34
65
|
echo "Installing tmux..."
|
|
@@ -44,7 +75,8 @@ install_required_tools() {
|
|
|
44
75
|
echo ""
|
|
45
76
|
echo "tmux is required but could not be installed."
|
|
46
77
|
if [ "$OS" = "Darwin" ]; then
|
|
47
|
-
echo "Install
|
|
78
|
+
echo " Install Homebrew first: https://brew.sh"
|
|
79
|
+
echo " Then: brew install tmux"
|
|
48
80
|
else
|
|
49
81
|
echo "Install via package manager: sudo apt install tmux (or equivalent)"
|
|
50
82
|
fi
|