diff --git a/.gitignore b/.gitignore index b6c7186..14afc1e 100644 --- a/.gitignore +++ b/.gitignore @@ -23,4 +23,5 @@ go.work .vscode ui/backup .DS_Store -ryHash \ No newline at end of file +ryHash +ryHash.app diff --git a/Makefile b/Makefile index f9d2bc2..882378f 100644 --- a/Makefile +++ b/Makefile @@ -2,4 +2,4 @@ windows: CGO_ENABLED=1 go build -o "ryHash.exe" -buildmode=exe -ldflags="-H windowsgui -w -s" -tags="tempdll" ./cmd/ macos: - CGO_ENABLED=1 go build -o "ryHash" -ldflags="-w -s" ./cmd/ \ No newline at end of file + CGO_ENABLED=1 GOARCH=amd64 go build -o "ryHash" -ldflags="-w -s" ./cmd/ \ No newline at end of file diff --git a/README.md b/README.md index 440b81b..f4f8f2b 100644 --- a/README.md +++ b/README.md @@ -40,6 +40,9 @@ - Linux:请自行编译 > 注:macOS M1 芯片存在使用几分钟后闪退问题,目前无解。 +> +> 如果提示 「文件已损坏请移至废纸篓」或「来自身份不明的开发者」请使用以下命令: +> xattr -dr com.apple.quarantine /Applications/ryHash.app 哈希算法(可扩充): - crc32