diff --git a/.github/workflows/release-demo-app-apk.yaml b/.github/workflows/release-demo-app-apk.yaml index 5f91ebd..7220e3e 100644 --- a/.github/workflows/release-demo-app-apk.yaml +++ b/.github/workflows/release-demo-app-apk.yaml @@ -20,6 +20,8 @@ jobs: java-version: 21 - name: Build APK run: ./gradlew assembleDebug --stacktrace + - name: Build Jar + run: ./gradlew packageUberJarForCurrentOS --stacktrace - name: Get latest release id: latest_release uses: pozetroninc/github-action-get-latest-release@master @@ -31,3 +33,7 @@ jobs: env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} run: gh release upload ${{ steps.latest_release.outputs.release }} demoApp/composeApp/build/outputs/apk/debug/composeApp-debug.apk#demoApp.apk --clobber + - name: Upload Jar + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + run: gh release upload ${{ steps.latest_release.outputs.release }} demoApp/composeApp/build/compose/jars/*.jar#demoApp.jar --clobber diff --git a/demoApp/composeApp/build.gradle.kts b/demoApp/composeApp/build.gradle.kts index cf40361..6f5aca7 100644 --- a/demoApp/composeApp/build.gradle.kts +++ b/demoApp/composeApp/build.gradle.kts @@ -52,7 +52,10 @@ kotlin { jvmMain.dependencies { implementation(compose.desktop.common) - implementation(compose.desktop.currentOs) + implementation(compose.desktop.macos_x64) + implementation(compose.desktop.macos_arm64) + implementation(compose.desktop.windows_x64) + implementation(compose.desktop.linux_x64) } } }