sing-box/cmd/internal/build/main.go

22 lines
347 B
Go
Raw Permalink Normal View History

2022-12-11 14:38:01 +08:00
package main
import (
"os"
"os/exec"
2022-10-25 12:55:00 +08:00
"github.com/sagernet/sing-box/cmd/internal/build_shared"
2022-12-11 14:38:01 +08:00
"github.com/sagernet/sing-box/log"
)
func main() {
2022-10-25 12:55:00 +08:00
build_shared.FindSDK()
2022-12-11 14:38:01 +08:00
command := exec.Command(os.Args[1], os.Args[2:]...)
command.Stdout = os.Stdout
command.Stderr = os.Stderr
2023-03-09 16:53:25 +08:00
err := command.Run()
2022-12-11 14:38:01 +08:00
if err != nil {
log.Fatal(err)
}
}