From db993cf00fc18fd2295c594d26b2fb535d304b12 Mon Sep 17 00:00:00 2001 From: sawka Date: Wed, 24 Aug 2022 21:33:50 -0700 Subject: [PATCH] add scripthaus.md --- scripthaus.md | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 scripthaus.md diff --git a/scripthaus.md b/scripthaus.md new file mode 100644 index 00000000..6752bda6 --- /dev/null +++ b/scripthaus.md @@ -0,0 +1,16 @@ + +```bash +# @scripthaus command build +go build -ldflags="-s -w" -o /Users/mike/.mshell/mshell main-mshell.go +``` + +```bash +# @scripthaus command fullbuild +go build -ldflags="-s -w" -o /Users/mike/.mshell/mshell main-mshell.go +GOOS=linux GOARCH=amd64 go build -ldflags="-s -w" -o /opt/mshell/bin/mshell.linux.amd64 main-mshell.go +GOOS=linux GOARCH=arm64 go build -ldflags="-s -w" -o /opt/mshell/bin/mshell.linux.arm64 main-mshell.go +GOOS=darwin GOARCH=amd64 go build -ldflags="-s -w" -o /opt/mshell/bin/mshell.darwin.amd64 main-mshell.go +GOOS=darwin GOARCH=arm64 go build -ldflags="-s -w" -o /opt/mshell/bin/mshell.darwin.arm64 main-mshell.go +``` + +