From c311e24f086fa68ae4fe6db23ed049185fd46d49 Mon Sep 17 00:00:00 2001 From: chylex <contact@chylex.com> Date: Tue, 15 May 2018 12:42:57 +0200 Subject: [PATCH] Make it easier to update devtools file after updating CEF --- Resources/PostCefUpdate.ps1 | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Resources/PostCefUpdate.ps1 b/Resources/PostCefUpdate.ps1 index be6c4159..c8c217e2 100644 --- a/Resources/PostCefUpdate.ps1 +++ b/Resources/PostCefUpdate.ps1 @@ -3,6 +3,11 @@ $ErrorActionPreference = "Stop" $MainProj = "..\TweetDuck.csproj" $BrowserProj = "..\subprocess\TweetDuck.Browser.csproj" +$Match = Select-String -Path $MainProj '<Import Project="packages\\cef\.redist\.x86\.(.*?)\\' +$Version = $Match.Matches[0].Groups[1].Value + +Copy-Item "..\packages\cef.redist.x86.${Version}\CEF\devtools_resources.pak" -Destination "..\bld\Resources\" -Force + $Match = Select-String -Path $MainProj '<Import Project="packages\\CefSharp\.Common\.(.*?)\\' $Version = $Match.Matches[0].Groups[1].Value