Skip to content

Commit

Permalink
chore: add copy targets for Xamarin.Mac (#1033)
Browse files Browse the repository at this point in the history
  • Loading branch information
kblok authored Dec 4, 2020
1 parent cd15113 commit 5b0ad49
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/Common/PackageInfo.props
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<Project>
<PropertyGroup>
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
<AssemblyVersion>0.162.0</AssemblyVersion>
<AssemblyVersion>0.162.1</AssemblyVersion>
<PackageVersion>$(AssemblyVersion)</PackageVersion>
<DriverVersion>0.162.1</DriverVersion>
<ReleaseVersion>$(AssemblyVersion)</ReleaseVersion>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,13 @@
<Exec Condition="'$(PlatformTarget)' != 'x86' AND $([MSBuild]::IsOSPlatform('Windows'))" WorkingDirectory="$(MSBuildThisFileDirectory)\..\..\runtimes\win-x64$(NativeFolder)" Command="playwright-cli.exe install" />
<Exec Condition="'$(PlatformTarget)' == 'x86' AND $([MSBuild]::IsOSPlatform('Windows'))" WorkingDirectory="$(MSBuildThisFileDirectory)\..\..\runtimes\win-x89$(NativeFolder)" Command="playwright-cli.exe install" />
</Target>
<Target Name="CopyPlaywrightDriversToMonoBundle" AfterTargets="CopyFilesToOutputDirectory" Condition="$(TargetFrameworkIdentifier) == 'Xamarin.Mac'">
<Message Text="Copy drivers to MonoBundle" />
<CreateItem Include="$(MSBuildThisFileDirectory)\..\..\runtimes\osx\native\*.*">
<Output TaskParameter="Include" ItemName="PlaywrightDriverFiles" />
</CreateItem>
<Message Text="$(AppBundleDir)" />
<Message Text="@(PlaywrightDriverFiles)" />
<Copy SourceFiles="@(PlaywrightDriverFiles)" DestinationFolder="$(AppBundleDir)/Contents/MonoBundle/" />
</Target>
</Project>

0 comments on commit 5b0ad49

Please sign in to comment.