Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create release certificate #600

Merged
merged 6 commits into from
Mar 10, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
Create relezse certificate
KoalaSat committed Mar 10, 2024
commit 812c961d3daf22727f202a6dc857c327d819866a
3 changes: 3 additions & 0 deletions .github/workflows/android-build.yml
Original file line number Diff line number Diff line change
@@ -26,6 +26,9 @@ jobs:
- name: Setup Gradle
uses: gradle/gradle-build-action@v2

- name: Generating one-time APK signature key
run: keytool -genkey -v -keystore keystore.jks -alias Nostros -keyalg RSA -keysize 2048 -validity 10000 -storepass public_password -keypass public_password -dname "cn=Nostros, ou=Actions, o=Nostros, c=GitHub"

- name: 'Build Android Release'
run: |
cd android
17 changes: 16 additions & 1 deletion android/app/build.gradle
Original file line number Diff line number Diff line change
@@ -126,7 +126,22 @@ android {
keyAlias 'androiddebugkey'
keyPassword 'android'
}
}

release {
// We can leave these in environment variables
storeFile file('../../keystore.jks')
keyAlias System.getenv("KEY_ALIAS")

// These two lines make gradle believe that the signingConfigs
// section is complete. Without them, tasks like installRelease
// will not be available!
storePassword System.getenv("KEY_STORE_PASS")
keyPassword System.getenv("KEY_ALIAS_PASS")

enableV1Signing true
enableV2Signing true
enableV3Signing true
}
buildTypes {
debug {
signingConfig signingConfigs.debug
Binary file added keystore.jks
Binary file not shown.