diff --git a/internal/commands/vorpal/vorpalconfig/vorpal-mac.go b/internal/commands/vorpal/vorpalconfig/vorpal-mac-amd.go similarity index 94% rename from internal/commands/vorpal/vorpalconfig/vorpal-mac.go rename to internal/commands/vorpal/vorpalconfig/vorpal-mac-amd.go index d39c435ac..5bdfd885c 100644 --- a/internal/commands/vorpal/vorpalconfig/vorpal-mac.go +++ b/internal/commands/vorpal/vorpalconfig/vorpal-mac-amd.go @@ -1,4 +1,4 @@ -//go:build darwin +//go:build darwin && amd64 package vorpalconfig diff --git a/internal/commands/vorpal/vorpalconfig/vorpal-mac-arm.go b/internal/commands/vorpal/vorpalconfig/vorpal-mac-arm.go new file mode 100644 index 000000000..d6557f142 --- /dev/null +++ b/internal/commands/vorpal/vorpalconfig/vorpal-mac-arm.go @@ -0,0 +1,16 @@ +//go:build darwin && arm64 + +package vorpalconfig + +import ( + "github.com/checkmarx/ast-cli/internal/services/osinstaller" +) + +var Params = osinstaller.InstallationConfiguration{ + ExecutableFile: "vorpal_darwin_arm64", + DownloadURL: "https://download.checkmarx.com/vorpal-binary/vorpal_darwin_arm64.tar.gz", + HashDownloadURL: "https://download.checkmarx.com/vorpal-binary/hash.txt", + FileName: "vorpal.tar.gz", + HashFileName: "hash.txt", + WorkingDirName: "CxVorpal", +}