Bun is under active development. Use it to speed up your development workflows or run simpler production code in resource-constrained environments like serverless functions. We're working on more complete Node.js compatibility and integration with existing frameworks. Join the Discord and watch the GitHub repository to keep tabs on future releases.
具体参考一个 demo
1
2
3
4
5
6
7
8
#!/usr/local/bin/v run
importtermterm.clear()system("cd frontend && bun run build")system("cd server && CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -ldflags '-s -w' -o rdm && upx -9 rdm && mv rdm ..")println("build done!")