mirror of
https://github.com/Alfresco/alfresco-keycloak-theme.git
synced 2025-12-19 18:18:29 -05:00
21 lines
528 B
Bash
21 lines
528 B
Bash
#!/bin/bash
|
|
set -o errexit
|
|
|
|
declare -r currentDir="$(dirname "${BASH_SOURCE[0]}")"
|
|
source "${currentDir}/build.properties"
|
|
|
|
DISTRIBUTION_NAME=alfresco-keycloak-theme-$THEME_VERSION
|
|
|
|
# prepare and zip the theme content
|
|
echo "info::: Removing an existing '$DISTRIBUTION_NAME.zip' file."
|
|
rm -rf $DISTRIBUTION_NAME.zip
|
|
|
|
mkdir alfresco
|
|
echo "info::: Packaging alfresco theme as '$DISTRIBUTION_NAME.zip'"
|
|
|
|
cp -rf theme/* alfresco/
|
|
zip -r $DISTRIBUTION_NAME.zip alfresco
|
|
|
|
echo "info::: Cleanup temp files and folders."
|
|
rm -rf alfresco
|