Allow build script to produce packages on non-windows OSes

(cherry picked from commit 45ab2b2409fd11c556c1374aec8d27aec898c4fc)
This commit is contained in:
ta264
2022-04-28 21:23:02 +01:00
committed by servarr
parent a1d4b3a0cf
commit dddcb89c5b

View File

@@ -198,7 +198,10 @@ PackageWindows()
local folder=$artifactsFolder/$runtime/$framework/Readarr
PackageFiles "$folder" "$framework" "$runtime"
cp -r $outputFolder/$framework-windows/$runtime/publish/* $folder
if [ "$os" = "windows" ]; then
cp -r $outputFolder/$framework-windows/$runtime/publish/* $folder
fi
echo "Removing Readarr.Mono"
rm -f $folder/Readarr.Mono.*