Fix signing
All checks were successful
Gitea/WheresMyMoney/pipeline/head This commit looks good

This commit is contained in:
Michał Leśniak 2025-01-26 16:29:20 +01:00
parent 253e40e3f0
commit 7d631bb9c8
2 changed files with 4 additions and 1 deletions

1
.gitignore vendored
View File

@ -28,6 +28,7 @@ mono_crash.*
[Dd]ebugPublic/ [Dd]ebugPublic/
[Rr]elease/ [Rr]elease/
[Rr]eleases/ [Rr]eleases/
output/
x64/ x64/
x86/ x86/
[Ww][Ii][Nn]32/ [Ww][Ii][Nn]32/

4
Jenkinsfile vendored
View File

@ -4,6 +4,8 @@ pipeline {
ANDROID_HOME = 'C:\\Users\\lemi4\\AppData\\Local\\Android\\sdk' ANDROID_HOME = 'C:\\Users\\lemi4\\AppData\\Local\\Android\\sdk'
DOTNET_ROOT = 'C:\\Program Files\\dotnet' DOTNET_ROOT = 'C:\\Program Files\\dotnet'
PATH = "${env.PATH};${env.ANDROID_HOME}\\tools;${env.ANDROID_HOME}\\platform-tools;${env.DOTNET_ROOT}" PATH = "${env.PATH};${env.ANDROID_HOME}\\tools;${env.ANDROID_HOME}\\platform-tools;${env.DOTNET_ROOT}"
ANDROID_SIGNING_PASSWORD = credentials('android-signing-password')
KEYSTORE = 'C:\\Projekty\\Keystore.keystore'
} }
stages { stages {
stage('Checkout') { stage('Checkout') {
@ -37,7 +39,7 @@ pipeline {
stage('Publish Artifacts') { stage('Publish Artifacts') {
steps { steps {
script { script {
pwsh 'dotnet publish WheresMyMoney.Maui\\WheresMyMoney.Maui.csproj -c Release -f net9.0-android -o output\\android' pwsh 'dotnet publish WheresMyMoney.Maui\\WheresMyMoney.Maui.csproj -c Release -f net9.0-android -p:AndroidKeyStore=true -p:AndroidSigningKeyStore=$env:KEYSTORE -p:AndroidSigningKeyAlias=WheresMyMoney -p:AndroidSigningKeyPass=env:ANDROID_SIGNING_PASSWORD -p:AndroidSigningStorePass=env:ANDROID_SIGNING_PASSWORD -o output\\android'
pwsh 'dotnet publish WheresMyMoney.Maui\\WheresMyMoney.Maui.csproj -c Release -f net9.0-windows10.0.19041.0 -o output\\windows' pwsh 'dotnet publish WheresMyMoney.Maui\\WheresMyMoney.Maui.csproj -c Release -f net9.0-windows10.0.19041.0 -o output\\windows'
} }
archiveArtifacts artifacts: 'output/**/*', allowEmptyArchive: true archiveArtifacts artifacts: 'output/**/*', allowEmptyArchive: true