mirror of
https://github.com/Ombi-app/Ombi.git
synced 2025-08-14 18:47:15 -07:00
Feature arm (#1909)
* Linux ARM Support for Devices like the Raspberry Pi 3 (#1808) * Linux ARM Support for devices like the Raspberry Pi 3. * Swagger xml to linux-arm. * Moved around the sqlite3 assembly reference * Updated the cake script to cater for branch names with unserscores * Update build.cake * Push the arm build !wip
This commit is contained in:
parent
0fc2037ae3
commit
7b2037c883
5 changed files with 821 additions and 1 deletions
28
build.cake
28
build.cake
|
@ -45,6 +45,7 @@ var windowsArtifactsFolder = artifactsFolder + "win10-x64/published";
|
|||
var windows32BitArtifactsFolder = artifactsFolder + "win10-x32/published";
|
||||
var osxArtifactsFolder = artifactsFolder + "osx-x64/published";
|
||||
var linuxArtifactsFolder = artifactsFolder + "linux-x64/published";
|
||||
var linuxArmArtifactsFolder = artifactsFolder + "linux-arm/published";
|
||||
|
||||
|
||||
|
||||
|
@ -89,6 +90,10 @@ Task("SetVersionInfo")
|
|||
buildVersion = AppVeyor.Environment.Build.Version;
|
||||
}
|
||||
|
||||
if(versionInfo.BranchName.Contains("_"))
|
||||
{
|
||||
versionInfo.BranchName = versionInfo.BranchName.Replace("_","-");
|
||||
}
|
||||
var fullVer = buildVersion + "-" + versionInfo.BranchName;
|
||||
|
||||
if(versionInfo.PreReleaseTag.Contains("PullRequest"))
|
||||
|
@ -155,12 +160,15 @@ Task("Package")
|
|||
Zip(windows32BitArtifactsFolder +"/",artifactsFolder + "windows-32bit.zip");
|
||||
GZipCompress(osxArtifactsFolder, artifactsFolder + "osx.tar.gz");
|
||||
GZipCompress(linuxArtifactsFolder, artifactsFolder + "linux.tar.gz");
|
||||
GZipCompress(linuxArmArtifactsFolder, artifactsFolder + "linux-arm.tar.gz");
|
||||
});
|
||||
|
||||
Task("Publish")
|
||||
.IsDependentOn("PrePublish")
|
||||
.IsDependentOn("Publish-Windows")
|
||||
.IsDependentOn("Publish-OSX").IsDependentOn("Publish-Linux")
|
||||
.IsDependentOn("Publish-OSX")
|
||||
.IsDependentOn("Publish-Linux")
|
||||
.IsDependentOn("Publish-Linux-ARM")
|
||||
.IsDependentOn("Package");
|
||||
|
||||
Task("Publish-Windows")
|
||||
|
@ -207,6 +215,24 @@ Task("Publish-Linux")
|
|||
DotNetCorePublish("./src/Ombi.Updater/Ombi.Updater.csproj", publishSettings);
|
||||
});
|
||||
|
||||
Task("Publish-Linux-ARM")
|
||||
.Does(() =>
|
||||
{
|
||||
publishSettings.Runtime = "linux-arm";
|
||||
publishSettings.OutputDirectory = Directory(buildDir) + Directory("netcoreapp2.0/linux-arm/published");
|
||||
|
||||
DotNetCorePublish("./src/Ombi/Ombi.csproj", publishSettings);
|
||||
CopyFile(
|
||||
buildDir + "/netcoreapp2.0/linux-arm/Swagger.xml",
|
||||
buildDir + "/netcoreapp2.0/linux-arm/published/Swagger.xml");
|
||||
DotNetCorePublish("./src/Ombi.Updater/Ombi.Updater.csproj", publishSettings);
|
||||
});
|
||||
|
||||
Task("Run-Unit-Tests")
|
||||
.Does(() =>
|
||||
{
|
||||
DotNetCoreBuild(csProj, buildSettings);
|
||||
});
|
||||
//////////////////////////////////////////////////////////////////////
|
||||
// TASK TARGETS
|
||||
//////////////////////////////////////////////////////////////////////
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue