From 3c95a43865e696d79aaee010559f0c478ab4de34 Mon Sep 17 00:00:00 2001 From: AlvoBen Date: Thu, 29 Aug 2024 09:59:38 +0300 Subject: [PATCH 1/2] add support to vorpal-mac-arm.go --- .../{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..b6b86044e --- /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_x64", + 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", +} From 7d8a7b3a9637d9f9df038bd609026b5c793a63c9 Mon Sep 17 00:00:00 2001 From: AlvoBen Date: Thu, 29 Aug 2024 10:06:04 +0300 Subject: [PATCH 2/2] update exec file path of vorpal arm --- internal/commands/vorpal/vorpalconfig/vorpal-mac-arm.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/commands/vorpal/vorpalconfig/vorpal-mac-arm.go b/internal/commands/vorpal/vorpalconfig/vorpal-mac-arm.go index b6b86044e..d6557f142 100644 --- a/internal/commands/vorpal/vorpalconfig/vorpal-mac-arm.go +++ b/internal/commands/vorpal/vorpalconfig/vorpal-mac-arm.go @@ -7,7 +7,7 @@ import ( ) var Params = osinstaller.InstallationConfiguration{ - ExecutableFile: "vorpal_darwin_x64", + 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",