mirror of
https://github.com/KRTirtho/spotube.git
synced 2025-09-12 23:45:18 +00:00
Signed Application build script
This commit is contained in:
parent
41102b3bb8
commit
5953b30d45
1
.github/FUNDING.yml
vendored
1
.github/FUNDING.yml
vendored
@ -1,5 +1,4 @@
|
||||
open_collective: spotube
|
||||
ko_fi: krtirtho
|
||||
patreon: krtirtho
|
||||
custom:
|
||||
- "https://www.buymeacoffee.com/krtirtho"
|
||||
|
2
.github/workflows/flutter-build.yml
vendored
2
.github/workflows/flutter-build.yml
vendored
@ -35,6 +35,8 @@ jobs:
|
||||
build/Spotube-linux-x86_64.tar.xz
|
||||
build/Spotube-*-x86_64.AppImage
|
||||
# Building Android Application
|
||||
- run: echo ${{ secrets.KEYSTORE }} | base64 --decode > upload-keystore.jks
|
||||
- run: echo ${{ secrets.KEY_PROPERTIES }} > android/key.properties
|
||||
- run: flutter build apk
|
||||
- run: make apk
|
||||
- uses: actions/upload-artifact@v2
|
||||
|
3
.gitignore
vendored
3
.gitignore
vendored
@ -45,7 +45,6 @@ app.*.map.json
|
||||
/android/app/profile
|
||||
/android/app/release
|
||||
|
||||
|
||||
*.pkg.tar.zst
|
||||
/aur-struct/*.tar
|
||||
/aur-struct/src
|
||||
@ -74,3 +73,5 @@ secrets.json
|
||||
|
||||
dist
|
||||
appimage-build
|
||||
|
||||
android/key.properties
|
||||
|
@ -25,6 +25,12 @@ apply plugin: 'com.android.application'
|
||||
apply plugin: 'kotlin-android'
|
||||
apply from: "$flutterRoot/packages/flutter_tools/gradle/flutter.gradle"
|
||||
|
||||
def keystoreProperties = new Properties()
|
||||
def keystorePropertiesFile = rootProject.file('key.properties')
|
||||
if (keystorePropertiesFile.exists()) {
|
||||
keystoreProperties.load(new FileInputStream(keystorePropertiesFile))
|
||||
}
|
||||
|
||||
android {
|
||||
compileSdkVersion 31
|
||||
|
||||
@ -51,11 +57,17 @@ android {
|
||||
multiDexEnabled true
|
||||
}
|
||||
|
||||
signingConfigs {
|
||||
release {
|
||||
keyAlias keystoreProperties['keyAlias']
|
||||
keyPassword keystoreProperties['keyPassword']
|
||||
storeFile keystoreProperties['storeFile'] ? file(keystoreProperties['storeFile']) : null
|
||||
storePassword keystoreProperties['storePassword']
|
||||
}
|
||||
}
|
||||
buildTypes {
|
||||
release {
|
||||
// TODO: Add your own signing config for the release build.
|
||||
// Signing with the debug keys for now, so `flutter run --release` works.
|
||||
signingConfig signingConfigs.debug
|
||||
signingConfig signingConfigs.release
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user