-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: build different mac version and zip all
- Loading branch information
Patrick Falk Nielsen
committed
Dec 14, 2023
1 parent
a452fc5
commit 82b3084
Showing
2 changed files
with
15 additions
and
4 deletions.
There are no files selected for viewing
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,17 @@ | ||
mkdir -p dist | ||
cp -r tools/assets/securecrt-inventory.app dist | ||
mkdir -p dist/darwin/arm64 | ||
mkdir -p dist/darwin/amd64 | ||
|
||
cp -r tools/assets/securecrt-inventory.app dist/darwin/arm64 | ||
cp -r tools/assets/securecrt-inventory.app dist/darwin/amd64 | ||
|
||
CGO_ENABLED=1 GOOS=windows GOARCH=amd64 go build -ldflags "-H=windowsgui" -o dist/securecrt-inventory.exe main.go | ||
CGO_ENABLED=1 go build -o dist/securecrt-inventory.app/Contents/MacOS/securecrt-inventory main.go | ||
zip -r dist/securecrt-inventory.app.zip dist/securecrt-inventory.app | ||
CGO_ENABLED=1 GOOS=darwin GOARCH=arm64 go build -o dist/darwin/arm64/securecrt-inventory.app/Contents/MacOS/securecrt-inventory main.go | ||
CGO_ENABLED=1 GOOS=darwin GOARCH=amd64 go build -o dist/darwin/amd64/securecrt-inventory.app/Contents/MacOS/securecrt-inventory main.go | ||
|
||
zip -r dist/securecrt-inventory-darwin-arm64.zip dist/darwin/arm64/securecrt-inventory.app | ||
zip -r dist/securecrt-inventory-darwin-amd64.zip dist/darwin/amd64/securecrt-inventory.app | ||
zip -r dist/securecrt-inventory-windows-amd64.zip dist/securecrt-inventory.exe | ||
|
||
rm dist/securecrt-inventory.exe | ||
rm -rf dist/darwin/arm64 | ||
rm -rf dist/darwin/amd64 |