batipanel 0.4.11 → 0.4.13
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/install.sh +7 -10
- package/lib/shell-setup.sh +18 -0
- package/package.json +1 -1
package/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
0.4.
|
|
1
|
+
0.4.13
|
package/install.sh
CHANGED
|
@@ -266,19 +266,16 @@ fi
|
|
|
266
266
|
if ! has_cmd btop; then
|
|
267
267
|
install_packages btop 2>/dev/null || true
|
|
268
268
|
fi
|
|
269
|
-
|
|
269
|
+
# btop GitHub releases only provide Linux binaries
|
|
270
|
+
if ! has_cmd btop && [ "$OS_LOWER" = "linux" ]; then
|
|
270
271
|
tag=$(latest_github_tag "aristocratos/btop")
|
|
271
272
|
if [ -n "$tag" ]; then
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
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
|
-
;;
|
|
273
|
+
_btop_arch="$ARCH"
|
|
274
|
+
case "$ARCH" in
|
|
275
|
+
aarch64|arm64) _btop_arch="aarch64" ;;
|
|
281
276
|
esac
|
|
277
|
+
install_from_github btop \
|
|
278
|
+
"https://github.com/aristocratos/btop/releases/download/${tag}/btop-${_btop_arch}-unknown-linux-musl.tbz" 2>/dev/null || true
|
|
282
279
|
fi
|
|
283
280
|
fi
|
|
284
281
|
|
package/lib/shell-setup.sh
CHANGED
|
@@ -228,6 +228,21 @@ _add_line_if_missing() {
|
|
|
228
228
|
fi
|
|
229
229
|
}
|
|
230
230
|
|
|
231
|
+
# === 4. macOS Terminal.app dark profile ===
|
|
232
|
+
setup_macos_terminal_profile() {
|
|
233
|
+
[ "$(uname -s)" = "Darwin" ] || return 0
|
|
234
|
+
|
|
235
|
+
echo " Setting up Terminal.app dark theme..."
|
|
236
|
+
|
|
237
|
+
# set macOS built-in "Pro" dark profile as default
|
|
238
|
+
if defaults read com.apple.Terminal &>/dev/null 2>&1; then
|
|
239
|
+
defaults write com.apple.Terminal "Default Window Settings" -string "Pro"
|
|
240
|
+
defaults write com.apple.Terminal "Startup Window Settings" -string "Pro"
|
|
241
|
+
echo " Set Terminal.app to dark theme (Pro)"
|
|
242
|
+
echo " Open a new Terminal window to see the change"
|
|
243
|
+
fi
|
|
244
|
+
}
|
|
245
|
+
|
|
231
246
|
# === Main entry point ===
|
|
232
247
|
setup_shell_environment() {
|
|
233
248
|
local user_shell="$1"
|
|
@@ -252,5 +267,8 @@ setup_shell_environment() {
|
|
|
252
267
|
;;
|
|
253
268
|
esac
|
|
254
269
|
|
|
270
|
+
# macOS: set Terminal.app to dark theme
|
|
271
|
+
setup_macos_terminal_profile
|
|
272
|
+
|
|
255
273
|
echo " Shell environment setup complete"
|
|
256
274
|
}
|
package/package.json
CHANGED