Skip to content

Commit 28371ab

Browse files
committed
Add build android aab support by axmol -p android -aab
1 parent 4bbb7d4 commit 28371ab

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

1k/1kiss.ps1

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -243,6 +243,7 @@ $channels = @{}
243243
$cmdlinetools_rev = '11076708' # 12.0
244244

245245
$ndk_r23d_rev = '12186248'
246+
# $ndk_r25d_rev = '12161346'
246247

247248
$android_sdk_tools = @{
248249
'build-tools' = '34.0.0'
@@ -269,6 +270,7 @@ $options = @{
269270
dm = $false # dump compiler preprocessors
270271
i = $false # perform install
271272
scope = 'local'
273+
aab = $false
272274
}
273275

274276
$optName = $null
@@ -1949,11 +1951,12 @@ if (!$setupOnly) {
19491951
$build_tool_dir = Split-Path $build_tool -Parent
19501952
Push-Location $build_tool_dir
19511953
if (!$configOnly) {
1954+
$build_task = @('assemble', 'bundle')[$options.aab]
19521955
if ($optimize_flag -eq 'Debug') {
1953-
& $build_tool assembleDebug $CONFIG_ALL_OPTIONS | Out-Host
1956+
& $build_tool ${build_task}Debug $CONFIG_ALL_OPTIONS | Out-Host
19541957
}
19551958
else {
1956-
& $build_tool assembleRelease $CONFIG_ALL_OPTIONS | Out-Host
1959+
& $build_tool ${build_task}Release $CONFIG_ALL_OPTIONS | Out-Host
19571960
}
19581961
}
19591962
else {

0 commit comments

Comments
 (0)