feat: update

This commit is contained in:
2025-12-01 19:55:54 +08:00
parent 8de370bdf5
commit 5a78b07c51
7 changed files with 62 additions and 44 deletions
+1 -8
View File
@@ -1,5 +1,5 @@
#!/bin/bash
source ./script/common/os-arch.sh
source $HOME/.dotfile/script/common/os-arch.sh
# 检查并安装 gunzip
function check_gunzip() {
@@ -23,13 +23,6 @@ function install_mihomo() {
local base_url="https://oss-default.yumee.top/bin/mihomo"
local url=""
# 根据不同平台设置下载 URL
# 支持的平台示例:
# darwin-amd64: https://oss-default.yumee.top/bin/mihomo/mihomo-darwin-amd64.gz
# darwin-arm64: https://oss-default.yumee.top/bin/mihomo/mihomo-darwin-arm64.gz
# linux-amd64: https://oss-default.yumee.top/bin/mihomo/mihomo-linux-amd64.gz
# linux-arm64: https://oss-default.yumee.top/bin/mihomo/mihomo-linux-arm64.gz
case $os_arch in
"darwin-amd64"|"darwin-arm64"|"linux-amd64"|"linux-arm64")
url="${base_url}/mihomo-${os_arch}.gz"
+6 -1
View File
@@ -1,4 +1,9 @@
#!/bin/bash
# https://github.com/Schniz/fnm
curl -fsSL https://fnm.vercel.app/install | bash
curl -fsSL https://fnm.vercel.app/install | bash
ff reload
# after install node
# corepack enable pnpm