Skip to content

Commit 0b04876

Browse files
committed
Create new chromiumembeddedframework.runtime.resources package
- Contains locales Issue #93
1 parent a4a5dd1 commit 0b04876

File tree

4 files changed

+39
-16
lines changed

4 files changed

+39
-16
lines changed

NuGet/chromiumembeddedframework.runtime.nuspec

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -19,19 +19,11 @@
1919
<description>Chromium Embedded Framework (CEF) Release Distribution
2020
NOTE: This package is maintained on behalf of the CEF authors by the CefSharp project at http://github.com/cefsharp/cef-binary</description>
2121
<tags>chrome chromium native embedded browser CEF nativepackage</tags>
22-
<copyright>Copyright © 2008-2021</copyright>
22+
<copyright>Copyright © 2008-2024</copyright>
2323
</metadata>
2424
<files>
25-
<!-- Architecture-specific files folder hierarchy lost (native subfolders) -->
26-
<!-- https://github.com/NuGet/Home/issues/7698#issuecomment-455368655 -->
27-
<!-- We have to copy swiftshader and locales via manually -->
28-
<file src="..\cef_binary_3.y.z_windows32\Resources\locales\*.pak" target="CEF\win-x86\locales"/>
29-
<file src="..\cef_binary_3.y.z_windows64\Resources\locales\*.pak" target="CEF\win-x64\locales"/>
30-
<file src="..\cef_binary_3.y.z_windowsarm64\Resources\locales\*.pak" target="CEF\win-arm64\locales"/>
3125
<file src="..\cef\LICENSE.txt" target="LICENSE.txt" />
3226
<file src="chromiumembeddedframework.runtime.json" target="runtime.json" />
33-
<file src="chromiumembeddedframework.runtime.props" target="build\" />
34-
<file src="chromiumembeddedframework.runtime.props" target="buildTransitive\" />
3527
<file src="cef128x128.png" target="images\" />
3628
</files>
3729
</package>
Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
<?xml version="1.0"?>
2+
<package xmlns="http://schemas.microsoft.com/packaging/2010/07/nuspec.xsd">
3+
<metadata minClientVersion="5.0.0">
4+
<id>chromiumembeddedframework.runtime.resources</id>
5+
<version>$version$</version>
6+
<authors>The Chromium Embedded Framework Authors</authors>
7+
<owners>The CefSharp Authors</owners>
8+
<projectUrl>https://github.com/cefsharp/cef-binary</projectUrl>
9+
<icon>images\cef128x128.png</icon>
10+
<license type="file">LICENSE.txt</license>
11+
<requireLicenseAcceptance>false</requireLicenseAcceptance>
12+
<!--
13+
TODO: Add repository link for CEF release branch and commit
14+
https://docs.microsoft.com/en-us/nuget/reference/nuspec#repository
15+
-->
16+
<!--
17+
<repository type="git" url="https://bitbucket.org/chromiumembedded/cef.git" branch="3945" commit="7ec49fabd56beae20e6b4c825c085231140c3b36" />
18+
-->
19+
<description>Chromium Embedded Framework (CEF) Release Distribution
20+
NOTE: This package is maintained on behalf of the CEF authors by the CefSharp project at http://github.com/cefsharp/cef-binary</description>
21+
<tags>chrome chromium native embedded browser CEF nativepackage</tags>
22+
<copyright>Copyright © 2008-2024</copyright>
23+
</metadata>
24+
<files>
25+
<!-- Architecture-specific files folder hierarchy lost (native subfolders) -->
26+
<!-- https://github.com/NuGet/Home/issues/7698#issuecomment-455368655 -->
27+
<!-- We have to copy locales manually -->
28+
<file src="..\cef_binary_3.y.z_windows32\Resources\locales\*.pak" target="CEF\win-x86\locales"/>
29+
<file src="..\cef_binary_3.y.z_windows64\Resources\locales\*.pak" target="CEF\win-x64\locales"/>
30+
<file src="..\cef_binary_3.y.z_windowsarm64\Resources\locales\*.pak" target="CEF\win-arm64\locales"/>
31+
<file src="..\cef\LICENSE.txt" target="LICENSE.txt" />
32+
<file src="chromiumembeddedframework.runtime.resources.props" target="build\" />
33+
<file src="chromiumembeddedframework.runtime.resources.props" target="buildTransitive\" />
34+
<file src="cef128x128.png" target="images\" />
35+
</files>
36+
</package>

build.ps1

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -251,13 +251,7 @@ function Msvs
251251

252252
if($null -eq $VSInstallPath -or !(Test-Path $VSInstallPath))
253253
{
254-
$VSInstallPath = & $global:VSwherePath -version $versionSearchStr -property installationPath -products 'Microsoft.VisualStudio.Product.BuildTools'
255-
Write-Diagnostic "BuildTools $($VS_OFFICIAL_VER)InstallPath: $VSInstallPath"
256-
257-
if($null -eq $VSInstallPath -or !(Test-Path $VSInstallPath))
258-
{
259-
Die "Visual Studio $VS_OFFICIAL_VER was not found"
260-
}
254+
Die "Visual Studio $VS_OFFICIAL_VER was not found"
261255
}
262256

263257
$VisualStudioVersion = "$VS_VER.0"
@@ -449,6 +443,7 @@ function Nupkg
449443

450444
# Meta Package
451445
. $Nuget pack nuget\chromiumembeddedframework.runtime.nuspec -NoPackageAnalysis -Version $CefPackageVersion -Properties 'Configuration=Release;' -OutputDirectory nuget
446+
. $Nuget pack nuget\chromiumembeddedframework.runtime.resources.nuspec -NoPackageAnalysis -Version $CefPackageVersion -Properties 'Configuration=Release;' -OutputDirectory nuget
452447

453448
# Build sdk
454449
$Filename = Resolve-Path ".\nuget\cef.sdk.props"

0 commit comments

Comments
 (0)