diff --git a/AppImageBuilder.yml b/AppImageBuilder.yml index 6686e83..f7e2744 100644 --- a/AppImageBuilder.yml +++ b/AppImageBuilder.yml @@ -2,10 +2,7 @@ version: 1 script: - rm -rf AppDir || true - - rm -rf build || true - rm -rf appimage-build - - flutter pub get - - flutter build linux - cp -r build/linux/x64/release/bundle AppDir - mkdir -p AppDir/usr/share/icons/hicolor/64x64/apps - cp Icons/PNG/nbteditor.png AppDir/usr/share/icons/hicolor/64x64/apps/ @@ -34,13 +31,13 @@ AppDir: - libwayland-cursor0 files: include: - - /lib64/ld-linux-x86-64.so.2 + - /lib64/ld-linux-x86-64.so.2 exclude: - - usr/share/man - - usr/share/doc/*/README.* - - usr/share/doc/*/changelog.* - - usr/share/doc/*/NEWS.* - - usr/share/doc/*/TODO.* + - usr/share/man + - usr/share/doc/*/README.* + - usr/share/doc/*/changelog.* + - usr/share/doc/*/NEWS.* + - usr/share/doc/*/TODO.* AppImage: arch: x86_64 update-information: guess diff --git a/android/app/build.gradle b/android/app/build.gradle index 072a867..7bcdeaf 100644 --- a/android/app/build.gradle +++ b/android/app/build.gradle @@ -5,6 +5,12 @@ plugins { id "dev.flutter.flutter-gradle-plugin" } +def keystoreProperties = new Properties() +def keystorePropertiesFile = rootProject.file('key.properties') +if (keystorePropertiesFile.exists()) { + keystoreProperties.load(new FileInputStream(keystorePropertiesFile)) +} + android { namespace = "dev.zontreck.nbteditor" compileSdk = flutter.compileSdkVersion @@ -30,11 +36,20 @@ android { versionName = flutter.versionName } + 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 } } }