Allow build script to produce packages on non-windows OSes

[common]
This commit is contained in:
ta264 2022-04-28 21:23:02 +01:00
parent dc45a2d0d6
commit 45ab2b2409
1 changed files with 4 additions and 1 deletions

View File

@ -206,7 +206,10 @@ PackageWindows()
local folder=$artifactsFolder/$runtime/$framework/Lidarr
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 Lidarr.Mono"
rm -f $folder/Lidarr.Mono.*