Skip to content

Commit 2c79e5e

Browse files
committed
implement CxInstaller.ts
1 parent 62f3865 commit 2c79e5e

File tree

5 files changed

+1085
-51
lines changed

5 files changed

+1085
-51
lines changed

.github/scripts/update_cli.sh

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,29 @@ release=$1
44
filename_windows=ast-cli_${release}_windows_x64.zip
55
filename_linux=ast-cli_${release}_linux_x64.tar.gz
66
filename_darwin=ast-cli_${release}_darwin_x64.tar.gz
7+
8+
#Windows
9+
echo "Updating windows binary"
10+
wget https://github.com/Checkmarx/ast-cli/releases/download/${release}/${filename_windows}
11+
unzip ${filename_windows} -d tmp
12+
mv ./tmp/cx.exe ./src/main/wrapper/resources/cx.exe
13+
rm -r tmp
14+
rm ${filename_windows}
15+
16+
#linux
17+
echo "Updating linux binary"
18+
wget https://github.com/Checkmarx/ast-cli/releases/download/${release}/${filename_linux}
19+
mkdir ./tmp/
20+
tar -xvzf ${filename_linux} -C ./tmp/
21+
mv ./tmp/cx ./src/main/wrapper/resources/cx-linux
22+
rm -r tmp
23+
rm ${filename_linux}
24+
25+
#darwin
26+
echo "Updating mac binary"
27+
wget https://github.com/Checkmarx/ast-cli/releases/download/${release}/${filename_darwin}
28+
mkdir ./tmp/
29+
tar -xvzf ${filename_darwin} -C ./tmp/
30+
mv ./tmp/cx ./src/main/wrapper/resources/cx-mac
31+
rm -r tmp
32+
rm ${filename_darwin}

0 commit comments

Comments
 (0)