Bouwen-android.ps1: bouwstap voor SideKick (onderdeel mijnbesluit-app, Sleutel android) via Apk-maken.ps1
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01MaFmzMN5i7qyZihKBsksxz
This commit is contained in:
@@ -0,0 +1,36 @@
|
|||||||
|
<#
|
||||||
|
Bouwt de Android-app voor SideKick ("Bouwen en uitrollen", onderdeel mijnbesluit-app, Sleutel android).
|
||||||
|
|
||||||
|
SideKick zoekt voor een onderdeel eerst tools\Bouwen-<Sleutel>.ps1. Dit script is die bouwstap:
|
||||||
|
het geeft het werk aan Apk-maken.ps1 (dotnet publish -f net10.0-android, ondertekend met het
|
||||||
|
sleutelbestand) en zet de APK in de map die SideKick meegeeft (-Uitvoer).
|
||||||
|
|
||||||
|
Zonder dit script bouwt SideKick een gewoon Windows-programma (win-x64), en dat kan een
|
||||||
|
Android-project niet: "Unable to find package Microsoft.NETCore.App.Runtime.Mono.win-x64".
|
||||||
|
|
||||||
|
Het wachtwoord van het sleutelbestand komt uit de gebruikersvariabele MIJNBESLUIT_KEYSTORE_WACHTWOORD
|
||||||
|
(zie Apk-maken.ps1). Start SideKick opnieuw als je die net hebt gezet.
|
||||||
|
#>
|
||||||
|
|
||||||
|
[CmdletBinding()]
|
||||||
|
param(
|
||||||
|
# SideKick geeft dit altijd mee; een Android-release is altijd Release.
|
||||||
|
[string] $Configuratie = 'Release',
|
||||||
|
|
||||||
|
# Waar de APK terechtkomt (SideKick: <publicatiemap>\android).
|
||||||
|
[string] $Uitvoer
|
||||||
|
)
|
||||||
|
|
||||||
|
$ErrorActionPreference = 'Stop'
|
||||||
|
|
||||||
|
# SideKick zet RENH_UITROLVENSTER; Apk-maken.ps1 kent MIJNBESLUIT_UITROLVENSTER. Zo stopt het script
|
||||||
|
# met een duidelijke melding als het wachtwoord ontbreekt, in plaats van te blijven wachten op invoer.
|
||||||
|
if ($env:RENH_UITROLVENSTER -and -not $env:MIJNBESLUIT_UITROLVENSTER) {
|
||||||
|
$env:MIJNBESLUIT_UITROLVENSTER = '1'
|
||||||
|
}
|
||||||
|
|
||||||
|
$params = @{}
|
||||||
|
if ($Uitvoer) { $params['Uit'] = $Uitvoer }
|
||||||
|
|
||||||
|
& (Join-Path $PSScriptRoot 'Apk-maken.ps1') @params
|
||||||
|
if ($LASTEXITCODE -ne 0 -and $null -ne $LASTEXITCODE) { exit $LASTEXITCODE }
|
||||||
Reference in New Issue
Block a user