Skip to content

Commit

Permalink
Create new chromiumembeddedframework.runtime.resources package
Browse files Browse the repository at this point in the history
- Contains locales

Issue #93
  • Loading branch information
amaitland committed Feb 4, 2024
1 parent a4a5dd1 commit 0b04876
Show file tree
Hide file tree
Showing 4 changed files with 39 additions and 16 deletions.
10 changes: 1 addition & 9 deletions NuGet/chromiumembeddedframework.runtime.nuspec
Original file line number Diff line number Diff line change
Expand Up @@ -19,19 +19,11 @@
<description>Chromium Embedded Framework (CEF) Release Distribution
NOTE: This package is maintained on behalf of the CEF authors by the CefSharp project at http://github.com/cefsharp/cef-binary</description>
<tags>chrome chromium native embedded browser CEF nativepackage</tags>
<copyright>Copyright © 2008-2021</copyright>
<copyright>Copyright © 2008-2024</copyright>
</metadata>
<files>
<!-- Architecture-specific files folder hierarchy lost (native subfolders) -->
<!-- https://github.com/NuGet/Home/issues/7698#issuecomment-455368655 -->
<!-- We have to copy swiftshader and locales via manually -->
<file src="..\cef_binary_3.y.z_windows32\Resources\locales\*.pak" target="CEF\win-x86\locales"/>
<file src="..\cef_binary_3.y.z_windows64\Resources\locales\*.pak" target="CEF\win-x64\locales"/>
<file src="..\cef_binary_3.y.z_windowsarm64\Resources\locales\*.pak" target="CEF\win-arm64\locales"/>
<file src="..\cef\LICENSE.txt" target="LICENSE.txt" />
<file src="chromiumembeddedframework.runtime.json" target="runtime.json" />
<file src="chromiumembeddedframework.runtime.props" target="build\" />
<file src="chromiumembeddedframework.runtime.props" target="buildTransitive\" />
<file src="cef128x128.png" target="images\" />
</files>
</package>
36 changes: 36 additions & 0 deletions NuGet/chromiumembeddedframework.runtime.resources.nuspec
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
<?xml version="1.0"?>
<package xmlns="http://schemas.microsoft.com/packaging/2010/07/nuspec.xsd">
<metadata minClientVersion="5.0.0">
<id>chromiumembeddedframework.runtime.resources</id>
<version>$version$</version>
<authors>The Chromium Embedded Framework Authors</authors>
<owners>The CefSharp Authors</owners>
<projectUrl>https://github.com/cefsharp/cef-binary</projectUrl>
<icon>images\cef128x128.png</icon>
<license type="file">LICENSE.txt</license>
<requireLicenseAcceptance>false</requireLicenseAcceptance>
<!--
TODO: Add repository link for CEF release branch and commit
https://docs.microsoft.com/en-us/nuget/reference/nuspec#repository
-->
<!--
<repository type="git" url="https://bitbucket.org/chromiumembedded/cef.git" branch="3945" commit="7ec49fabd56beae20e6b4c825c085231140c3b36" />
-->
<description>Chromium Embedded Framework (CEF) Release Distribution
NOTE: This package is maintained on behalf of the CEF authors by the CefSharp project at http://github.com/cefsharp/cef-binary</description>
<tags>chrome chromium native embedded browser CEF nativepackage</tags>
<copyright>Copyright © 2008-2024</copyright>
</metadata>
<files>
<!-- Architecture-specific files folder hierarchy lost (native subfolders) -->
<!-- https://github.com/NuGet/Home/issues/7698#issuecomment-455368655 -->
<!-- We have to copy locales manually -->
<file src="..\cef_binary_3.y.z_windows32\Resources\locales\*.pak" target="CEF\win-x86\locales"/>
<file src="..\cef_binary_3.y.z_windows64\Resources\locales\*.pak" target="CEF\win-x64\locales"/>
<file src="..\cef_binary_3.y.z_windowsarm64\Resources\locales\*.pak" target="CEF\win-arm64\locales"/>
<file src="..\cef\LICENSE.txt" target="LICENSE.txt" />
<file src="chromiumembeddedframework.runtime.resources.props" target="build\" />
<file src="chromiumembeddedframework.runtime.resources.props" target="buildTransitive\" />
<file src="cef128x128.png" target="images\" />
</files>
</package>
9 changes: 2 additions & 7 deletions build.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -251,13 +251,7 @@ function Msvs

if($null -eq $VSInstallPath -or !(Test-Path $VSInstallPath))
{
$VSInstallPath = & $global:VSwherePath -version $versionSearchStr -property installationPath -products 'Microsoft.VisualStudio.Product.BuildTools'
Write-Diagnostic "BuildTools $($VS_OFFICIAL_VER)InstallPath: $VSInstallPath"

if($null -eq $VSInstallPath -or !(Test-Path $VSInstallPath))
{
Die "Visual Studio $VS_OFFICIAL_VER was not found"
}
Die "Visual Studio $VS_OFFICIAL_VER was not found"
}

$VisualStudioVersion = "$VS_VER.0"
Expand Down Expand Up @@ -449,6 +443,7 @@ function Nupkg

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

# Build sdk
$Filename = Resolve-Path ".\nuget\cef.sdk.props"
Expand Down

0 comments on commit 0b04876

Please sign in to comment.