From 6e57e10169346160d61d45f167474431f3ad175c Mon Sep 17 00:00:00 2001 From: Zachary Klosko Date: Wed, 9 Dec 2020 16:58:41 -0500 Subject: [PATCH] New idea: work out of one directory --- .github/scripts/release.sh | 19 ++++++------------- 1 file changed, 6 insertions(+), 13 deletions(-) diff --git a/.github/scripts/release.sh b/.github/scripts/release.sh index ed5ac2ba8..af1df447c 100644 --- a/.github/scripts/release.sh +++ b/.github/scripts/release.sh @@ -23,21 +23,14 @@ else version=$1 fi +echo "Creating tarball for LibreTime ${suffix}." + # Adding dos2unix package apt update -y -q apt install dos2unix php composer -y -echo "Creating tarball for LibreTime ${suffix}." - -target=/tmp/libretime-${suffix} -target_file=libretime-${suffix}.tar.gz - -rm -rf $target -rm -f $target_file -mkdir $target - echo -n "Creating VERSION file for ${suffix}..." -echo -n "${suffix}" > ${target}/VERSION +echo -n "${suffix}" > ./VERSION echo " Done" echo -n "Running composer install..." @@ -51,15 +44,15 @@ echo " Done" #find $target/airtime_mvc/public/js/airtime/ -iname "*.js" -exec mv {}.min {} \; #echo "Done" -cd /tmp/ +cd .. find libretime-${suffix} -type f -exec dos2unix {} \; echo -n "Creating tarball..." -tar -czf $target_file \ +tar -czf libretime-${suffix}.tar.gz \ --owner=root --group=root \ --exclude-vcs \ --exclude .zfproject.xml \ --exclude .gitignore \ --exclude .gitattributes \ --exclude dev_tools \ - libretime-${suffix} + libretime echo " Done"