mirror of
https://github.com/zoriya/octokit.net.git
synced 2026-06-01 02:18:44 +00:00
Create the Octokit.Reactive NuGet package and set dependencies to Octokit as discussed in #116
This commit is contained in:
+10
-12
@@ -1,21 +1,19 @@
|
||||
<?xml version="1.0"?>
|
||||
<package >
|
||||
<metadata>
|
||||
<id>Octokit.Reactive</id>
|
||||
<version>0.1.1</version>
|
||||
<authors>GitHub</authors>
|
||||
<owners>GitHub</owners>
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<package xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
|
||||
<metadata xmlns="http://schemas.microsoft.com/packaging/2010/07/nuspec.xsd">
|
||||
<id>@project@</id>
|
||||
<version>@build.number@</version>
|
||||
<authors>@authors@</authors>
|
||||
<owners>@authors@</owners>
|
||||
<summary>@summary@</summary>
|
||||
<licenseUrl>https://github.com/octokit/octokit.net/blob/master/LICENSE.txt</licenseUrl>
|
||||
<projectUrl>https://github.com/octokit/octokit.net</projectUrl>
|
||||
<iconUrl>https://f.cloud.github.com/assets/19977/1441274/160fba8c-41a9-11e3-831d-61d88fa886f4.png</iconUrl>
|
||||
<requireLicenseAcceptance>false</requireLicenseAcceptance>
|
||||
<description>An IObservable based GitHub API client library for .NET using Reactive Extensions</description>
|
||||
<description>@description@</description>
|
||||
<releaseNotes>Initial release.</releaseNotes>
|
||||
<copyright>Copyright GitHub 2013</copyright>
|
||||
<tags>GitHub API Octokit</tags>
|
||||
<dependencies>
|
||||
<dependency id="Octokit" version="0.1.0" />
|
||||
<dependency id="Rx-Main" version="2.1.30214" />
|
||||
</dependencies>
|
||||
@dependencies@
|
||||
</metadata>
|
||||
</package>
|
||||
@@ -6,11 +6,17 @@ let authors = ["GitHub"]
|
||||
let projectDescription = "An async-based GitHub API client library for .NET"
|
||||
let projectSummary = projectDescription // TODO: write a summary
|
||||
|
||||
let reactiveProjectName = "Octokit.Reactive"
|
||||
let reactiveProjectDescription = "An IObservable based GitHub API client library for .NET using Reactive Extensions"
|
||||
let reactiveProjectSummary = reactiveProjectDescription // TODO: write a summary
|
||||
|
||||
let buildDir = "./Octokit/bin"
|
||||
let reactiveBuildDir = "./Octokit.Reactive/bin"
|
||||
let packageDir = "./packaging/octokit/"
|
||||
let reactivePackageDir = "./packaging/octokit/reactive"
|
||||
|
||||
let version = "0.1.1" // TODO: Retrieve this from release notes or CI
|
||||
|
||||
Target "Clean" (fun _ ->
|
||||
CleanDirs [buildDir; reactiveBuildDir; packageDir; reactivePackageDir]
|
||||
)
|
||||
@@ -37,6 +43,7 @@ Target "CreateOctokitPackage" (fun _ ->
|
||||
OutputPath = "./packaging/"
|
||||
Summary = projectSummary
|
||||
WorkingDir = packageDir
|
||||
Version = version
|
||||
AccessKey = getBuildParamOrDefault "nugetkey" ""
|
||||
Publish = hasBuildParam "nugetkey" }) "octokit.nuspec"
|
||||
)
|
||||
@@ -47,6 +54,21 @@ Target "CreateOctokitReactivePackage" (fun _ ->
|
||||
|
||||
CopyFile net45Dir (reactiveBuildDir @@ "Release/Net40/Octokit.Reactive.dll") // TODO: this a bug in the sln?!
|
||||
CopyFiles packageDir ["LICENSE.txt"; "README.md"]
|
||||
|
||||
NuGet (fun p ->
|
||||
{p with
|
||||
Authors = authors
|
||||
Project = reactiveProjectName
|
||||
Description = reactiveProjectDescription
|
||||
OutputPath = "./packaging/"
|
||||
Summary = reactiveProjectSummary
|
||||
WorkingDir = reactivePackageDir
|
||||
Version = version
|
||||
Dependencies =
|
||||
["Octokit", RequireExactly (NormalizeVersion version)
|
||||
"Rx-Main", RequireExactly "2.1.30214"] // TODO: Retrieve this from the referenced package
|
||||
AccessKey = getBuildParamOrDefault "nugetkey" ""
|
||||
Publish = hasBuildParam "nugetkey" }) "Octokit.Reactive.nuspec"
|
||||
)
|
||||
|
||||
Target "Default" DoNothing
|
||||
|
||||
Reference in New Issue
Block a user