fix build macos

This commit is contained in:
2026-07-01 09:49:27 +07:00
parent c3bea3bb46
commit 35d954ff0f
20 changed files with 697 additions and 318 deletions

View File

@@ -16,4 +16,18 @@ to this in your browser, and you can call your Go code from devtools.
## Building
To build a redistributable, production mode package, use `wails build`.
### Windows
To build for Windows:
- Run `wails build` (or `wails build -platform windows/amd64`)
- Or use the PowerShell build script: `./build.ps1`
### macOS (ARM & Intel)
To build for macOS:
- To build Apple Silicon (ARM64) target: `wails build -platform darwin/arm64`
- To build Intel (AMD64) target: `wails build -platform darwin/amd64`
- To build a Universal macOS binary: `wails build -platform darwin/universal`
- Alternatively, run the helper script to build both ARM64 and AMD64 targets:
```bash
chmod +x build.sh
./build.sh
```