Skip to content

Commit 44d7f8a

Browse files
committed
chore(install): use latest release URLs for malice-network and EvilClaw
Switch malice-network and EvilClaw downloads to GitHub's releases/latest/download endpoint so the script always fetches the newest release without hardcoded version tags. Bump malefic default from v0.1.2 to v0.3.0 (needs explicit tag for git clone --branch). All values remain overridable via environment variables.
1 parent bb200b3 commit 44d7f8a

1 file changed

Lines changed: 3 additions & 5 deletions

File tree

install.sh

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -120,9 +120,8 @@ check_and_install_docker(){
120120

121121
# install malice-network's artifacts
122122
install_malice_network() {
123-
local MALICE_NETWORK=${MALICE_NETWORK:="v0.1.2"}
124123
local md="${IoM_ROOT_DIR}/malice-network"
125-
local MALICE_NETWORK_RELEASES_URL=${MALICE_NETWORK_RELEASES_URL:="https://github.com/chainreactors/malice-network/releases/download/$MALICE_NETWORK"}
124+
local MALICE_NETWORK_RELEASES_URL=${MALICE_NETWORK_RELEASES_URL:="https://github.com/chainreactors/malice-network/releases/latest/download"}
126125
local FILES=(
127126
"malice_network_linux_amd64"
128127
"iom_linux_amd64"
@@ -154,7 +153,7 @@ install_malice_network() {
154153
}
155154
# install malefic's artifacts、sourcecode
156155
install_malefic(){
157-
local MALEFIC_VERSION=${MALEFIC_VERSION:="v0.1.2"}
156+
local MALEFIC_VERSION=${MALEFIC_VERSION:="v0.3.0"}
158157
local MALEFIC_ROOT_DIR="$IoM_ROOT_DIR/malefic"
159158

160159
install_source_code(){
@@ -209,9 +208,8 @@ install_evilclaw(){
209208
return
210209
fi
211210

212-
local EVILCLAW_VERSION=${EVILCLAW_VERSION:="v0.1.0"}
213211
local EVILCLAW_DIR="$IoM_ROOT_DIR/evilclaw"
214-
local EVILCLAW_RELEASES_URL="https://github.com/chainreactors/EvilClaw/releases/download/$EVILCLAW_VERSION"
212+
local EVILCLAW_RELEASES_URL=${EVILCLAW_RELEASES_URL:="https://github.com/chainreactors/EvilClaw/releases/latest/download"}
215213

216214
mkdir -p "$EVILCLAW_DIR"
217215
pushd "$EVILCLAW_DIR"

0 commit comments

Comments
 (0)