Publish script fix.

This commit is contained in:
Jared Goodwin 2019-06-20 15:34:55 -07:00
parent 3d3ed92bd9
commit e4a8d087fa
2 changed files with 5 additions and 3 deletions

View File

@ -250,8 +250,10 @@
</PropertyGroup>
<PropertyGroup>
<PostBuildEvent>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\"
)
)</PostBuildEvent>
</PropertyGroup>
</Project>

View File

@ -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