Fix MonoCrossAOT.UnixFilePermissions for wasm (#54693)
authorSteve Pfister <steveisok@users.noreply.github.com>
Thu, 24 Jun 2021 23:19:11 +0000 (19:19 -0400)
committerGitHub <noreply@github.com>
Thu, 24 Jun 2021 23:19:11 +0000 (18:19 -0500)
commit20ff641973d5d66f6eda52bccaf3b86786d11f4e
tree53e6ac1996268af1823eb084795e5c205e5444a3
parent5306472296c5c174be9379dac3920880de64c4a0
Fix MonoCrossAOT.UnixFilePermissions for wasm (#54693)

* Fix MonoCrossAOT.UnixFilePermissions for wasm

We introduced Microsoft.NETCore.App.MonoCrossAOT.UnixFilePermissions.xml in https://github.com/dotnet/runtime/pull/54501 to make sure the right permissions are set when installing AOT compiler workload packs.  We hardcoded the list to include mono-aot-cross, llc, and opt.  However, in wasm's case they only have mono-aot-cross.

This change makes the xml file a template and only includes mono-aot-cross for browser and all three for the other configurations.

Fixes https://github.com/dotnet/runtime/issues/54612

* Use property instead of item for the file nodes

* Ankit suggestion

Co-authored-by: Steve Pfister <steve.pfister@microsoft.com>
src/installer/pkg/sfx/Microsoft.NETCore.App/Microsoft.NETCore.App.MonoCrossAOT.UnixFilePermissions.xml [deleted file]
src/installer/pkg/sfx/Microsoft.NETCore.App/Microsoft.NETCore.App.MonoCrossAOT.UnixFilePermissions.xml.in [new file with mode: 0644]
src/installer/pkg/sfx/Microsoft.NETCore.App/Microsoft.NETCore.App.MonoCrossAOT.sfxproj