From 267e2b961eca35f198df340e423233f41737ae0b Mon Sep 17 00:00:00 2001 From: AlvoBen <144705560+AlvoBen@users.noreply.github.com> Date: Thu, 29 Aug 2024 14:20:28 +0300 Subject: [PATCH] CLI | Support download and execute of Vorpal engine in MacOS arm64 (AST-63697) (#852) * add support to vorpal-mac-arm.go * update exec file path of vorpal arm --------- Co-authored-by: AlvoBen --- .../{vorpal-mac.go => vorpal-mac-amd.go} | 2 +- .../vorpal/vorpalconfig/vorpal-mac-arm.go | 16 ++++++++++++++++ 2 files changed, 17 insertions(+), 1 deletion(-) rename internal/commands/vorpal/vorpalconfig/{vorpal-mac.go => vorpal-mac-amd.go} (94%) create mode 100644 internal/commands/vorpal/vorpalconfig/vorpal-mac-arm.go 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", +}