From d97d3c49271f2b6cf72135aca35a69598996e749 Mon Sep 17 00:00:00 2001 From: Michael Rittmeister Date: Sun, 2 Jun 2024 15:34:56 +0200 Subject: [PATCH] Some minor improvements - No longer use KMP setup for desktop - Upgrade dependencies - Upgrade CI versions - Re-enable UWP helper on windows - Possibly fix msstore update --- .github/workflows/ci.yml | 2 +- .github/workflows/docker-publish.yml | 4 +- .github/workflows/maven.yml | 4 +- .github/workflows/winget.yml | 3 +- .idea/gradle.xml | 1 + .idea/kotlinc.xml | 2 +- .idea/misc.xml | 2 +- app/android/build.gradle.kts | 3 +- app/desktop/build.gradle.kts | 54 ++++++------- app/desktop/src/commonMain/kotlin/Platform.kt | 25 ------ .../kotlin/AuthorizationScreen.kt | 4 +- .../src/{commonMain => main}/kotlin/Main.kt | 9 ++- app/desktop/src/main/kotlin/Platform.kt | 32 ++++++++ .../kotlin/TokenStorageAppContext.kt | 3 + .../resources/logback.xml | 0 .../{commonMain => main}/resources/logo.png | Bin .../src/nonWindowsMain/kotlin/Platform.kt | 36 +++++---- .../src/windowsMain/kotlin/Platform.kt | 72 +++++++++--------- app/desktop/uwp_helper/Cargo.lock | 68 +++++++++++------ app/desktop/uwp_helper/Cargo.toml | 4 +- app/shared/build.gradle.kts | 12 +-- .../schlaubi/tonbrett/bot/config/Config.kt | 4 +- build.gradle.kts | 11 +-- .../kotlin/multiplatform-module.gradle.kts | 4 +- client/build.gradle.kts | 5 ++ gradle.properties | 2 + gradle/libs.versions.toml | 2 +- gradle/wrapper/gradle-wrapper.properties | 2 +- 28 files changed, 205 insertions(+), 165 deletions(-) delete mode 100644 app/desktop/src/commonMain/kotlin/Platform.kt rename app/desktop/src/{commonMain => main}/kotlin/AuthorizationScreen.kt (91%) rename app/desktop/src/{commonMain => main}/kotlin/Main.kt (93%) create mode 100644 app/desktop/src/main/kotlin/Platform.kt rename app/desktop/src/{commonMain => main}/kotlin/TokenStorageAppContext.kt (67%) rename app/desktop/src/{commonMain => main}/resources/logback.xml (100%) rename app/desktop/src/{commonMain => main}/resources/logo.png (100%) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 51351ff4..9bd41b51 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -324,7 +324,7 @@ jobs: with: name: android-app - name: Release - uses: softprops/action-gh-release@v1 + uses: softprops/action-gh-release@v2 with: files: | app/desktop/build/compose/binaries/main-release/deb/*.deb diff --git a/.github/workflows/docker-publish.yml b/.github/workflows/docker-publish.yml index 0af890b0..04125c06 100644 --- a/.github/workflows/docker-publish.yml +++ b/.github/workflows/docker-publish.yml @@ -23,15 +23,13 @@ jobs: steps: - name: Checkout repository - uses: actions/checkout@v3 + uses: actions/checkout@v4 # Install the cosign tool except on PR # https://github.com/sigstore/cosign-installer - name: Install cosign if: github.event_name != 'pull_request' uses: sigstore/cosign-installer@v3 - with: - cosign-release: 'v1.13.1' # Workaround: https://github.com/docker/build-push-action/issues/461 diff --git a/.github/workflows/maven.yml b/.github/workflows/maven.yml index 3d272f72..13ac789f 100644 --- a/.github/workflows/maven.yml +++ b/.github/workflows/maven.yml @@ -13,8 +13,8 @@ jobs: name: Publish To Maven runs-on: macos-latest steps: - - uses: actions/checkout@v3 - - uses: actions/setup-java@v3 + - uses: actions/checkout@v4 + - uses: actions/setup-java@v4 with: distribution: 'temurin' java-version: 22 diff --git a/.github/workflows/winget.yml b/.github/workflows/winget.yml index 38f52e2c..1fa517cb 100644 --- a/.github/workflows/winget.yml +++ b/.github/workflows/winget.yml @@ -7,6 +7,7 @@ on: - published - created - released + - prereleased jobs: winget: @@ -29,5 +30,5 @@ jobs: wingetcreate.exe update Schlaubi.Tonbrett -u $url --version $version if ($version -notmatch "-") { - .\wingetcreate.exe submit .\manifests\s\Schlaubi\Tonbrett\${version}\ --token $env:WINGET_GITHUB_TOKEN + wingetcreate.exe submit .\manifests\s\Schlaubi\Tonbrett\${version}\ --token $env:WINGET_GITHUB_TOKEN } diff --git a/.idea/gradle.xml b/.idea/gradle.xml index 8f72cf8c..f0cdb4e4 100644 --- a/.idea/gradle.xml +++ b/.idea/gradle.xml @@ -16,6 +16,7 @@