diff --git a/Build.ps1 b/Build.ps1 new file mode 100644 index 0000000..38d523b --- /dev/null +++ b/Build.ps1 @@ -0,0 +1,19 @@ +Set-Location "$PSScriptRoot/.." + +$Platforms = @( + @{ GOOS = "windows"; GOARCH = "amd64" } + @{ GOOS = "linux"; GOARCH = "amd64" } + @{ GOOS = "darwin"; GOARCH = "amd64" } +) + +$InputFile = "./cmd/gazelle/main.go" + +$Platforms | ForEach-Object { + $Env:GOOS = $_.GOOS + $Env:GOARCH = $_.GOARCH + + $Extension = if ($_.GOOS -eq "windows") { ".exe" } else { "" } + $Executable = "gazelle-$($_.GOOS)-$($_.GOARCH)$Extension" + + go build -o "./build/$Executable" +} diff --git a/README.md b/README.md index 509d3d5..fd8bbda 100644 --- a/README.md +++ b/README.md @@ -3,10 +3,10 @@
A fast, cross-platform engine for structural analysis & design.
- [![Open in Dev Containers](https://img.shields.io/static/v1?label=Dev%20Containers&message=Open&color=blue&logo=visualstudiocode)](https://vscode.dev/redirect?url=vscode://ms-vscode-remote.remote-containers/cloneInVolume?url=https://github.com/GazelleKit/gazelle) - [![Contributor Covenant](https://img.shields.io/badge/Contributor%20Covenant-2.0-4baaaa.svg)](https://github.com/GazelleKit/gazelle/blob/main/CODE_OF_CONDUCT.md) + [![Open in Dev Containers](https://img.shields.io/static/v1?label=Dev%20Containers&message=Open&color=blue&logo=visualstudiocode)](https://vscode.dev/redirect?url=vscode://ms-vscode-remote.remote-containers/cloneInVolume?url=https://github.com/noblesource/gazelle) + [![Contributor Covenant](https://img.shields.io/badge/Contributor%20Covenant-2.0-4baaaa.svg)](https://github.com/noblesource/gazelle/blob/main/CODE_OF_CONDUCT.md) - [![CI](https://github.com/GazelleKit/gazelle/actions/workflows/ci.yml/badge.svg)](https://github.com/GazelleKit/gazelle/actions/workflows/build.yml) + [![CI](https://github.com/GazelleKit/gazelle/actions/workflows/ci.yml/badge.svg)](https://github.com/GazelleKit/gazelle/actions/workflows/ci.yml) [![License: AGPL-3.0](https://img.shields.io/badge/License-AGPL--3.0-00add8)](https://choosealicense.com/licenses/agpl-3.0/) [![.NET](https://img.shields.io/badge/.NET-8.0-8a2be2)](https://dotnet.microsoft.com) @@ -86,5 +86,5 @@- We recommend that all users carefully review the code, tests and documentation. Please submit error reports and suggestions for improvement via GitHub Issues. For anyone who would like to attempt a fix or improvement, we would encourage you to review our Contributing guidance and submit a Pull Request. + We recommend that all users carefully review the code, tests and documentation. Please submit error reports and suggestions for improvement via GitHub Issues. For anyone who would like to attempt a fix or improvement, we would encourage you to review our Contributing guidance and submit a Pull Request.