mirror of
https://github.com/Radarr/Radarr.git
synced 2024-10-05 15:47:20 +02:00
Update package.sh, fixes #35
This commit is contained in:
parent
ee5a2ec289
commit
5be5709043
1
.gitignore
vendored
1
.gitignore
vendored
@ -130,6 +130,7 @@ output/*
|
|||||||
#Packages
|
#Packages
|
||||||
Radarr_*/
|
Radarr_*/
|
||||||
Radarr_*.zip
|
Radarr_*.zip
|
||||||
|
Radarr_*.gz
|
||||||
|
|
||||||
#OS X metadata files
|
#OS X metadata files
|
||||||
._*
|
._*
|
||||||
|
19
package.sh
19
package.sh
@ -4,6 +4,18 @@ if [ $# -eq 0 ]; then
|
|||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# Use mono or .net depending on OS
|
||||||
|
case "$(uname -s)" in
|
||||||
|
CYGWIN*|MINGW32*|MINGW64*|MSYS*)
|
||||||
|
# on windows, use dotnet
|
||||||
|
runtime="dotnet"
|
||||||
|
;;
|
||||||
|
*)
|
||||||
|
# otherwise use mono
|
||||||
|
runtime="mono"
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
|
||||||
if [ "$TRAVIS_PULL_REQUEST" = "false" ]; then
|
if [ "$TRAVIS_PULL_REQUEST" = "false" ]; then
|
||||||
VERSION="`date +%H:%M:%S`"
|
VERSION="`date +%H:%M:%S`"
|
||||||
YEAR="`date +%Y`"
|
YEAR="`date +%Y`"
|
||||||
@ -26,10 +38,15 @@ cp -r $outputFolder/ Radarr_Windows_$VERSION
|
|||||||
cp -r $outputFolderMono/ Radarr_Mono_$VERSION
|
cp -r $outputFolderMono/ Radarr_Mono_$VERSION
|
||||||
cp -r $outputFolderOsxApp/ Radarr_OSX_$VERSION
|
cp -r $outputFolderOsxApp/ Radarr_OSX_$VERSION
|
||||||
|
|
||||||
|
if [ $runtime = "dotnet" ] ; then
|
||||||
|
./7za.exe a Radarr_Windows_$VERSION.zip Radarr_Windows_$VERSION
|
||||||
|
./7za.exe a -ttar -so Radarr_Mono_$VERSION.tar Radarr_Mono_$VERSION | ./7za.exe a -si Radarr_Mono_$VERSION.tar.gz
|
||||||
|
./7za.exe a -ttar -so Radarr_OSX_$VERSION.tar Radarr_OSX_$VERSION | ./7za.exe a -si Radarr_OSX_$VERSION.tar.gz
|
||||||
|
else
|
||||||
zip -r Radarr_Windows_$VERSION.zip Radarr_Windows_$VERSION >& /dev/null
|
zip -r Radarr_Windows_$VERSION.zip Radarr_Windows_$VERSION >& /dev/null
|
||||||
zip -r Radarr_Mono_$VERSION.zip Radarr_Mono_$VERSION >& /dev/null
|
zip -r Radarr_Mono_$VERSION.zip Radarr_Mono_$VERSION >& /dev/null
|
||||||
zip -r Radarr_OSX_$VERSION.zip Radarr_OSX_$VERSION >& /dev/null
|
zip -r Radarr_OSX_$VERSION.zip Radarr_OSX_$VERSION >& /dev/null
|
||||||
|
fi
|
||||||
ftp -n ftp.leonardogalli.ch << END_SCRIPT
|
ftp -n ftp.leonardogalli.ch << END_SCRIPT
|
||||||
passive
|
passive
|
||||||
quote USER $FTP_USER
|
quote USER $FTP_USER
|
||||||
|
Loading…
Reference in New Issue
Block a user