From 842be02412bc83bf87d7010edac1b6fd55ec3978 Mon Sep 17 00:00:00 2001 From: Drew Short Date: Tue, 20 Jan 2015 14:50:18 -0600 Subject: [PATCH] Modified packaging script to produce only the GUI and the to produce both tgz and txz packages. Playing around with a better way to deliver the program. --- build/linux/package.sh | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/build/linux/package.sh b/build/linux/package.sh index 470813d..d722420 100755 --- a/build/linux/package.sh +++ b/build/linux/package.sh @@ -12,14 +12,22 @@ packageProject () #Getting variables that are produced by the script NAME=$(head -1 ./name.info) PACKAGENAME=$NAME-$LOCAL_VERSION - PACKAGETAR=$PACKAGENAME.tar.gz + PACKAGETAR=$PACKAGENAME.tar + PACKAGEGZ=$PACKAGENAME.tgz + PACKAGEXZ=$PACKAGENAME.txz PACKAGEZIP=$PACKAGENAME.zip TARGET=$PWD/target #Packaging Jar Distributable cd target/release/ echo "creating $PACKAGETAR in $TARGET" - tar -zcvf $RELEASE/$PACKAGETAR . + tar -cvf $RELEASE/$PACKAGETAR . + echo "creating $PACKAGEGZ in $TARGET" + gzip -c $RELEASE/$PACKAGETAR > $RELEASE/$PACKAGEGZ + echo "creating $PACKAGEXZ in $TARGET" + xz -c $RELEASE/$PACKAGETAR > $RELEASE/$PACKAGEXZ + #Remove the tar that was originally used to compress + rm $RELEASE/$PACKAGETAR echo "creating $PACKAGEZIP in $TARGET" zip -r $RELEASE/$PACKAGEZIP ./* #Removing prebuilt jar in target @@ -40,6 +48,6 @@ if [ -d $RELEASE ]; then fi mkdir $RELEASE -packageProject $VERSIONSTRING "./cli" $RELEASE +#packageProject $VERSIONSTRING "./cli" $RELEASE packageProject $VERSIONSTRING "./gui" $RELEASE #packageProject $VERSIONSTRING "./daemon" $RELEASE