diff --git a/ScreenCast.Win/ScreenCast.Win.csproj b/ScreenCast.Win/ScreenCast.Win.csproj index 8d5ba379..2d8b8185 100644 --- a/ScreenCast.Win/ScreenCast.Win.csproj +++ b/ScreenCast.Win/ScreenCast.Win.csproj @@ -250,8 +250,10 @@ if $(ConfigurationName) == Debug ( - md "$(SolutionDir)Agent\bin\x64\Debug\netcoreapp2.2\ScreenCast\" - copy /y "$(TargetDir)\*" "$(SolutionDir)Agent\bin\x64\Debug\netcoreapp2.2\ScreenCast\" + if $(PlatformName) == AnyCPU ( + md "$(SolutionDir)Agent\bin\Debug\netcoreapp2.2\ScreenCast\" + copy /y "$(TargetDir)\*" "$(SolutionDir)Agent\bin\Debug\netcoreapp2.2\ScreenCast\" + ) ) \ No newline at end of file diff --git a/Utilities/Publish.ps1 b/Utilities/Publish.ps1 index f18d3523..f0411f3f 100644 --- a/Utilities/Publish.ps1 +++ b/Utilities/Publish.ps1 @@ -153,7 +153,7 @@ Copy-Item -Path ".\Desktop.Win.Installer\Release\Remotely_Desktop_Installer.msi" # 32-bit desktop app installer. $Vdproj = $Vdproj.Replace('"TargetPlatform" = "3:1"', '"TargetPlatform" = "3:0"') Set-Content -Value $Vdproj -Path $VdprojPath -NoNewline -&"$DevEnv" "$Root\Desktop.Win.Installer\Desktop.Win.Installer.vdproj" /build "Release|x64" +&"$DevEnv" "$Root\Desktop.Win.Installer\Desktop.Win.Installer.vdproj" /build "Release|x86" Copy-Item -Path ".\Desktop.Win.Installer\Release\Remotely_Desktop_Installer.msi" -Destination ".\Server\wwwroot\Downloads\Remotely_Desktop_Installer_x86.msi" -Force