diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 5bb3ee5..a02b785 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -82,3 +82,36 @@ jobs: DMG=$(find desktopApp/build/compose/binaries -name "*.dmg" | head -1) cp "$DMG" "InTono-${GITHUB_REF_NAME}-macos.dmg" gh release upload "$GITHUB_REF_NAME" "InTono-${GITHUB_REF_NAME}-macos.dmg" + + desktop-msi: + runs-on: windows-latest + needs: release + if: startsWith(github.ref, 'refs/tags/') + steps: + - uses: actions/checkout@v4 + + - name: Set up JDK 17 + uses: actions/setup-java@v4 + with: + distribution: temurin + java-version: '17' + + - name: Set up Gradle (with cache) + uses: gradle/actions/setup-gradle@v4 + + - name: Build MSI + shell: bash + env: + INTONO_VERSION: ${{ github.ref_name }} + run: | + export INTONO_VERSION="${INTONO_VERSION#v}" + ./gradlew :desktopApp:packageMsi + + - name: Attach MSI to GitHub Release + shell: bash + env: + GH_TOKEN: ${{ github.token }} + run: | + MSI=$(find desktopApp/build/compose/binaries -name "*.msi" | head -1) + cp "$MSI" "InTono-${GITHUB_REF_NAME}-windows.msi" + gh release upload "$GITHUB_REF_NAME" "InTono-${GITHUB_REF_NAME}-windows.msi" diff --git a/app/build.gradle.kts b/app/build.gradle.kts index dd2c1f8..1a86ba1 100644 --- a/app/build.gradle.kts +++ b/app/build.gradle.kts @@ -12,8 +12,8 @@ android { applicationId = "com.notemusicali" minSdk = 26 targetSdk = 35 - versionCode = 3 - versionName = "1.1.1" + versionCode = 4 + versionName = "1.1.2" } signingConfigs {