updated build system
Some checks reported errors
BlockStorage/repertory/pipeline/head Something is wrong with the build of this commit
Some checks reported errors
BlockStorage/repertory/pipeline/head Something is wrong with the build of this commit
This commit is contained in:
parent
78ef412516
commit
aa04371663
@ -22,7 +22,6 @@ pipeline {
|
||||
retry(2) {
|
||||
sleep time: 5, unit: 'SECONDS'
|
||||
sh 'scripts/make_unix.sh'
|
||||
sh 'scripts/make_package.sh'
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -34,7 +33,6 @@ pipeline {
|
||||
retry(2) {
|
||||
sleep time: 5, unit: 'SECONDS'
|
||||
sh 'scripts/make_win32.sh'
|
||||
sh 'scripts/make_package.sh "" "" "" "" 1 0'
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -46,7 +44,6 @@ pipeline {
|
||||
retry(2) {
|
||||
sleep time: 5, unit: 'SECONDS'
|
||||
sh 'scripts/make_unix.sh aarch64'
|
||||
sh 'scripts/make_package.sh "" aarch64'
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -85,3 +85,5 @@ ln -sf "${PROJECT_BUILD_DIR}/build/compile_commands.json" "${PROJECT_SOURCE_DIR}
|
||||
if [ -f "${PROJECT_SOURCE_DIR}/post_build.sh" ]; then
|
||||
"${PROJECT_SOURCE_DIR}/post_build.sh"
|
||||
fi
|
||||
|
||||
. "${PROJECT_SCRIPTS_DIR}/make_package.sh" "$1" "$2" "$3" "$4" "$5"
|
||||
|
@ -2,11 +2,10 @@
|
||||
|
||||
setlocal
|
||||
|
||||
set DEST=%~1
|
||||
set ARG1=%~2
|
||||
set ARG2=%~3
|
||||
set ARG3=%~4
|
||||
set ARG1=%~1
|
||||
set ARG2=%~2
|
||||
set ARG3=%~3
|
||||
|
||||
pushd "%~dp0%"
|
||||
call mingw64 -no-start ./make_package.sh "%DEST%" "%ARG1%" "%ARG2%" "%ARG3%" 1 0 || exit 1
|
||||
call mingw64 -no-start ./make_package.sh "%ARG1%" "%ARG2%" "%ARG3%" 1 0 || exit 1
|
||||
popd
|
||||
|
@ -2,11 +2,9 @@
|
||||
|
||||
TEMP_DIR=$(mktemp -d)
|
||||
|
||||
DEST_DIR=$1
|
||||
|
||||
PROJECT_SCRIPTS_DIR=$(realpath "$0")
|
||||
PROJECT_SCRIPTS_DIR=$(dirname "${PROJECT_SCRIPTS_DIR}")
|
||||
. "${PROJECT_SCRIPTS_DIR}/env.sh" "$2" "$3" "$4" "$5" "$6"
|
||||
. "${PROJECT_SCRIPTS_DIR}/env.sh" "$1" "$2" "$3" "$4" "$5"
|
||||
|
||||
function error_exit() {
|
||||
echo $1
|
||||
@ -27,16 +25,7 @@ if [ ! -d "${PROJECT_DIST_DIR}" ]; then
|
||||
error_exit "dist directory not found: ${PROJECT_DIST_DIR}" 2
|
||||
fi
|
||||
|
||||
if [ "${DEST_DIR}" == "" ]; then
|
||||
DEST_DIR="${PROJECT_DIST_DIR}"
|
||||
fi
|
||||
DEST_DIR=$(realpath "${DEST_DIR}")
|
||||
|
||||
if [ ! -d "${DEST_DIR}" ]; then
|
||||
error_exit "dest directory not found: ${DEST_DIR}" 1
|
||||
fi
|
||||
|
||||
pushd "${DEST_DIR}"
|
||||
pushd "${PROJECT_DIST_DIR}"
|
||||
if [ -f "${PROJECT_OUT_FILE}" ]; then
|
||||
rm -f "${PROJECT_OUT_FILE}" || error_exit "failed to delete file: ${PROJECT_OUT_FILE}" 1
|
||||
fi
|
||||
@ -69,7 +58,7 @@ unset IFS
|
||||
set +f
|
||||
popd
|
||||
|
||||
pushd "${DEST_DIR}"
|
||||
pushd "${PROJECT_DIST_DIR}"
|
||||
tar cvzf "${PROJECT_OUT_FILE}" -C ${TEMP_DIR} . || error_exit "failed to create archive: ${PROJECT_OUT_FILE}" 1
|
||||
create_file_validations "${PROJECT_OUT_FILE}"
|
||||
popd
|
||||
|
Loading…
x
Reference in New Issue
Block a user