mirror of
https://github.com/chylex/TweetDuck.git
synced 2025-05-02 02:34:08 +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",
|
$propsFiles = "..\packages\CefSharp.Common.${sharpVersion}\build\CefSharp.Common.props",
|
||||||
"..\packages\CefSharp.WinForms.${sharpVersion}\build\CefSharp.WinForms.props"
|
"..\packages\CefSharp.WinForms.${sharpVersion}\build\CefSharp.WinForms.props"
|
||||||
|
|
||||||
|
$targetFiles = "..\packages\CefSharp.Common.${sharpVersion}\build\CefSharp.Common.targets"
|
||||||
|
|
||||||
# Greetings
|
# Greetings
|
||||||
|
|
||||||
$title = "CEF ${cefVersion}, CefSharp ${sharpVersion}"
|
$title = "CEF ${cefVersion}, CefSharp ${sharpVersion}"
|
||||||
@ -35,7 +37,7 @@ try{
|
|||||||
|
|
||||||
[IO.File]::WriteAllText($browserProj, $contents)
|
[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){
|
foreach($file in $propsFiles){
|
||||||
$contents = [IO.File]::ReadAllText($file)
|
$contents = [IO.File]::ReadAllText($file)
|
||||||
@ -44,6 +46,13 @@ try{
|
|||||||
[IO.File]::WriteAllText($file, $contents)
|
[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
|
# Finished
|
||||||
|
|
||||||
Write-Host ""
|
Write-Host ""
|
||||||
|
Loading…
Reference in New Issue
Block a user