From 9ca2c215476e6d0ffba7f0cf3b31329fd6bd0389 Mon Sep 17 00:00:00 2001 From: Leonardo Galli Date: Wed, 12 Apr 2017 21:46:33 +0200 Subject: [PATCH] This should finally fix all packaging stuff. --- package.sh | 17 +++++++++++++---- 1 file changed, 13 insertions(+), 4 deletions(-) diff --git a/package.sh b/package.sh index c2eba60ce..b65697853 100644 --- a/package.sh +++ b/package.sh @@ -23,6 +23,7 @@ if [ "$TRAVIS_PULL_REQUEST" = "false" ]; then DAY="`date +%d`" else VERSION=$1 + BRANCH=$2 fi outputFolder='./_output' outputFolderMono='./_output_mono' @@ -40,10 +41,18 @@ if [ $runtime = "dotnet" ] ; then ./7za.exe a -ttar -so Radarr_OSX_$VERSION.tar ./_output_osx/* | ./7za.exe a -si Radarr_OSX_$VERSION.tar.gz ./7za.exe a -ttar -so Radarr_OSX_App_$VERSION.tar ./_output_osx_app/* | ./7za.exe a -si Radarr_OSX_App_$VERSION.tar.gz else -zip -r Radarr_Windows_$VERSION.zip Radarr_Windows_$VERSION/* -tar -zcvf Radarr_Mono_$VERSION.tar.gz Radarr_Mono_$VERSION #TODO update for tar.gz -tar -zcvf Radarr_OSX_$VERSION.tar.gz _output_osx -zip -r Radarr_OSX_APP_$VERSION.zip _output_osx_app/* + cp -r $outputFolder/ Radarr + zip -r Radarr.$BRANCH.$VERSION.windows.zip Radarr + rm -rf Radarr + cp -r $outputFolderMono/ Radarr + tar -zcvf Radarr.$BRANCH.$VERSION.linux.tar.gz Radarr + rm -rf Radarr + cp -r $outputFolderOsx/ Radarr + tar -zcvf Radarr.$BRANCH.$VERSION.osx.tar.gz Radarr + rm -rf Radarr + #TODO update for tar.gz + + zip -r Radarr.$BRANCH.$VERSION.osx-app.zip _output_osx_app/* fi # ftp -n ftp.leonardogalli.ch << END_SCRIPT # passive