Initial Beta build
All checks were successful
Validate and publish Kaleido / android (push) Successful in 2m27s
All checks were successful
Validate and publish Kaleido / android (push) Successful in 2m27s
This commit is contained in:
commit
2b585badac
65 changed files with 3535 additions and 0 deletions
15
Build.ps1
Normal file
15
Build.ps1
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
param([switch]$Release, [switch]$Test)
|
||||
$ErrorActionPreference = 'Stop'
|
||||
Set-Location $PSScriptRoot
|
||||
if (-not $env:JAVA_HOME -or -not (Test-Path "$env:JAVA_HOME\bin\javac.exe")) { $env:JAVA_HOME = (Get-ChildItem "$PSScriptRoot\.tools\jdk" -Directory | Select-Object -First 1).FullName }
|
||||
$env:ANDROID_HOME = "$PSScriptRoot\.tools\sdk"
|
||||
$env:GRADLE_USER_HOME = "$PSScriptRoot\.gradle"
|
||||
if (-not (Test-Path .tools/kaleido-signing.jks) -and -not $env:KALEIDO_KEYSTORE) {
|
||||
& "$env:JAVA_HOME\bin\keytool.exe" -genkeypair -keystore .tools/kaleido-signing.jks -storepass kaleido-local -keypass kaleido-local -alias kaleido -keyalg RSA -keysize 3072 -validity 36500 -dname 'CN=Kaleido' -noprompt
|
||||
if ($LASTEXITCODE) { throw 'Signing key generation failed' }
|
||||
}
|
||||
$tasks = @('assembleDebug')
|
||||
if ($Release) { $tasks = @('assembleRelease') }
|
||||
if ($Test) { $tasks += @('testDebugUnitTest','lintDebug') }
|
||||
& .tools/gradle-8.13/bin/gradle.bat --no-daemon @tasks
|
||||
if ($LASTEXITCODE) { throw 'Build failed' }
|
||||
Loading…
Add table
Add a link
Reference in a new issue