Skip to content

Commit

Permalink
Add keystore for MAUI build
Browse files Browse the repository at this point in the history
  • Loading branch information
dennisreimann committed Feb 19, 2025
1 parent 39895f7 commit 9bb4241
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .github/workflows/build-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
8 changes: 8 additions & 0 deletions BTCPayApp.Maui/BTCPayApp.Maui.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -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 -->
Expand Down
Binary file added btcpayapp.keystore
Binary file not shown.

0 comments on commit 9bb4241

Please sign in to comment.