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

Add tips to solve the problem that macos cannot be compiled. #2925

Merged
merged 4 commits into from Oct 21, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
Expand Up @@ -80,6 +80,7 @@ Wails CLI 为项目做了很多繁重的工作,但有时需要手动构建项
#### 手动步骤

- 对于 dev 构建,最少的命令是:`go build -tags dev -gcflags "all=-N -l"`
- 在macos上需要加上环境变量 `export CGO_LDFLAGS="-framework UniformTypeIdentifiers" && go build -tags dev -gcflags "all=-N -l"`
- 对于生产构建,最少的命令是:`go build -tags desktop,production -ldflags "-w -s -H windowsgui"`
- 确保在与 `.syso` 文件相同的目录中进行编译

Expand Down