batipanel 0.4.7 → 0.4.8

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.
Files changed (3) hide show
  1. package/VERSION +1 -1
  2. package/install.sh +19 -3
  3. package/package.json +1 -1
package/VERSION CHANGED
@@ -1 +1 @@
1
- 0.4.7
1
+ 0.4.8
package/install.sh CHANGED
@@ -210,11 +210,12 @@ install_from_github() {
210
210
  return 1
211
211
  fi
212
212
  chmod +x "$bin"
213
- if sudo install "$bin" /usr/local/bin/ 2>/dev/null; then
214
- echo " Installed $name to /usr/local/bin/"
215
- elif install "$bin" "$HOME/.local/bin/" 2>/dev/null; then
213
+ # prefer user-local install (no admin required), fallback to system-wide
214
+ if install "$bin" "$HOME/.local/bin/" 2>/dev/null; then
216
215
  echo " Installed $name to ~/.local/bin/"
217
216
  NEED_LOCAL_BIN_PATH=1
217
+ elif install "$bin" /usr/local/bin/ 2>/dev/null; then
218
+ echo " Installed $name to /usr/local/bin/"
218
219
  else
219
220
  echo " Failed to install $name"
220
221
  rm -rf "$tmpdir"
@@ -265,6 +266,21 @@ fi
265
266
  if ! has_cmd btop; then
266
267
  install_packages btop 2>/dev/null || true
267
268
  fi
269
+ if ! has_cmd btop; then
270
+ tag=$(latest_github_tag "aristocratos/btop")
271
+ if [ -n "$tag" ]; then
272
+ case "$OS_LOWER" in
273
+ darwin)
274
+ install_from_github btop \
275
+ "https://github.com/aristocratos/btop/releases/download/${tag}/btop-${ARCH_GO}-${OS_LOWER}-musl.tbz" 2>/dev/null || true
276
+ ;;
277
+ linux)
278
+ install_from_github btop \
279
+ "https://github.com/aristocratos/btop/releases/download/${tag}/btop-${ARCH_GO}-${OS_LOWER}-musl.tbz" 2>/dev/null || true
280
+ ;;
281
+ esac
282
+ fi
283
+ fi
268
284
 
269
285
  # lazygit — verify it actually works (old binary may fail with git version error)
270
286
  LAZYGIT_OK=0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "batipanel",
3
- "version": "0.4.7",
3
+ "version": "0.4.8",
4
4
  "description": "AI-powered terminal workspace manager — multi-panel tmux layouts with Claude Code, git, monitoring, and more",
5
5
  "bin": {
6
6
  "batipanel": "./bin/cli.sh"