mirror of
https://github.com/chylex/TweetDuck.git
synced 2025-04-09 06:15:49 +02:00
Update PostCefUpdate script to remove x64/AnyCPU from .targets file
This commit is contained in:
parent
a87bc4609e
commit
b25fae54fe
@ -13,6 +13,8 @@ try{
|
||||
$propsFiles = "..\packages\CefSharp.Common.${sharpVersion}\build\CefSharp.Common.props",
|
||||
"..\packages\CefSharp.WinForms.${sharpVersion}\build\CefSharp.WinForms.props"
|
||||
|
||||
$targetFiles = "..\packages\CefSharp.Common.${sharpVersion}\build\CefSharp.Common.targets"
|
||||
|
||||
# Greetings
|
||||
|
||||
$title = "CEF ${cefVersion}, CefSharp ${sharpVersion}"
|
||||
@ -35,7 +37,7 @@ try{
|
||||
|
||||
[IO.File]::WriteAllText($browserProj, $contents)
|
||||
|
||||
Write-Host "Removing x64 and AnyCPU from CefSharp props..."
|
||||
Write-Host "Removing x64 and AnyCPU from package files..."
|
||||
|
||||
foreach($file in $propsFiles){
|
||||
$contents = [IO.File]::ReadAllText($file)
|
||||
@ -44,6 +46,13 @@ try{
|
||||
[IO.File]::WriteAllText($file, $contents)
|
||||
}
|
||||
|
||||
foreach($file in $targetFiles){
|
||||
$contents = [IO.File]::ReadAllText($file)
|
||||
$contents = $contents -Replace '(?<=<ItemGroup Condition=")(''\$\(Platform\)'' == ''(AnyCPU|x64)'')(?=">)', 'false'
|
||||
|
||||
[IO.File]::WriteAllText($file, $contents)
|
||||
}
|
||||
|
||||
# Finished
|
||||
|
||||
Write-Host ""
|
||||
|
Loading…
Reference in New Issue
Block a user