Bundle: Implement ZIP creation on Windows
This commit is contained in:
@@ -203,6 +203,13 @@ if [ -z "${WGET}" ]; then
|
||||
exit 1
|
||||
fi
|
||||
|
||||
if [[ "${KERNEL_NAME}" == "MINGW"* ]]; then
|
||||
_7Z=`which 7z`
|
||||
if [ -z "${_7Z}" ]; then
|
||||
echo "ERROR: 7z is not found, can not continue."
|
||||
exit 1
|
||||
fi
|
||||
fi
|
||||
|
||||
# Make sure storage directory exists.
|
||||
if [ -z ${STORAGE_DIRECTORY} ]; then
|
||||
@@ -408,6 +415,10 @@ if [ "${KERNEL_NAME}" == "Darwin" ]; then
|
||||
"${BUNDLE_DIRECTORY}" \
|
||||
--exclude='*.DS_Store*' \
|
||||
--exclude='*.pyc*'
|
||||
elif [[ "${KERNEL_NAME}" == "MINGW"* ]]; then
|
||||
"${_7Z}" a -r \
|
||||
`basename ${BUNDLE_DIRECTORY}`.zip \
|
||||
"${BUNDLE_DIRECTORY}"
|
||||
else
|
||||
${TAR} \
|
||||
-C "${STORAGE_DIRECTORY}" \
|
||||
|
Reference in New Issue
Block a user