Build: Add build commit to appimage build name

This commit is contained in:
Ilija Lazoroski 2021-10-21 14:36:01 +02:00
parent 6b0a689adb
commit 530ba633d2
1 changed files with 3 additions and 1 deletions

View File

@ -35,6 +35,8 @@ setup_build_dir() {
mkdir -p "$BUILD_DIR" mkdir -p "$BUILD_DIR"
build_commit=$(git -C "$monkey_repo" rev-parse --short HEAD)
copy_monkey_island_to_build_dir "$monkey_repo/monkey" "$BUILD_DIR" copy_monkey_island_to_build_dir "$monkey_repo/monkey" "$BUILD_DIR"
copy_server_config_to_build_dir copy_server_config_to_build_dir
modify_deployment "$deployment_type" "$BUILD_DIR" modify_deployment "$deployment_type" "$BUILD_DIR"
@ -123,7 +125,7 @@ build_package() {
if $IS_RELEASE_BUILD; then if $IS_RELEASE_BUILD; then
dst_name="InfectionMonkey-v$version.AppImage" dst_name="InfectionMonkey-v$version.AppImage"
else else
dst_name="" dst_name="InfectionMonkey-$build_commit.AppImage"
fi fi
move_package_to_dist_dir $dist_dir $dst_name move_package_to_dist_dir $dist_dir $dst_name