Describe the bug
I have checked the issue and tried to apply the solution, but I am still experiencing errors:
Program 'main.exe' failed to run: The specified executable is not a valid application for this OS platform.At line:1 char:1
At line:1 char:1
+ CategoryInfo : ResourceUnavailable: (:) [], ApplicationFailedException
+ FullyQualifiedErrorId : NativeCommandFailed
To Reproduce
air.toml
`root = "."
tmp_dir = "tmp"
[build]
shell = "cmd"
pre_cmd = "del tmp\main.exe"
cmd = "set GOOS=windows && set GOARCH=amd64 && go build -o ./tmp/main.exe ."
full_build_log = true
entrypoint = "tmp/main.exe"
delay = 1000
log = true
exclude_dir = ["assets", "tmp", "node_modules", "bin"]
exclude_file = ["*.md"]
include_ext = ["go", "html", "gohtml"]`
Desktop (please complete the following information):
- OS: Windows 10 Pro 22H2
- Air Version: 1.64.5