Skip to content

Commit 1a3cc1d

Browse files
committed
Refactor publish script to use 'Version' parameter and update workflow for versioning and signing
1 parent cf425ee commit 1a3cc1d

File tree

4 files changed

+176
-167
lines changed

4 files changed

+176
-167
lines changed

.github/workflows/dotnet.yml

Lines changed: 5 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
name: .NET build and test
22
env:
3-
CURRENT_VERSION: 2.4.${{ github.run_number }}
4-
APPLICATION_VERSION: ${{ github.run_number }}
3+
CURRENT_VERSION: 3.0.${{ github.run_number }}
54
LAST_COMMIT_MESSAGE: ${{ github.event.head_commit.message }}
65
PACKAGENAME: "com.codeuctivity.LockPDFy"
76
DOTNET_NOLOGO: true # Disable the .NET logo
@@ -47,25 +46,15 @@ jobs:
4746
- name: Restore dependencies
4847
run: dotnet restore
4948
- name: Build
50-
run: dotnet build .\LockPDFyGithubActionsFriendly.slnf --no-restore --configuration Release
49+
run: dotnet build .\LockPDFyGithubActionsFriendly.slnf --no-restore --configuration Release -p:Version=$CURRENT_VERSION
5150
- name: Build maui windows
52-
run: dotnet build .\LockPDFyMaui --configuration Release -f net8.0-windows10.0.19041.0
51+
run: dotnet build .\LockPDFyMaui --configuration Release -f net8.0-windows10.0.19041.0 -p:Version=$CURRENT_VERSION
5352
- name: Test
5453
run: dotnet test .\LockPDFyGithubActionsFriendly.slnf --no-restore --no-build --verbosity normal --configuration Release
5554
- name: Build maui android
56-
run: dotnet publish LockPDFyMaui -f net8.0-android -c Release -p:ApplicationVersion=$APPLICATION_VERSION -p:ApplicationDisplayVersion=$CURRENT_VERSION -p:ApplicationId=$PACKAGENAME
57-
- name: Create signing pfx file from secrets
58-
shell: pwsh
59-
id: secret-file
6055
env:
61-
SIGN_CERT: ${{ secrets.SIGN_CERT }}
62-
ANDROID_SIGN_CERT_PASSWORD: ${{ secrets.ANDROID_SIGN_CERT_PASSWORD }}
63-
if: env.SIGN_CERT != ''
64-
run: |
65-
$secretFile = "AndroidSignCert.pfx";
66-
[System.IO.File]::WriteAllBytes($secretFile,[System.Convert]::FromBase64String($env:SIGN_CERT))
67-
Write-Output "::set-output name=SECRET_FILE::$secretFile";
68-
# jarsigner -verbose -sigalg SHA256withRSA -digestalg SHA-256 -keystore $secretFile .\LockPDFyMaui\bin\Release\net8.0-android\publish\$PACKAGENAME.aab AndroidApps -storepass ${{secrets.ANDROID_SIGN_CERT_PASSWORD}}
56+
ANDROID_SIGN_KEY: ${{ secrets.ANDROID_SIGN_KEY }}
57+
run: dotnet publish LockPDFyMaui -f net8.0-android -c Release -p:Version=$CURRENT_VERSION -p:ApplicationId=$PACKAGENAME -p:AndroidKeyStore=true -p:AndroidSigningKeyStore=$PWD/myapp.keystore -p:AndroidSigningKeyAlias=myapp -p:AndroidSigningKeyPass=${{ secrets.ANDROID_SIGN_KEY }} -p:AndroidSigningStorePass=${{ secrets.ANDROID_SIGN_KEY }}
6958
- name: Github release
7059
shell: bash
7160
env:

LockPDFyMaui/LockPDFyMaui.csproj

Lines changed: 167 additions & 134 deletions
Original file line numberDiff line numberDiff line change
@@ -1,138 +1,171 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22

3-
<PropertyGroup>
4-
<TargetFrameworks>net8.0-android;net8.0-ios;net8.0-maccatalyst</TargetFrameworks>
5-
<TargetFrameworks Condition="$([MSBuild]::IsOSPlatform('windows'))">$(TargetFrameworks);net8.0-windows10.0.19041.0</TargetFrameworks>
6-
<!-- Uncomment to also build the tizen app. You will need to install tizen by following this: https://github.com/Samsung/Tizen.NET -->
7-
<!-- <TargetFrameworks>$(TargetFrameworks);net8.0-tizen</TargetFrameworks> -->
8-
9-
<!-- Note for MacCatalyst:
10-
The default runtime is maccatalyst-x64, except in Release config, in which case the default is maccatalyst-x64;maccatalyst-arm64.
11-
When specifying both architectures, use the plural <RuntimeIdentifiers> instead of the singular <RuntimeIdentifier>.
3+
<PropertyGroup>
4+
<TargetFrameworks>net8.0-android;net8.0-ios;net8.0-maccatalyst</TargetFrameworks>
5+
<TargetFrameworks Condition="$([MSBuild]::IsOSPlatform('windows'))">
6+
$(TargetFrameworks);net8.0-windows10.0.19041.0</TargetFrameworks>
7+
<!-- Uncomment to also build the tizen app. You will need to install tizen by following
8+
this: https://github.com/Samsung/Tizen.NET -->
9+
<!-- <TargetFrameworks>$(TargetFrameworks);net8.0-tizen</TargetFrameworks> -->
10+
11+
<!-- Note for MacCatalyst:
12+
The default runtime is maccatalyst-x64, except in Release config, in which case the default is
13+
maccatalyst-x64;maccatalyst-arm64.
14+
When specifying both architectures, use the plural <RuntimeIdentifiers> instead of the singular
15+
<RuntimeIdentifier>.
1216
The Mac App Store will NOT accept apps with ONLY maccatalyst-arm64 indicated;
1317
either BOTH runtimes must be indicated or ONLY macatalyst-x64. -->
14-
<!-- For example: <RuntimeIdentifiers>maccatalyst-x64;maccatalyst-arm64</RuntimeIdentifiers> -->
15-
16-
<OutputType>Exe</OutputType>
17-
<RootNamespace>LockPDFyMaui</RootNamespace>
18-
<UseMaui>true</UseMaui>
19-
<SingleProject>true</SingleProject>
20-
<ImplicitUsings>enable</ImplicitUsings>
21-
<Nullable>enable</Nullable>
22-
<AndroidSdkDirectory>$(LOCALAPPDATA)\Android\Sdk</AndroidSdkDirectory>
23-
24-
<!-- Display name -->
25-
<ApplicationTitle>LockPDFyMaui</ApplicationTitle>
26-
27-
<!-- App Identifier -->
28-
<ApplicationId>com.companyname.lockpdfymaui</ApplicationId>
29-
<ApplicationIdGuid>1b2a444d-10cc-4c98-9be6-445700d74910</ApplicationIdGuid>
30-
31-
<!-- Versions -->
32-
<ApplicationDisplayVersion>1.0</ApplicationDisplayVersion>
33-
<ApplicationVersion>1</ApplicationVersion>
34-
35-
<SupportedOSPlatformVersion Condition="$([MSBuild]::GetTargetPlatformIdentifier('$(TargetFramework)')) == 'ios'">11.0</SupportedOSPlatformVersion>
36-
<SupportedOSPlatformVersion Condition="$([MSBuild]::GetTargetPlatformIdentifier('$(TargetFramework)')) == 'maccatalyst'">13.1</SupportedOSPlatformVersion>
37-
<SupportedOSPlatformVersion Condition="$([MSBuild]::GetTargetPlatformIdentifier('$(TargetFramework)')) == 'android'">21.0</SupportedOSPlatformVersion>
38-
<SupportedOSPlatformVersion Condition="$([MSBuild]::GetTargetPlatformIdentifier('$(TargetFramework)')) == 'windows'">10.0.17763.0</SupportedOSPlatformVersion>
39-
<TargetPlatformMinVersion Condition="$([MSBuild]::GetTargetPlatformIdentifier('$(TargetFramework)')) == 'windows'">10.0.17763.0</TargetPlatformMinVersion>
40-
<SupportedOSPlatformVersion Condition="$([MSBuild]::GetTargetPlatformIdentifier('$(TargetFramework)')) == 'tizen'">6.5</SupportedOSPlatformVersion>
41-
<PackageLicenseExpression>AGPL</PackageLicenseExpression>
42-
<PackageRequireLicenseAcceptance>True</PackageRequireLicenseAcceptance>
43-
<DefaultLanguage>en-US</DefaultLanguage>
44-
</PropertyGroup>
45-
46-
<PropertyGroup Condition="'$(Configuration)|$(TargetFramework)|$(Platform)'=='Debug|net8.0-android|AnyCPU'">
47-
<ApplicationTitle>LockPDFy</ApplicationTitle>
48-
</PropertyGroup>
49-
50-
<PropertyGroup Condition="'$(Configuration)|$(TargetFramework)|$(Platform)'=='Debug|net8.0-ios|AnyCPU'">
51-
<ApplicationTitle>LockPDFy</ApplicationTitle>
52-
</PropertyGroup>
53-
54-
<PropertyGroup Condition="'$(Configuration)|$(TargetFramework)|$(Platform)'=='Debug|net8.0-maccatalyst|AnyCPU'">
55-
<ApplicationTitle>LockPDFy - swiftly encrypts and decrypts PDF files</ApplicationTitle>
56-
</PropertyGroup>
57-
58-
<PropertyGroup Condition="'$(Configuration)|$(TargetFramework)|$(Platform)'=='Debug|net8.0-windows10.0.19041.0|AnyCPU'">
59-
<ApplicationTitle>LockPDFy - swiftly encrypts and decrypts PDF files</ApplicationTitle>
60-
</PropertyGroup>
61-
62-
<PropertyGroup Condition="'$(Configuration)|$(TargetFramework)|$(Platform)'=='Release|net8.0-android|AnyCPU'">
63-
<ApplicationTitle>LockPDFy</ApplicationTitle>
64-
</PropertyGroup>
65-
66-
<PropertyGroup Condition="'$(Configuration)|$(TargetFramework)|$(Platform)'=='Release|net8.0-ios|AnyCPU'">
67-
<ApplicationTitle>LockPDFy</ApplicationTitle>
68-
</PropertyGroup>
69-
70-
<PropertyGroup Condition="'$(Configuration)|$(TargetFramework)|$(Platform)'=='Release|net8.0-maccatalyst|AnyCPU'">
71-
<ApplicationTitle>LockPDFy - swiftly encrypts and decrypts PDF files</ApplicationTitle>
72-
</PropertyGroup>
73-
74-
<PropertyGroup Condition="'$(Configuration)|$(TargetFramework)|$(Platform)'=='Release|net8.0-windows10.0.19041.0|AnyCPU'">
75-
<ApplicationTitle>LockPDFy - swiftly encrypts and decrypts PDF files</ApplicationTitle>
76-
</PropertyGroup>
77-
78-
<ItemGroup>
79-
<!-- App Icon -->
80-
<MauiIcon Include="Resources\AppIcon\appicon.svg" ForegroundFile="Resources\AppIcon\appiconfg.svg" Color="#512BD4" />
81-
82-
<!-- Splash Screen -->
83-
<MauiSplashScreen Include="Resources\Splash\splash.svg" Color="#512BD4" BaseSize="128,128" />
84-
85-
<!-- Images -->
86-
<MauiImage Include="Resources\Images\*" />
87-
<MauiImage Update="Resources\Images\dotnet_bot.png" Resize="True" BaseSize="300,185" />
88-
89-
<!-- Custom Fonts -->
90-
<MauiFont Include="Resources\Fonts\*" />
91-
92-
<!-- Raw Assets (also remove the "Resources\Raw" prefix) -->
93-
<MauiAsset Include="Resources\Raw\**" LogicalName="%(RecursiveDir)%(Filename)%(Extension)" />
94-
</ItemGroup>
95-
96-
<ItemGroup>
97-
<None Include="..\Logo\Logo-NoBorder.png">
98-
<Pack>True</Pack>
99-
<PackagePath>\</PackagePath>
100-
</None>
101-
</ItemGroup>
102-
103-
<ItemGroup>
104-
<PackageReference Include="CommunityToolkit.Maui" Version="7.0.0" />
105-
<PackageReference Include="Microsoft.Maui.Controls" Version="$(MauiVersion)" />
106-
<PackageReference Include="Microsoft.Maui.Controls.Compatibility" Version="$(MauiVersion)" />
107-
<PackageReference Include="Microsoft.Extensions.Logging.Debug" Version="8.0.0" />
108-
</ItemGroup>
109-
110-
<ItemGroup>
111-
<ProjectReference Include="..\LockPDFy\LockPDFy.csproj" />
112-
</ItemGroup>
113-
114-
<ItemGroup>
115-
<Compile Update="SettingsPage.xaml.cs">
116-
<DependentUpon>SettingsPage.xaml</DependentUpon>
117-
</Compile>
118-
<Compile Update="EncryptPage.xaml.cs">
119-
<DependentUpon>EncryptPage.xaml</DependentUpon>
120-
</Compile>
121-
<Compile Update="DecryptPage.xaml.cs">
122-
<DependentUpon>DecryptPage.xaml</DependentUpon>
123-
</Compile>
124-
</ItemGroup>
125-
126-
<ItemGroup>
127-
<MauiXaml Update="SettingsPage.xaml">
128-
<Generator>MSBuild:Compile</Generator>
129-
</MauiXaml>
130-
<MauiXaml Update="EncryptPage.xaml">
131-
<Generator>MSBuild:Compile</Generator>
132-
</MauiXaml>
133-
<MauiXaml Update="DecryptPage.xaml">
134-
<Generator>MSBuild:Compile</Generator>
135-
</MauiXaml>
136-
</ItemGroup>
137-
138-
</Project>
18+
<!-- For example: <RuntimeIdentifiers>maccatalyst-x64;maccatalyst-arm64</RuntimeIdentifiers> -->
19+
20+
<OutputType>Exe</OutputType>
21+
<RootNamespace>LockPDFyMaui</RootNamespace>
22+
<UseMaui>true</UseMaui>
23+
<SingleProject>true</SingleProject>
24+
<ImplicitUsings>enable</ImplicitUsings>
25+
<Nullable>enable</Nullable>
26+
27+
<!-- Display name -->
28+
<ApplicationTitle>LockPDFyMaui</ApplicationTitle>
29+
30+
<!-- App Identifier -->
31+
<ApplicationId>com.companyname.lockpdfymaui</ApplicationId>
32+
<ApplicationIdGuid>1b2a444d-10cc-4c98-9be6-445700d74910</ApplicationIdGuid>
33+
34+
<!-- Versions -->
35+
<ApplicationDisplayVersion>$(Version)</ApplicationDisplayVersion>
36+
<MajorVersion>$(Version.Split('.')[0])</MajorVersion>
37+
<ApplicationVersion>$(MajorVersion)</ApplicationVersion>
38+
39+
<SupportedOSPlatformVersion
40+
Condition="$([MSBuild]::GetTargetPlatformIdentifier('$(TargetFramework)')) == 'ios'">
41+
11.0</SupportedOSPlatformVersion>
42+
<SupportedOSPlatformVersion
43+
Condition="$([MSBuild]::GetTargetPlatformIdentifier('$(TargetFramework)')) == 'maccatalyst'">
44+
13.1</SupportedOSPlatformVersion>
45+
<SupportedOSPlatformVersion
46+
Condition="$([MSBuild]::GetTargetPlatformIdentifier('$(TargetFramework)')) == 'android'">
47+
21.0</SupportedOSPlatformVersion>
48+
<SupportedOSPlatformVersion
49+
Condition="$([MSBuild]::GetTargetPlatformIdentifier('$(TargetFramework)')) == 'windows'">
50+
10.0.17763.0</SupportedOSPlatformVersion>
51+
<TargetPlatformMinVersion
52+
Condition="$([MSBuild]::GetTargetPlatformIdentifier('$(TargetFramework)')) == 'windows'">
53+
10.0.17763.0</TargetPlatformMinVersion>
54+
<SupportedOSPlatformVersion
55+
Condition="$([MSBuild]::GetTargetPlatformIdentifier('$(TargetFramework)')) == 'tizen'">
56+
6.5</SupportedOSPlatformVersion>
57+
<PackageLicenseExpression>AGPL</PackageLicenseExpression>
58+
<PackageRequireLicenseAcceptance>True</PackageRequireLicenseAcceptance>
59+
<DefaultLanguage>en-US</DefaultLanguage>
60+
</PropertyGroup>
61+
62+
<PropertyGroup
63+
Condition="'$(Configuration)|$(TargetFramework)|$(Platform)'=='Debug|net8.0-android|AnyCPU'">
64+
<ApplicationTitle>LockPDFy</ApplicationTitle>
65+
</PropertyGroup>
66+
67+
<PropertyGroup
68+
Condition="'$(Configuration)|$(TargetFramework)|$(Platform)'=='Debug|net8.0-ios|AnyCPU'">
69+
<ApplicationTitle>LockPDFy</ApplicationTitle>
70+
</PropertyGroup>
71+
72+
<PropertyGroup
73+
Condition="'$(Configuration)|$(TargetFramework)|$(Platform)'=='Debug|net8.0-maccatalyst|AnyCPU'">
74+
<ApplicationTitle>LockPDFy - swiftly encrypts and decrypts PDF files</ApplicationTitle>
75+
</PropertyGroup>
76+
77+
<PropertyGroup
78+
Condition="'$(Configuration)|$(TargetFramework)|$(Platform)'=='Debug|net8.0-windows10.0.19041.0|AnyCPU'">
79+
<ApplicationTitle>LockPDFy - swiftly encrypts and decrypts PDF files</ApplicationTitle>
80+
</PropertyGroup>
81+
82+
<PropertyGroup
83+
Condition="'$(Configuration)|$(TargetFramework)|$(Platform)'=='Release|net8.0-android|AnyCPU'">
84+
<ApplicationTitle>LockPDFy</ApplicationTitle>
85+
</PropertyGroup>
86+
87+
<PropertyGroup
88+
Condition="'$(Configuration)|$(TargetFramework)|$(Platform)'=='Release|net8.0-ios|AnyCPU'">
89+
<ApplicationTitle>LockPDFy</ApplicationTitle>
90+
</PropertyGroup>
91+
92+
<PropertyGroup
93+
Condition="'$(Configuration)|$(TargetFramework)|$(Platform)'=='Release|net8.0-maccatalyst|AnyCPU'">
94+
<ApplicationTitle>LockPDFy - swiftly encrypts and decrypts PDF files</ApplicationTitle>
95+
</PropertyGroup>
96+
97+
<PropertyGroup
98+
Condition="'$(Configuration)|$(TargetFramework)|$(Platform)'=='Release|net8.0-windows10.0.19041.0|AnyCPU'">
99+
<ApplicationTitle>LockPDFy - swiftly encrypts and decrypts PDF files</ApplicationTitle>
100+
</PropertyGroup>
101+
102+
<ItemGroup>
103+
<!-- App Icon -->
104+
<MauiIcon Include="Resources\AppIcon\appicon.svg"
105+
ForegroundFile="Resources\AppIcon\appiconfg.svg" Color="#512BD4" />
106+
107+
<!-- Splash Screen -->
108+
<MauiSplashScreen Include="Resources\Splash\splash.svg" Color="#512BD4" BaseSize="128,128" />
109+
110+
<!-- Images -->
111+
<MauiImage Include="Resources\Images\*" />
112+
<MauiImage Update="Resources\Images\dotnet_bot.png" Resize="True" BaseSize="300,185" />
113+
114+
<!-- Custom Fonts -->
115+
<MauiFont Include="Resources\Fonts\*" />
116+
117+
<!-- Raw Assets (also remove the "Resources\Raw" prefix) -->
118+
<MauiAsset Include="Resources\Raw\**" LogicalName="%(RecursiveDir)%(Filename)%(Extension)" />
119+
</ItemGroup>
120+
121+
<ItemGroup>
122+
<None Include="..\Logo\Logo-NoBorder.png">
123+
<Pack>True</Pack>
124+
<PackagePath>\</PackagePath>
125+
</None>
126+
</ItemGroup>
127+
128+
<ItemGroup>
129+
<PackageReference Include="CommunityToolkit.Maui" Version="7.0.0" />
130+
<PackageReference Include="Microsoft.Maui.Controls" Version="$(MauiVersion)" />
131+
<PackageReference Include="Microsoft.Maui.Controls.Compatibility" Version="$(MauiVersion)" />
132+
<PackageReference Include="Microsoft.Extensions.Logging.Debug" Version="8.0.0" />
133+
</ItemGroup>
134+
135+
<ItemGroup>
136+
<ProjectReference Include="..\LockPDFy\LockPDFy.csproj" />
137+
</ItemGroup>
138+
139+
<ItemGroup>
140+
<Compile Update="SettingsPage.xaml.cs">
141+
<DependentUpon>SettingsPage.xaml</DependentUpon>
142+
</Compile>
143+
<Compile Update="EncryptPage.xaml.cs">
144+
<DependentUpon>EncryptPage.xaml</DependentUpon>
145+
</Compile>
146+
<Compile Update="DecryptPage.xaml.cs">
147+
<DependentUpon>DecryptPage.xaml</DependentUpon>
148+
</Compile>
149+
</ItemGroup>
150+
151+
<ItemGroup>
152+
<MauiXaml Update="SettingsPage.xaml">
153+
<Generator>MSBuild:Compile</Generator>
154+
</MauiXaml>
155+
<MauiXaml Update="EncryptPage.xaml">
156+
<Generator>MSBuild:Compile</Generator>
157+
</MauiXaml>
158+
<MauiXaml Update="DecryptPage.xaml">
159+
<Generator>MSBuild:Compile</Generator>
160+
</MauiXaml>
161+
</ItemGroup>
162+
163+
<PropertyGroup Condition="'$(OS)' == 'Windows_NT' AND '$(AndroidSdkDirectory)' == ''">
164+
<!--That PropertyGroup fixes the error below:
165+
Xamarin.Android.Tooling.targets(70,5): error XA5300:
166+
The Android SDK directory could not be found. Install the Android SDK by following the instructions at: https://aka.ms/dotnet-android-install-sdk To use a custom SDK path for a command line build, set the 'AndroidSdkDirectory' MSBuild property to the custom path.-->
167+
<AndroidSdkDirectory>$(LOCALAPPDATA)\Android\Sdk</AndroidSdkDirectory>
168+
<!--<Message Text="AndroidSdkDirectory is set to $(AndroidSdkDirectory)" Importance="high" />-->
169+
</PropertyGroup>
170+
171+
</Project>

myapp.keystore

4.3 KB
Binary file not shown.

publishAndroidApp.ps1

Lines changed: 4 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
param([String]$AndroidSigningPassword, [int]$ApplicationVersion )
1+
param([String]$AndroidSigningPassword, [int]$Version )
22

33
# run as admin to prepare dependencies
44
# choco install androidstudio openjdk -y
@@ -8,23 +8,12 @@ param([String]$AndroidSigningPassword, [int]$ApplicationVersion )
88

99
$packageName = "com.codeuctivity.LockPDFy"
1010

11-
# https://learn.microsoft.com/en-us/dotnet/maui/android/deployment/publish-cli#create-a-keystore-file
12-
# Signing using .net maui stack is a mess, finaly using https://stackoverflow.com/questions/50560045/sign-android-app-bundle-from-command-line it was accepted by google play store
13-
14-
# check if file exists
15-
if (!(Test-Path "../GooglePlayStore.keystore")) {
16-
throw "../GooglePlayStore.keystore not found";
17-
}
18-
19-
# keytool -export -rfc -keystore ../GooglePlayStore.keystore -alias LockPDFyMaui -file upload_certificate.pem
20-
# keytool -list -keystore GooglePlayStore.keystore
21-
2211
if ([String]::IsNullOrEmpty($AndroidSigningPassword)) {
2312
$AndroidSigningPassword = Read-Host -Prompt "Enter Android Signing Password" -AsSecureString
2413
}
2514

26-
if ([String]::IsNullOrEmpty($ApplicationVersion)) {
27-
$ApplicationVersion = Read-Host -Prompt "Enter Application Version" -AsSecureString
15+
if ([String]::IsNullOrEmpty($Version)) {
16+
$Version = Read-Host -Prompt "Enter version" -AsSecureString
2817
}
2918

3019
if (Test-Path -Path "./LockPDFyMaui/bin") {
@@ -36,7 +25,5 @@ dotnet clean
3625
dotnet restore
3726
dotnet build -c Release
3827
dotnet test -c Release --no-build
39-
dotnet publish LockPDFyMaui -f net8.0-android -c Release -p:ApplicationVersion=$ApplicationVersion -p:ApplicationDisplayVersion=$ApplicationVersion.0 -p:ApplicationId=$packageName
40-
jarsigner -verbose -sigalg SHA256withRSA -digestalg SHA-256 -keystore ../GooglePlayStore.keystore .\LockPDFyMaui\bin\Release\net8.0-android\publish\$packageName.aab AndroidApps -storepass $AndroidSigningPassword
41-
rm .\LockPDFyMaui\bin\Release\net8.0-android\publish\*signed.a*
28+
dotnet publish LockPDFyMaui -f net8.0-android -c Release -p:Version=$Version -p:ApplicationId=$packageName -p:AndroidKeyStore=true -p:AndroidSigningKeyStore=$PWD/myapp.keystore -p:AndroidSigningKeyAlias=myapp -p:AndroidSigningKeyPass=$AndroidSigningPassword -p:AndroidSigningStorePass=$AndroidSigningPassword
4229
explorer .\LockPDFyMaui\bin\Release\net8.0-android\publish\

0 commit comments

Comments
 (0)