Skip to content

Commit

Permalink
implement CxInstaller.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
BenAlvo1 committed Sep 18, 2024
1 parent 62f3865 commit 2c79e5e
Show file tree
Hide file tree
Showing 5 changed files with 1,085 additions and 51 deletions.
26 changes: 26 additions & 0 deletions .github/scripts/update_cli.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,29 @@ release=$1
filename_windows=ast-cli_${release}_windows_x64.zip
filename_linux=ast-cli_${release}_linux_x64.tar.gz
filename_darwin=ast-cli_${release}_darwin_x64.tar.gz

#Windows
echo "Updating windows binary"
wget https://github.com/Checkmarx/ast-cli/releases/download/${release}/${filename_windows}
unzip ${filename_windows} -d tmp
mv ./tmp/cx.exe ./src/main/wrapper/resources/cx.exe
rm -r tmp
rm ${filename_windows}

#linux
echo "Updating linux binary"
wget https://github.com/Checkmarx/ast-cli/releases/download/${release}/${filename_linux}
mkdir ./tmp/
tar -xvzf ${filename_linux} -C ./tmp/
mv ./tmp/cx ./src/main/wrapper/resources/cx-linux
rm -r tmp
rm ${filename_linux}

#darwin
echo "Updating mac binary"
wget https://github.com/Checkmarx/ast-cli/releases/download/${release}/${filename_darwin}
mkdir ./tmp/
tar -xvzf ${filename_darwin} -C ./tmp/
mv ./tmp/cx ./src/main/wrapper/resources/cx-mac
rm -r tmp
rm ${filename_darwin}
Loading

0 comments on commit 2c79e5e

Please sign in to comment.