Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

mac 如何用呀谢谢 #33

Open
tyzhao1990 opened this issue Jul 9, 2023 · 1 comment
Open

mac 如何用呀谢谢 #33

tyzhao1990 opened this issue Jul 9, 2023 · 1 comment

Comments

@tyzhao1990
Copy link

win的这个步骤我知道怎么用(cd C:\Users\lenovo\Downloads
ks version),mac如何输入进入呀

@yliu7949
Copy link
Owner

yliu7949 commented Jul 9, 2023

Mac 用户在安装 Golang 后首先使用下面的命令进行 KouShare-dl 源代码的编译:

go build -o ks -trimpath -ldflags "-s -w -buildid=" ks.go

编译后得到二进制文件 ks。执行 chmod +x ./ks 命令为该 ks 文件添加可执行权限,将 ks 文件放到 /usr/local/bin/ 路径下后即可在终端中正常使用 ks version 等命令。

详细使用方法可以参考这里的讨论和回答:无法输入命令

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants