From 530ba633d286f835194e0d5632adbf33812799c5 Mon Sep 17 00:00:00 2001 From: Ilija Lazoroski Date: Thu, 21 Oct 2021 14:36:01 +0200 Subject: [PATCH] Build: Add build commit to appimage build name --- build_scripts/appimage/appimage.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/build_scripts/appimage/appimage.sh b/build_scripts/appimage/appimage.sh index 5e2a25245..032ae7663 100755 --- a/build_scripts/appimage/appimage.sh +++ b/build_scripts/appimage/appimage.sh @@ -35,6 +35,8 @@ setup_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_server_config_to_build_dir modify_deployment "$deployment_type" "$BUILD_DIR" @@ -123,7 +125,7 @@ build_package() { if $IS_RELEASE_BUILD; then dst_name="InfectionMonkey-v$version.AppImage" else - dst_name="" + dst_name="InfectionMonkey-$build_commit.AppImage" fi move_package_to_dist_dir $dist_dir $dst_name