|
|
|
@ -136,12 +136,13 @@ PackageLinux()
|
|
|
|
|
PackageMacOS()
|
|
|
|
|
{
|
|
|
|
|
local framework="$1"
|
|
|
|
|
local runtime="$2"
|
|
|
|
|
|
|
|
|
|
ProgressStart "Creating MacOS Package for $framework"
|
|
|
|
|
ProgressStart "Creating $runtime Package for $framework"
|
|
|
|
|
|
|
|
|
|
local folder=$artifactsFolder/macos/$framework/Sonarr
|
|
|
|
|
local folder=$artifactsFolder/$runtime/$framework/Sonarr
|
|
|
|
|
|
|
|
|
|
PackageFiles "$folder" "$framework" "osx-x64"
|
|
|
|
|
PackageFiles "$folder" "$framework" "$runtime"
|
|
|
|
|
|
|
|
|
|
echo "Removing Service helpers"
|
|
|
|
|
rm -f $folder/ServiceUninstall.*
|
|
|
|
@ -163,10 +164,11 @@ PackageMacOS()
|
|
|
|
|
PackageMacOSApp()
|
|
|
|
|
{
|
|
|
|
|
local framework="$1"
|
|
|
|
|
local runtime="$2"
|
|
|
|
|
|
|
|
|
|
ProgressStart "Creating macOS App Package for $framework"
|
|
|
|
|
ProgressStart "Creating $runtime App Package for $framework"
|
|
|
|
|
|
|
|
|
|
local folder=$artifactsFolder/macos-app/$framework
|
|
|
|
|
local folder=$artifactsFolder/$runtime-app/$framework
|
|
|
|
|
|
|
|
|
|
rm -rf $folder
|
|
|
|
|
mkdir -p $folder
|
|
|
|
@ -174,7 +176,7 @@ PackageMacOSApp()
|
|
|
|
|
mkdir -p $folder/Sonarr.app/Contents/MacOS
|
|
|
|
|
|
|
|
|
|
echo "Copying Binaries"
|
|
|
|
|
cp -r $artifactsFolder/macos/$framework/Sonarr/* $folder/Sonarr.app/Contents/MacOS
|
|
|
|
|
cp -r $artifactsFolder/$runtime/$framework/Sonarr/* $folder/Sonarr.app/Contents/MacOS
|
|
|
|
|
|
|
|
|
|
echo "Removing Update Folder"
|
|
|
|
|
rm -r $folder/Sonarr.app/Contents/MacOS/Sonarr.Update
|
|
|
|
@ -221,8 +223,8 @@ Package()
|
|
|
|
|
PackageWindows "$framework" "$runtime"
|
|
|
|
|
;;
|
|
|
|
|
osx)
|
|
|
|
|
PackageMacOS "$framework"
|
|
|
|
|
PackageMacOSApp "$framework"
|
|
|
|
|
PackageMacOS "$framework" "$runtime"
|
|
|
|
|
PackageMacOSApp "$framework" "$runtime"
|
|
|
|
|
;;
|
|
|
|
|
esac
|
|
|
|
|
}
|
|
|
|
@ -366,6 +368,7 @@ then
|
|
|
|
|
Package "net6.0" "linux-musl-arm64"
|
|
|
|
|
Package "net6.0" "linux-arm"
|
|
|
|
|
Package "net6.0" "osx-x64"
|
|
|
|
|
Package "net6.0" "osx-arm64"
|
|
|
|
|
if [ "$ENABLE_BSD" = "YES" ];
|
|
|
|
|
then
|
|
|
|
|
Package "net6.0" "freebsd-x64"
|
|
|
|
|