Notice chsrc-bootstrap in installer.sh

This commit is contained in:
Aoran Zeng 2025-07-12 11:56:16 +08:00
parent d656430142
commit 09010c2ba1
No known key found for this signature in database
GPG Key ID: 8F8BA8488E10ED98
2 changed files with 16 additions and 7 deletions

View File

@ -10,6 +10,8 @@ end
<br> <br>
## 鸡蛋困境 ## 鸡蛋困境
我们支持预编译的操作系统目前只有 `Windows`, `Linux`, `macOS`,支持的架构请参考[项目 README](../README.md) 我们支持预编译的操作系统目前只有 `Windows`, `Linux`, `macOS`,支持的架构请参考[项目 README](../README.md)

View File

@ -9,7 +9,7 @@
# | DeepSeek <https://chat.deepseek.com/> # | DeepSeek <https://chat.deepseek.com/>
# | # |
# Created On : <2024-10-25> # Created On : <2024-10-25>
# Last Modified : <2025-03-25> # Last Modified : <2025-07-12>
# #
# chsrc installer for POSIX (mainly Linux & macOS) # chsrc installer for POSIX (mainly Linux & macOS)
# --------------------------------------------------------------- # ---------------------------------------------------------------
@ -111,6 +111,10 @@ let_user_build() {
fi fi
} }
let_user_use_bootstrap() {
info "请参考: https://github.com/RubyMetric/chsrc/tree/main/bootstrap 查找是否存在已有的 boostrapper"
}
let_user_compile() { let_user_compile() {
source_zip_url="https://gitee.com/RubyMetric/chsrc/repository/archive/main.zip" source_zip_url="https://gitee.com/RubyMetric/chsrc/repository/archive/main.zip"
@ -162,10 +166,11 @@ set_arch() {
armv7*) arch="armv7" ;; armv7*) arch="armv7" ;;
*) *)
if is_zh; then if is_zh; then
warn "抱歉, 暂无预编译二进制文件供您的架构: ${arch} 使用。请自行编译:" warn "抱歉, 暂无预编译二进制文件供您的架构: ${arch} 使用。请使用 chsrc-bootstrap 或 自行编译:"
else else
warn "Sorry, No precompiled binaries for your arch: ${arch}. Please compile it on your own:" warn "Sorry, No precompiled binaries for your arch: ${arch}. Please compile it on your own:"
fi fi
let_user_use_bootstrap
let_user_compile let_user_compile
exit 1 exit 1
;; ;;
@ -182,11 +187,11 @@ set_platform() {
whatos=$(get_os) whatos=$(get_os)
if [ "$whatos" = "android" ]; then if [ "$whatos" = "android" ]; then
if is_zh; then if is_zh; then
info "抱歉, 暂无预编译二进制文件供安卓使用。请自行编译:" info "使用 chsrc-bootstrap: Termux"
else else
info "Sorry, No precompiled binaries for Android! Please compile it on your own:" info "Use chsrc-bootstrap: Termux"
fi fi
let_user_compile wget -O - https://gitee.com/RubyMetric/chsrc/raw/main/bootstrap/Termux.bash | bash
exit 1 exit 1
fi fi
;; ;;
@ -194,19 +199,21 @@ set_platform() {
bsd|dragonfly) bsd|dragonfly)
platform="bsd" platform="bsd"
if is_zh; then if is_zh; then
info "抱歉, 暂无预编译二进制文件供BSD使用。请自行编译:" info "抱歉, 暂无预编译二进制文件供BSD使用。请使用 chsrc-bootstrap 或 自行编译:"
else else
info "Sorry, No precompiled binaries for BSD! Please compile it on your own:" info "Sorry, No precompiled binaries for BSD! Please compile it on your own:"
fi fi
let_user_use_bootstrap
let_user_compile let_user_compile
exit 1 exit 1
;; ;;
*) *)
if is_zh; then if is_zh; then
error_exit "抱歉,暂无预编译二进制文件供您的平台: ${platform} 使用。请自行编译:" error_exit "抱歉,暂无预编译二进制文件供您的平台: ${platform} 使用。请使用 chsrc-bootstrap 或 自行编译:"
else else
error_exit "Sorry, No precompiled binaries for your platform: ${platform}. Please compile it on your own:" error_exit "Sorry, No precompiled binaries for your platform: ${platform}. Please compile it on your own:"
fi fi
let_user_use_bootstrap
let_user_compile let_user_compile
exit 1 exit 1
;; ;;