Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
nothingface0 committed Feb 23, 2024
1 parent f18d49f commit e29aeb1
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build_installation_package.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ jobs:
sed -Ei "s/DQMGUI\_GIT\_TAG=.+/DQMGUI\_GIT\_TAG=${DQMGUI_GIT_TAG}/" config.sh
sed -Ei "s@DQMGUI\_GIT\_URL=.+@DQMGUI\_GIT\_URL=${DQMGUI_GIT_URL}@" config.sh
sed -Ei "s/ROOT\_GIT\_TAG=.+/ROOT\_GIT\_TAG=${ROOT_GIT_TAG}/" config.sh
sed -Ei "s@ROOT\_GIT\_URL=.+@ROOT\_GIT\_URL=${ROOT_GIT_URL}@ config.sh
sed -Ei "s@ROOT\_GIT\_URL=.+@ROOT\_GIT\_URL=${ROOT_GIT_URL}@" config.sh
bash download_dependencies.sh
bash build_installation_package.sh TARGET_DIRECTORY="/tmp/dqmgui" ARCHIVE_NAME="dqmgui_$RELEASE_TAG.tar.gz"
echo "Automatically generated release for making the installation package publicly available.
Expand Down
8 changes: 7 additions & 1 deletion build_installation_package.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,5 +20,11 @@ for ARGUMENT in "$@"; do
eval "$KEY=$VALUE"
done

# Check for piggiez
COMPRESSION_CMD="pigz --best"
if ! pigz --version >/dev/null 2>&1; then
COMPRESSION_CMD="gzip --best"
fi

mkdir -p "$TARGET_DIRECTORY"
tar -cf "$TARGET_DIRECTORY/$ARCHIVE_NAME" --exclude "$SOURCE_DIRECTORY/.git" --exclude "$SOURCE_DIRECTORY/.github" "$SOURCE_DIRECTORY" -I "pigz --best"
tar -cf "$TARGET_DIRECTORY/$ARCHIVE_NAME" --exclude "$SOURCE_DIRECTORY/.git" --exclude "$SOURCE_DIRECTORY/.github" "$SOURCE_DIRECTORY" -I "$COMPRESSION_CMD"

0 comments on commit e29aeb1

Please sign in to comment.