Skip to content

Commit e242ac3

Browse files
committed
Add android SDK into the installer bundle
1 parent ec6c2ea commit e242ac3

File tree

4 files changed

+17
-0
lines changed

4 files changed

+17
-0
lines changed

platforms/Windows/bundle/installer.wixproj

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
$(DefineConstants);
99
INCLUDE_X86_SDK=$(INCLUDE_X86_SDK);
1010
INCLUDE_ARM64_SDK=$(INCLUDE_ARM64_SDK);
11+
INCLUDE_ANDROID_SDKS=$(INCLUDE_ANDROID_SDKS);
1112
</DefineConstants>
1213
</PropertyGroup>
1314

@@ -31,4 +32,8 @@
3132
<ItemGroup Condition=" '$(INCLUDE_ARM64_SDK)' != '' ">
3233
<ProjectReference Include="..\sdk\sdk.wixproj" Properties="ProductArchitecture=arm64;Platform=x86" BindName="sdk_arm64" />
3334
</ItemGroup>
35+
36+
<ItemGroup Condition=" '$(INCLUDE_ANDROID_SDKS)' != '' ">
37+
<ProjectReference Include="..\android_sdk\android_sdk.wixproj" Properties="ProductArchitecture=aarch64;Platform=x86" BindName="android_sdk_aarch64" />
38+
</ItemGroup>
3439
</Project>

platforms/Windows/bundle/installer.wxs

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@
3838
<Variable Name="OptionsInstallRedistAMD64" bal:Overridable="yes" Persisted="yes" Value="1" />
3939
<Variable Name="OptionsInstallSdkArm64" bal:Overridable="yes" Persisted="yes" Value="1" />
4040
<Variable Name="OptionsInstallRedistArm64" bal:Overridable="yes" Persisted="yes" Value="1" />
41+
<Variable Name="OptionsInstallAndroidSdks" bal:Overridable="yes" Persisted="yes" Value="1" />
4142

4243
<!--
4344
For the online bundle, we need to provide a download URL for each package and its .cabs.
@@ -119,6 +120,15 @@
119120
<MsiProperty Name="INSTALLREDIST" Value="[OptionsInstallRedistArm64]" />
120121
</MsiPackage>
121122
<?endif?>
123+
124+
<?if $(INCLUDE_ANDROID_SDKS) == true ?>
125+
<MsiPackage
126+
SourceFile="!(bindpath.android_sdk_aarch64)\android_sdk.aarch64.msi"
127+
InstallCondition="OptionsInstallAndroidSdks"
128+
DownloadUrl="$(BaseReleaseDownloadUrl)/{2}">
129+
<MsiProperty Name="INSTALLROOT" Value="[InstallRoot]" />
130+
</MsiPackage>
131+
<?endif?>
122132
</Chain>
123133
</Bundle>
124134
</Wix>

platforms/Windows/bundle/theme.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,7 @@
6767
<Checkbox Name="OptionsInstallRedistArm64" X="194" Y="285" Width="-11" Height="17" TabStop="yes" FontId="3" EnableCondition="OptionsInstallSdkArm64">#(loc.Redist_arm64)</Checkbox>
6868
<Checkbox Name="OptionsInstallSdkX86" X="176" Y="303" Width="-11" Height="17" TabStop="yes" FontId="3">#(loc.Sdk_ProductName_x86)</Checkbox>
6969
<Checkbox Name="OptionsInstallRedistX86" X="194" Y="321" Width="-11" Height="17" TabStop="yes" FontId="3" EnableCondition="OptionsInstallSdkX86">#(loc.Redist_x86)</Checkbox>
70+
<Checkbox Name="OptionsInstallAndroidSDKs" X="176" Y="338" Width="-11" Height="17" TabStop="yes" FontId="3" EnableCondition="OptionsInstallAndroidSdks">#(loc.Android_Skds)</Checkbox>
7071

7172
<Button Name="OptionsOkButton" X="-91" Y="-11" Width="75" Height="23" TabStop="yes" FontId="0">
7273
<Text>#(loc.OptionsOkButton)</Text>

platforms/Windows/shared/swift.en-us.wxl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424
<String Id="Redist_arm64" Value="Swift Windows Redistributable (ARM64)" />
2525
<String Id="Redist_amd64" Value="Swift Windows Redistributable (AMD64)" />
2626
<String Id="Redist_x86" Value="Swift Windows Redistributable (X86)" />
27+
<String Id="Android_Skds" Value="Swift Android SDKs" />
2728

2829
<String Id="Caption" Value="[WixBundleName] Setup" />
2930
<String Id="Title" Value="[WixBundleName]" />

0 commit comments

Comments
 (0)