Skip to content

Commit 9ac8b88

Browse files
authored
Nuget - Add repository to nuspec (#4763)
1 parent 65ed2cc commit 9ac8b88

9 files changed

+20
-9
lines changed

NuGet/CefSharp.Common.nuspec

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
<authors>The CefSharp Authors</authors>
77
<owners>The CefSharp Authors</owners>
88
<projectUrl>https://github.com/cefsharp/CefSharp</projectUrl>
9+
<repository type="git" url="https://github.com/cefsharp/CefSharp.git" branch="$Branch$" commit="$CommitSha$" />
910
<license type="file">LICENSE</license>
1011
<requireLicenseAcceptance>false</requireLicenseAcceptance>
1112
<description>The CefSharp Chromium-based browser component ('Core' and common 'Element' components, needed by both WPF and WinForms).</description>

NuGet/CefSharp.OffScreen.nuspec

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@
55
<version>$version$</version>
66
<authors>The CefSharp Authors</authors>
77
<owners>The CefSharp Authors</owners>
8-
<projectUrl>https://github.com/cefsharp/cefsharp</projectUrl>
8+
<projectUrl>https://github.com/cefsharp/CefSharp</projectUrl>
9+
<repository type="git" url="https://github.com/cefsharp/CefSharp.git" branch="$Branch$" commit="$CommitSha$" />
910
<license type="file">LICENSE</license>
1011
<requireLicenseAcceptance>false</requireLicenseAcceptance>
1112
<description>The CefSharp Chromium-based browser component (OffScreen control).</description>

NuGet/CefSharp.WinForms.nuspec

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@
55
<version>$version$</version>
66
<authors>The CefSharp Authors</authors>
77
<owners>The CefSharp Authors</owners>
8-
<projectUrl>https://github.com/cefsharp/cefsharp</projectUrl>
8+
<projectUrl>https://github.com/cefsharp/CefSharp</projectUrl>
9+
<repository type="git" url="https://github.com/cefsharp/CefSharp.git" branch="$Branch$" commit="$CommitSha$" />
910
<license type="file">LICENSE</license>
1011
<requireLicenseAcceptance>false</requireLicenseAcceptance>
1112
<description>The CefSharp Chromium-based browser component (WinForms control).</description>

NuGet/CefSharp.Wpf.nuspec

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@
55
<version>$version$</version>
66
<authors>The CefSharp Authors</authors>
77
<owners>The CefSharp Authors</owners>
8-
<projectUrl>https://github.com/cefsharp/cefsharp</projectUrl>
8+
<projectUrl>https://github.com/cefsharp/CefSharp</projectUrl>
9+
<repository type="git" url="https://github.com/cefsharp/CefSharp.git" branch="$Branch$" commit="$CommitSha$" />
910
<license type="file">LICENSE</license>
1011
<requireLicenseAcceptance>false</requireLicenseAcceptance>
1112
<description>The CefSharp Chromium-based browser component (WPF control).</description>

NuGet/PackageReference/CefSharp.Common.NETCore.nuspec

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
<authors>The CefSharp Authors</authors>
77
<owners>The CefSharp Authors</owners>
88
<projectUrl>https://github.com/cefsharp/CefSharp</projectUrl>
9+
<repository type="git" url="https://github.com/cefsharp/CefSharp.git" branch="$Branch$" commit="$CommitSha$" />
910
<license type="file">LICENSE</license>
1011
<requireLicenseAcceptance>false</requireLicenseAcceptance>
1112
<description>The CefSharp Chromium-based browser component ('Core' and common 'Element' components, needed by both WPF, WinForms and OffScreen implementations).</description>

NuGet/PackageReference/CefSharp.OffScreen.NETCore.nuspec

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@
55
<version>$version$</version>
66
<authors>The CefSharp Authors</authors>
77
<owners>The CefSharp Authors</owners>
8-
<projectUrl>https://github.com/cefsharp/cefsharp</projectUrl>
8+
<projectUrl>https://github.com/cefsharp/CefSharp</projectUrl>
9+
<repository type="git" url="https://github.com/cefsharp/CefSharp.git" branch="$Branch$" commit="$CommitSha$" />
910
<license type="file">LICENSE</license>
1011
<requireLicenseAcceptance>false</requireLicenseAcceptance>
1112
<description>The CefSharp Chromium-based browser component (OffScreen control).</description>

NuGet/PackageReference/CefSharp.WinForms.NETCore.nuspec

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@
55
<version>$version$</version>
66
<authors>The CefSharp Authors</authors>
77
<owners>The CefSharp Authors</owners>
8-
<projectUrl>https://github.com/cefsharp/cefsharp</projectUrl>
8+
<projectUrl>https://github.com/cefsharp/CefSharp</projectUrl>
9+
<repository type="git" url="https://github.com/cefsharp/CefSharp.git" branch="$Branch$" commit="$CommitSha$" />
910
<license type="file">LICENSE</license>
1011
<requireLicenseAcceptance>false</requireLicenseAcceptance>
1112
<description>The CefSharp Chromium-based browser component (WinForms control).</description>

NuGet/PackageReference/CefSharp.Wpf.NETCore.nuspec

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@
55
<version>$version$</version>
66
<authors>The CefSharp Authors</authors>
77
<owners>The CefSharp Authors</owners>
8-
<projectUrl>https://github.com/cefsharp/cefsharp</projectUrl>
8+
<projectUrl>https://github.com/cefsharp/CefSharp</projectUrl>
9+
<repository type="git" url="https://github.com/cefsharp/CefSharp.git" branch="$Branch$" commit="$CommitSha$" />
910
<license type="file">LICENSE</license>
1011
<requireLicenseAcceptance>false</requireLicenseAcceptance>
1112
<description>The CefSharp Chromium-based browser component (WPF control).</description>

build.ps1

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -269,7 +269,10 @@ function Nupkg
269269
return
270270
}
271271

272-
Write-Diagnostic "Building nuget package"
272+
$gitBranch = git rev-parse --abbrev-ref HEAD
273+
$gitCommit = git rev-parse HEAD
274+
275+
Write-Diagnostic "Building nuget package for $gitCommit on $gitBranch"
273276

274277
# Build packages
275278
foreach($file in $Files)
@@ -311,11 +314,11 @@ function Nupkg
311314
#Only show package analysis for newer packages
312315
if($IsNetCoreBuild)
313316
{
314-
. $nuget pack $filePath -Version $Version -OutputDirectory $NugetPackagePath -Properties "RedistVersion=$RedistVersion;"
317+
. $nuget pack $filePath -Version $Version -OutputDirectory $NugetPackagePath -Properties "RedistVersion=$RedistVersion;Branch=$gitBranch;CommitSha=$gitCommit;"
315318
}
316319
else
317320
{
318-
. $nuget pack $filePath -NoPackageAnalysis -Version $Version -OutputDirectory $NugetPackagePath -Properties "RedistVersion=$RedistVersion;"
321+
. $nuget pack $filePath -NoPackageAnalysis -Version $Version -OutputDirectory $NugetPackagePath -Properties "RedistVersion=$RedistVersion;Branch=$gitBranch;CommitSha=$gitCommit;"
319322
}
320323
}
321324
finally

0 commit comments

Comments
 (0)