1
0
Fork 0
mirror of https://github.com/Radarr/Radarr synced 2024-12-23 08:22:39 +00:00

Fixed: OSX Packages not getting correct version info

Fixes #3274
This commit is contained in:
Leonardo Galli 2018-12-30 13:29:44 +01:00
parent 44b1252ecc
commit 47b481e797

View file

@ -1,6 +1,7 @@
#addin nuget:?package=Cake.Npm #addin nuget:?package=Cake.Npm
#addin nuget:?package=SharpZipLib #addin nuget:?package=SharpZipLib
#addin nuget:?package=Cake.Compression #addin nuget:?package=Cake.Compression
#addin "Cake.FileHelpers"
// Build variables // Build variables
var outputFolder = "./_output"; var outputFolder = "./_output";
@ -178,7 +179,7 @@ Task("PackageOsx").Does(() => {
CopyFile("./osx/Radarr", outputFolderOsx + "/Radarr"); CopyFile("./osx/Radarr", outputFolderOsx + "/Radarr");
}); });
Task("PackageOsxApp").Does(() => { Task("PackageOsxApp").Does((ctx) => {
// Start osx app package // Start osx app package
if (DirectoryExists(outputFolderOsxApp)) { if (DirectoryExists(outputFolderOsxApp)) {
DeleteDirectory(outputFolderOsxApp, true); DeleteDirectory(outputFolderOsxApp, true);
@ -189,6 +190,9 @@ Task("PackageOsxApp").Does(() => {
// Copy osx package files // Copy osx package files
CopyDirectory("./osx/Radarr.app", outputFolderOsxApp + "/Radarr.app"); CopyDirectory("./osx/Radarr.app", outputFolderOsxApp + "/Radarr.app");
CopyDirectory(outputFolderOsx, outputFolderOsxApp + "/Radarr.app/Contents/MacOS"); CopyDirectory(outputFolderOsx, outputFolderOsxApp + "/Radarr.app/Contents/MacOS");
// Edit version of osx app
ctx.ReplaceTextInFiles(outputFolderOsxApp + "/Radarr.app/Contents/Info.plist", "2.0", ctx.EnvironmentVariable("APPVEYOR_BUILD_VERSION") ?? "unknown");
}); });
Task("PackageTests").Does(() => { Task("PackageTests").Does(() => {