mirror of
https://github.com/Ombi-app/Ombi.git
synced 2025-07-16 02:02:55 -07:00
Added 32bit version of Ombi
This commit is contained in:
parent
55cddecb6c
commit
50801717da
2 changed files with 15 additions and 1 deletions
14
build.cake
14
build.cake
|
@ -42,6 +42,7 @@ var publishSettings = new DotNetCorePublishSettings
|
|||
|
||||
var artifactsFolder = buildDir + "/netcoreapp2.0/";
|
||||
var windowsArtifactsFolder = artifactsFolder + "win10-x64/published";
|
||||
var windows32BitArtifactsFolder = artifactsFolder + "win10-x32/published";
|
||||
var osxArtifactsFolder = artifactsFolder + "osx-x64/published";
|
||||
var linuxArtifactsFolder = artifactsFolder + "linux-x64/published";
|
||||
|
||||
|
@ -147,6 +148,7 @@ Task("Package")
|
|||
.Does(() =>
|
||||
{
|
||||
Zip(windowsArtifactsFolder +"/",artifactsFolder + "windows.zip");
|
||||
Zip(windows32BitArtifactsFolder +"/",artifactsFolder + "windows-32bit.zip");
|
||||
GZipCompress(osxArtifactsFolder, artifactsFolder + "osx.tar.gz");
|
||||
GZipCompress(linuxArtifactsFolder, artifactsFolder + "linux.tar.gz");
|
||||
});
|
||||
|
@ -155,6 +157,7 @@ Task("Publish")
|
|||
.IsDependentOn("Run-Unit-Tests")
|
||||
.IsDependentOn("PrePublish")
|
||||
.IsDependentOn("Publish-Windows")
|
||||
.IsDependentOn("Publish-Windows-32bit")
|
||||
.IsDependentOn("Publish-OSX").IsDependentOn("Publish-Linux")
|
||||
.IsDependentOn("Package");
|
||||
|
||||
|
@ -169,6 +172,17 @@ Task("Publish-Windows")
|
|||
DotNetCorePublish("./src/Ombi.Updater/Ombi.Updater.csproj", publishSettings);
|
||||
});
|
||||
|
||||
Task("Publish-Windows-32bit")
|
||||
.Does(() =>
|
||||
{
|
||||
publishSettings.Runtime = "win10-x32";
|
||||
publishSettings.OutputDirectory = Directory(buildDir) + Directory("netcoreapp2.0/win10-x32/published");
|
||||
|
||||
DotNetCorePublish("./src/Ombi/Ombi.csproj", publishSettings);
|
||||
CopyFile(buildDir + "/netcoreapp2.0/win10-x32/Swagger.xml", buildDir + "/netcoreapp2.0/win10-x32/published/Swagger.xml");
|
||||
DotNetCorePublish("./src/Ombi.Updater/Ombi.Updater.csproj", publishSettings);
|
||||
});
|
||||
|
||||
Task("Publish-OSX")
|
||||
.Does(() =>
|
||||
{
|
||||
|
|
|
@ -108,7 +108,7 @@ namespace Ombi.Schedule.Jobs.Ombi
|
|||
if (RuntimeInformation.IsOSPlatform(OSPlatform.Windows))
|
||||
{
|
||||
Logger.LogInformation(LoggingEvents.Updater, "We are Windows");
|
||||
download = updates.Downloads.FirstOrDefault(x => x.Name.Contains("windows", CompareOptions.IgnoreCase));
|
||||
download = updates.Downloads.FirstOrDefault(x => x.Name.Contains("windows.zip", CompareOptions.IgnoreCase));
|
||||
}
|
||||
else if (RuntimeInformation.IsOSPlatform(OSPlatform.OSX))
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue