Add keystore for MAUI build

This commit is contained in:
Dennis Reimann 2025-02-19 15:35:37 +01:00
parent 39895f780b
commit 9bb42417b8
No known key found for this signature in database
GPG Key ID: 5009E1797F03F8D0
3 changed files with 13 additions and 1 deletions

View File

@ -66,7 +66,11 @@ jobs:
- name: Install workloads
run: dotnet workload install maui
- name: Build
run: dotnet publish BTCPayApp.Maui/BTCPayApp.Maui.csproj -f net8.0-android -c Release -o publish/android
# TODO: Add keystore https://learn.microsoft.com/en-us/dotnet/maui/android/deployment/publish-cli?view=net-maui-8.0#code-try-4
run: |
dotnet publish BTCPayApp.Maui/BTCPayApp.Maui.csproj -f net8.0-android -c Release -o publish/android
env:
ANDROID_SIGNING_PASSWORD: ${{ secrets.ANDROID_SIGNING_PASSWORD }}
- name: Upload artifact
uses: actions/upload-artifact@v4
with:

View File

@ -47,6 +47,14 @@
<DebugSymbols>True</DebugSymbols>
</PropertyGroup>
<PropertyGroup Condition="$([MSBuild]::GetTargetPlatformIdentifier('$(TargetFramework)')) == 'android' And '$(Configuration)' == 'Release'">
<AndroidKeyStore>True</AndroidKeyStore>
<AndroidSigningKeyStore>../btcpayapp.keystore</AndroidSigningKeyStore>
<AndroidSigningKeyAlias>btcpayapp</AndroidSigningKeyAlias>
<AndroidSigningKeyPass>env:ANDROID_SIGNING_PASSWORD</AndroidSigningKeyPass>
<AndroidSigningStorePass>env:ANDROID_SIGNING_PASSWORD</AndroidSigningStorePass>
</PropertyGroup>
<ItemGroup>
<!-- App Icon -->
<!-- Splash Screen -->

BIN
btcpayapp.keystore Normal file

Binary file not shown.