From f2dca7d40608571b359680cfe86c02b4d61a049f Mon Sep 17 00:00:00 2001 From: Artur Babichev Date: Thu, 23 Nov 2023 02:36:25 +0400 Subject: [PATCH] releasing desktop app --- .github/workflows/desktop.yaml | 8 ++++---- desktop-compose-app/build.gradle.kts | 3 ++- .../notedelight/shared/db/JdbcDatabaseHolder.kt | 2 +- 3 files changed, 7 insertions(+), 6 deletions(-) diff --git a/.github/workflows/desktop.yaml b/.github/workflows/desktop.yaml index 8da2d3ff..8c86b0a4 100644 --- a/.github/workflows/desktop.yaml +++ b/.github/workflows/desktop.yaml @@ -33,14 +33,14 @@ jobs: with: java-version: 17 - name: Packaging - run: ./gradlew package + run: ./gradlew package #TODO packageRelease - name: Release uses: softprops/action-gh-release@v1 with: files: | - desktop-compose-app/build/compose/binaries/main/deb - desktop-compose-app/build/compose/binaries/main/dmg - desktop-compose-app/build/compose/binaries/main/msi + desktop-compose-app/build/compose/binaries/main/deb/*.deb + desktop-compose-app/build/compose/binaries/main/dmg/*.dmg + desktop-compose-app/build/compose/binaries/main/msi/*.msi - name: Archive ui-tests-output artifacts if: ${{ always() }} uses: actions/upload-artifact@v2 diff --git a/desktop-compose-app/build.gradle.kts b/desktop-compose-app/build.gradle.kts index 3072f06b..9c8c018c 100644 --- a/desktop-compose-app/build.gradle.kts +++ b/desktop-compose-app/build.gradle.kts @@ -45,7 +45,8 @@ compose { nativeDistributions { targetFormats(TargetFormat.Dmg, TargetFormat.Msi, TargetFormat.Deb) packageName = "com.softartdev.notedelight" - packageVersion = "1.0.4" + packageVersion = "1.0.5" + modules("java.sql") } } } diff --git a/shared/src/jvmMain/kotlin/com/softartdev/notedelight/shared/db/JdbcDatabaseHolder.kt b/shared/src/jvmMain/kotlin/com/softartdev/notedelight/shared/db/JdbcDatabaseHolder.kt index 49e850a0..962d42a5 100644 --- a/shared/src/jvmMain/kotlin/com/softartdev/notedelight/shared/db/JdbcDatabaseHolder.kt +++ b/shared/src/jvmMain/kotlin/com/softartdev/notedelight/shared/db/JdbcDatabaseHolder.kt @@ -28,7 +28,7 @@ class JdbcDatabaseHolder(props: Properties = Properties()) : DatabaseHolder() { try { NoteDb.Schema.create(driver) } catch (sqlException: SQLException) { - Napier.e("Error creating database", sqlException) + Napier.e(message = sqlException.localizedMessage) } currentVersion = 1 } else if (NoteDb.Schema.version > currentVersion) {