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

macOS 支持M芯片使用 homebrew 安装 #372

Closed
Mrered opened this issue Apr 8, 2023 · 9 comments · May be fixed by #401
Closed

macOS 支持M芯片使用 homebrew 安装 #372

Mrered opened this issue Apr 8, 2023 · 9 comments · May be fixed by #401
Labels
功能建议 功能与建议

Comments

@Mrered
Copy link

Mrered commented Apr 8, 2023

功能需求

我做了一个,纯小白水平,目前只支持 arm64 版,有时间了做 amd64
I made new one! But only support arm64/Apple Silicon instead amd64/Intel. When I have time, I will make an amd64/Intel version support.

安装方式:
How to install:

brew install mrered/cloudflarest/cfstarm64

预期目标

有时间了做 amd64
When I have time, I will make an amd64/Intel version support.

截图

@Mrered Mrered added the 功能建议 功能与建议 label Apr 8, 2023
@Mrered
Copy link
Author

Mrered commented Apr 8, 2023

由于本人非常懒,所以为了避免漏掉作者新的 release 会订阅一个 RSS 提醒我的,一般会在较快时间内更新。

@Mrered Mrered closed this as completed Apr 8, 2023
@Mrered Mrered reopened this Apr 8, 2023
@Mrered
Copy link
Author

Mrered commented Apr 8, 2023

目前存在的问题,不能直接在终端里 CloudflareST ,必须指定 ip.txt 位置 /opt/homebrew/Cellar/cfstarm64/2.2.2/bin/ip.txt

CloudflareST -f /opt/homebrew/Cellar/cfstarm64/2.2.2/bin/ip.txt

@XIU2
Copy link
Owner

XIU2 commented Apr 8, 2023

由于本人非常懒,所以为了避免漏掉作者新的 release 会订阅一个 RSS 提醒我的,一般会在较快时间内更新。

放心,我也很懒,一般不是 BUG 之类的非必要我也是基本不会更新的~

@Mrered
Copy link
Author

Mrered commented Apr 10, 2023

我又发布了一个懒人版的 CfSTCustom

brew install mrered/cfstc/cfstc

重要!

由于使用绝对路径,所以必须先

brew install mrered/cloudflarest/cfstarm64

或者自己去我源码那边改参数

@Mrered
Copy link
Author

Mrered commented Apr 10, 2023

功能需求

我做了一个,纯小白水平,目前只支持 arm64 版,有时间了做 amd64 。 I made new one! But only support arm64/Apple Silicon instead amd64/Intel. When I have time, I will make an amd64/Intel version support.

安装方式: How to install:

brew install mrered/cloudflarest/cfstarm64

预期目标

有时间了做 amd64 。 When I have time, I will make an amd64/Intel version support.

截图

还没实现 amd64 却节外生枝了一个懒人版

@Mrered
Copy link
Author

Mrered commented May 16, 2023

遇到一个小插曲,希望官方能在发布 darwin 版本的时候使用 .tar.gz 格式,因为 Homebrew 官方好像只支持此格式,据说是此格式会保留文件权限属性。 @XIU2

@Mrered
Copy link
Author

Mrered commented May 16, 2023

另外,我发现了一个仓库,开了一个 PR Update CloudflareSpeedTest by Mrered · Pull Request #12 · ivaquero/homebrew-chinese (github.com) 由于比较小白,过程比较曲折。

@XIU2
Copy link
Owner

XIU2 commented May 17, 2023

我没用过因此不清楚 Mac 系统下使用 .zip 还是 .tar.gz 会更好。
我只是当初搜索了一下,根据官方的教程来看:

.zip 解压会更方便点,可以通过 GUI 操作。

https://support.apple.com/zh-cn/guide/mac-help/mchlp2528/mac

.tar.gz 解压的话,似乎只能通过终端命令行方式来操作。

https://support.apple.com/zh-cn/guide/terminal/apdc52250ee-4659-4751-9a3a-8b7988150530/mac

因此,为了尽可能降低使用门槛,我选择了兼容性最好、最主流的 .zip 压缩格式(Windows、Mac、Android、iOS 都可以无需第三方应用就能解压),而 Linux 可能默认没有自带支持解压 .zip 的工具(例如 unzip),因此选择了 .tar.gz 压缩格式。

毕竟根据 Issues 来看,部分人虽然用着 Mac,但压根很多地方都不懂,比如 #381 遇到运行报错 Permission denied 就无法处理了,这并不是需要管理员权限,而是需要赋予软件执行权限 chmod a+x ./CloudflareST,Mac 终端很多地方都和 Linux 操作差不多,Linux 也是需要执行前先赋予软件执行权限的(你可以参考项目里我写的 Linux 使用步骤)。

@Mrered
Copy link
Author

Mrered commented May 17, 2023

作者不嫌辛苦的话,可以单独发布两个为macOS准备的 .tar.gz 嘛?感谢😘

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
功能建议 功能与建议
Projects
None yet
2 participants