Skip to content

Commit

Permalink
Added Arm64 binaries to the setup .MSI with platform condition
Browse files Browse the repository at this point in the history
  • Loading branch information
gerardog committed Nov 29, 2022
1 parent 9b3d0d1 commit d6ba33c
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions src/gsudo.Installer/Product.wxs
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@
<ComponentRef Id="GSudoPath" />
<ComponentRef Id="GSudoExe" />
<ComponentRef Id="GSudoExeX86" />
<ComponentRef Id="GSudoExeARM64" />
<ComponentRef Id="GSudoBash" />
<ComponentRef Id="GSudoPowerShell" />
</ComponentGroup>
Expand All @@ -67,11 +68,18 @@

<Component Id="GSudoExe" Guid="bec137e1-06e2-4efb-aea9-30306cc01c87">
<Condition>
<![CDATA[VersionNT64]]>
<![CDATA[(VersionNT64) AND NOT(%PROCESSOR_ARCHITECTURE~="ARM64")]]>
</Condition>
<File Id="GSudoExe" KeyPath="yes" Name="gsudo.exe" Source="..\..\artifacts\x64\gsudo.exe"/>
</Component>


<Component Id="GSudoExeARM64" Guid="bec137e1-06e2-4efb-aea9-30306cc01c85">
<Condition>
<![CDATA[(VersionNT64) AND (%PROCESSOR_ARCHITECTURE~="ARM64")]]>
</Condition>
<File Id="GSudoExeARM64" KeyPath="yes" Name="gsudo.exe" Source="..\..\artifacts\arm64\gsudo.exe"/>
</Component>

<Component Id="GSudoExeX86" Guid="bec137e1-06e2-4efb-aea9-30306cc01c86">
<Condition>
<![CDATA[NOT(VersionNT64)]]>
Expand Down

0 comments on commit d6ba33c

Please sign in to comment.