Skip to content

Commit 453adc0

Browse files
committed
Sync installers: 2025-07-12 13:19
1 parent a551ca8 commit 453adc0

File tree

1 file changed

+15
-8
lines changed

1 file changed

+15
-8
lines changed

posix

Lines changed: 15 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
# | DeepSeek <https://chat.deepseek.com/>
1010
# |
1111
# Created On : <2024-10-25>
12-
# Last Modified : <2025-03-25>
12+
# Last Modified : <2025-07-12>
1313
#
1414
# chsrc installer for POSIX (mainly Linux & macOS)
1515
# ---------------------------------------------------------------
@@ -111,6 +111,10 @@ let_user_build() {
111111
fi
112112
}
113113

114+
let_user_use_bootstrap() {
115+
info "请参考: https://github.com/RubyMetric/chsrc/tree/main/bootstrap 查找是否存在已有的 boostrapper"
116+
}
117+
114118

115119
let_user_compile() {
116120
source_zip_url="https://gitee.com/RubyMetric/chsrc/repository/archive/main.zip"
@@ -162,10 +166,11 @@ set_arch() {
162166
armv7*) arch="armv7" ;;
163167
*)
164168
if is_zh; then
165-
warn "抱歉, 暂无预编译二进制文件供您的架构: ${arch} 使用。请自行编译"
169+
warn "抱歉, 暂无预编译二进制文件供你所在的平台架构: ${arch} 使用。请使用 chsrc-bootstrap 或 自行编译"
166170
else
167171
warn "Sorry, No precompiled binaries for your arch: ${arch}. Please compile it on your own:"
168172
fi
173+
let_user_use_bootstrap
169174
let_user_compile
170175
exit 1
171176
;;
@@ -182,31 +187,33 @@ set_platform() {
182187
whatos=$(get_os)
183188
if [ "$whatos" = "android" ]; then
184189
if is_zh; then
185-
info "抱歉, 暂无预编译二进制文件供安卓使用。请自行编译:"
190+
info "使用 chsrc-bootstrap: Termux"
186191
else
187-
info "Sorry, No precompiled binaries for Android! Please compile it on your own:"
192+
info "Use chsrc-bootstrap: Termux"
188193
fi
189-
let_user_compile
194+
wget -O - https://gitee.com/RubyMetric/chsrc/raw/main/bootstrap/Termux.bash | bash
190195
exit 1
191196
fi
192197
;;
193198
darwin) platform="macos" ;;
194199
bsd|dragonfly)
195200
platform="bsd"
196201
if is_zh; then
197-
info "抱歉, 暂无预编译二进制文件供BSD使用。请自行编译"
202+
info "抱歉, 暂无预编译二进制文件供BSD使用。请使用 chsrc-bootstrap 或 自行编译"
198203
else
199204
info "Sorry, No precompiled binaries for BSD! Please compile it on your own:"
200205
fi
206+
let_user_use_bootstrap
201207
let_user_compile
202208
exit 1
203209
;;
204210
*)
205211
if is_zh; then
206-
error_exit "抱歉,暂无预编译二进制文件供您的平台: ${platform} 使用。请自行编译"
212+
error_exit "抱歉,暂无预编译二进制文件供你所在的平台: ${platform} 使用。请使用 chsrc-bootstrap 或 自行编译"
207213
else
208214
error_exit "Sorry, No precompiled binaries for your platform: ${platform}. Please compile it on your own:"
209215
fi
216+
let_user_use_bootstrap
210217
let_user_compile
211218
exit 1
212219
;;
@@ -357,7 +364,7 @@ install() {
357364
fi
358365
else
359366
if is_zh; then
360-
error_exit "下载失败,请检查您的网络连接和代理设置: ${url}"
367+
error_exit "下载失败,请检查网络连接和代理设置: ${url}"
361368
else
362369
error_exit "Download failed, please check your network connection and proxy settings: ${url}"
363370
fi

0 commit comments

Comments
 (0)