Skip to content

Commit 3c9e6c3

Browse files
committed
Notify BSD users
1 parent f60ab54 commit 3c9e6c3

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

tool/installer.sh

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
# Contributors : Aoran Zeng <[email protected]>
88
# |
99
# Created On : <2024-10-25>
10-
# Last Modified : <2025-03-07>
10+
# Last Modified : <2025-03-19>
1111
#
1212
# chsrc installer for Linux & macOS
1313
# ---------------------------------------------------------------
@@ -149,6 +149,17 @@ install() {
149149
case "$platform" in
150150
linux) platform="linux" ;;
151151
darwin) platform="macos" ;;
152+
bsd|dragonfly)
153+
platform="bsd"
154+
if [ "$userOpt_lang" = "zh" ]; then
155+
info "抱歉, 暂无预编译二进制文件供BSD使用。请自行编译:"
156+
else
157+
info "Sorry, No precompiled binaries for BSD! Please compile it on your own:"
158+
fi
159+
info "$ git clone https://gitee.com/RubyMetric/chsrc.git; cd chsrc"
160+
info "$ clang -Iinclude -Ilib src/chsrc-main.c -o chsrc"
161+
exit 1
162+
;;
152163
*)
153164
if [ "$userOpt_lang" = "zh" ]; then
154165
error "不支持的平台: ${platform}"

0 commit comments

Comments
 (0)