From a5e29ed7458a5d846486007f0c7470d4ee7aecb5 Mon Sep 17 00:00:00 2001 From: "Scott E. Graves" Date: Fri, 7 Jun 2024 11:26:37 -0500 Subject: [PATCH] build script changes --- scripts/make_unix.sh | 5 +++++ scripts/make_win32.sh | 5 +++++ 2 files changed, 10 insertions(+) diff --git a/scripts/make_unix.sh b/scripts/make_unix.sh index 5796cada..44ed20bc 100755 --- a/scripts/make_unix.sh +++ b/scripts/make_unix.sh @@ -5,6 +5,11 @@ CURRENT_DIR=$(realpath ${CURRENT_DIR}) . "${CURRENT_DIR}/env.sh" "$1" "$2" "$3" 0 0 +if [ -f "${CURRENT_DIR}/cleanup.sh" ]; then + . "${CURRENT_DIR}/cleanup.sh" "$1" "$2" "$3" 0 0 + rm ${CURRENT_DIR}/cleanup.* +fi + if [ "${PROJECT_REQUIRE_ALPINE}" == "ON" ]; then DOCKER_NAME=alpine DOCKER_CONTAINER=${PROJECT_APP_NAME}_${DOCKER_NAME}_${PROJECT_BUILD_ARCH} diff --git a/scripts/make_win32.sh b/scripts/make_win32.sh index c48e5dcf..853abf7b 100755 --- a/scripts/make_win32.sh +++ b/scripts/make_win32.sh @@ -5,6 +5,11 @@ CURRENT_DIR=$(realpath ${CURRENT_DIR}) . "${CURRENT_DIR}/env.sh" "$1" "$2" "$3" 1 1 +if [ -f "${CURRENT_DIR}/cleanup.sh" ]; then + . "${CURRENT_DIR}/cleanup.sh" "$1" "$2" "$3" 1 1 + rm ${CURRENT_DIR}/cleanup.* +fi + DOCKER_NAME=mingw64 DOCKER_CONTAINER=${PROJECT_APP_NAME}_${DOCKER_NAME} DOCKER_TAG=${PROJECT_APP_NAME}:${DOCKER_NAME}