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

Releases中的mac版运行失败 #2

Closed
SewellDinG opened this issue Apr 7, 2020 · 1 comment
Closed

Releases中的mac版运行失败 #2

SewellDinG opened this issue Apr 7, 2020 · 1 comment

Comments

@SewellDinG
Copy link

SewellDinG commented Apr 7, 2020

师傅你好,当前Releases中的mac版运行失败,ServerScan_Air_v1.0.2_darwin_amd64和ServerScan_Pro_v1.0.2_darwin_amd64,环境macOS Catalina 10.15.2。

[Sewell]: ~/Downloads
➜  ./ServerScan_Air_v1.0.2_darwin_amd64
[1]    1817 killed     ./ServerScan_Air_v1.0.2_darwin_amd64
[Sewell]: ~/Downloads
➜  ./ServerScan_Pro_v1.0.2_darwin_amd64
[1]    2362 killed     ./ServerScan_Pro_v1.0.2_darwin_amd64

本地编译是可以运行的,可能是师傅你在win上编译的mac版导致的。

@Adminisme
Copy link
Owner

感谢师傅发现此问题。
在win上编译的mac版是没有问题的,主要原因是为了减少体积,Releases中的文件使用了”upx -9“ 压缩了文件,导致破坏了文件结构。如果要运行当前版本,可以使用“upx -d”还原文件结构。

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