Updated readme, added key properties sample and updated app version

This commit is contained in:
Juan Gilsanz Polo 2024-01-16 18:45:37 +01:00
parent 61d521f9f9
commit 236124d246
3 changed files with 30 additions and 18 deletions

View file

@ -44,18 +44,28 @@ On [this repository](https://github.com/JuanRodenas/Pihole_list) you can find a
## Generate production build ## Generate production build
<ul> <ul>
<li>
<b>Prerequisites</b>
<ol>
<li>Open <code>pubspec.yaml</code> and change the version name and the version number.</li>
<li>Run <code>flutter clean</code>.</li>
<li>Run <code>flutter pub get</code>.</li>
</ol>
</li>
<li>
<b>Android</b>
<ol>
<li>Make sure you have your <code>key.properties</code> file at <code>android/</code>, with all the required values of your signing key correctly set up.</li>
<li>Make sure you have your keystore file at <code>android/app</code>.</li>
<li>Run <code>flutter build apk --release</code> to compile the APK.</li>
<li>The .apk package is located at <code>build/app/outputs/flutter-apk/app-release.apk</code>.</li>
</ol>
</li>
<li> <li>
<b>macOS</b> <b>macOS</b>
<ol> <ol>
<li>flutter clean</li> <li>Run <code>flutter build macos --release</code> to compile the production build.</li>
<li>flutter pub get</li> <li>The .app package is located at <code>build/macos/Build/Products/Release/AdGuard Home Manager.app</code>.</li>
<li>flutter build macos --release</li>
<li>Open macos/Runner.xcworkspace on Xcode</li>
<li>Make sure all the pods have the minimum deployment version at 10.14</li>
<li>Select Runner > Targets Runner</li>
<li>Make sure the Version and Build numbers are correct</li>
<li>Click on Product menu and on Archive</li>
<li>Select the first on the list and click on Distribute app, select Copy App and click on Next</li>
</ol> </ol>
</li> </li>
<li> <li>
@ -67,24 +77,22 @@ On [this repository](https://github.com/JuanRodenas/Pihole_list) you can find a
</ol> </ol>
<b>Build</b> <b>Build</b>
<ol> <ol>
<li>Open debian.yaml file inside debian/ and update the version number</li> <li>Open <code>debian.yaml</code> file inside debian/ and update the version number</li>
<li>run <code>rps build linux</code></li> <li>run <code>rps build linux</code></li>
<li>The .tar.gz is at build/linux/x64/release/bundle</li> <li>The .tar.gz is at <code>build/linux/x64/release/bundle</code></li>
<li>The .deb package is at debian/packages</li> <li>The .deb package is at <code>debian/packages</code></li>
</ol> </ol>
</ul> </ul>
</li> </li>
<li> <li>
<b>Windows</b> <b>Windows</b>
<ol> <ol>
<li>flutter clean</li> <li>Run <code>flutter build windows --release</code>.</li>
<li>flutter pub get</li>
<li>flutter build windows</li>
<li>Open Inno Setup Compiler application and load the script</li> <li>Open Inno Setup Compiler application and load the script</li>
<li>The script is located at windows/innosetup_installer_builder.iss</li> <li>The script is located at <code>windows/innosetup_installer_builder.iss</code></li>
<li>Update the version number and save the changes</li> <li>Update the version number and save the changes</li>
<li>Click on the Compile button</li> <li>Click on the Compile button</li>
<li>The installer will be generated at build/windows/aghm_installer.exe</li> <li>The installer will be generated at <code>build/windows/aghm_installer.exe</code>.</li>
</ol> </ol>
</li> </li>
</ul> </ul>

View file

@ -0,0 +1,4 @@
storePassword= # keystore password #
keyPassword= # keystore key password #
keyAlias= # key alias #
storeFile= # ./keystore-file-name.jks #

View file

@ -17,7 +17,7 @@ publish_to: 'none' # Remove this line if you wish to publish to pub.dev
# https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html # https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html
# In Windows, build-name is used as the major, minor, and patch parts # In Windows, build-name is used as the major, minor, and patch parts
# of the product and file versions while build-number is used as the build suffix. # of the product and file versions while build-number is used as the build suffix.
version: 2.14.0+119 version: 2.14.1+120
environment: environment:
sdk: '>=2.18.1 <3.0.0' sdk: '>=2.18.1 <3.0.0'