ci: DMG macOS allegato alle release; versione 1.1.1
Nuovo job desktop-dmg su macos-latest: packageDmg con versione derivata dal tag (INTONO_VERSION) e upload sulla stessa release. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
1 parent
c00c27e606
commit
89b99354f0
3 files changed
+35
-3
No files matched your search
@@ -51,3 +51,34 @@ jobs:
|
||||
env:
|
||||
GH_TOKEN: ${{ github.token }}
|
||||
run: gh release create "$GITHUB_REF_NAME" "InTono-${GITHUB_REF_NAME}.apk" --title "InTono $GITHUB_REF_NAME" --generate-notes
|
||||
|
||||
desktop-dmg:
|
||||
runs-on: macos-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 DMG
|
||||
env:
|
||||
INTONO_VERSION: ${{ github.ref_name }}
|
||||
run: |
|
||||
export INTONO_VERSION="${INTONO_VERSION#v}"
|
||||
./gradlew :desktopApp:packageDmg
|
||||
|
||||
- name: Attach DMG to GitHub Release
|
||||
env:
|
||||
GH_TOKEN: ${{ github.token }}
|
||||
run: |
|
||||
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"
|
||||
@@ -12,8 +12,8 @@ android {
|
||||
applicationId = "com.notemusicali"
|
||||
minSdk = 26
|
||||
targetSdk = 35
|
||||
versionCode = 2
|
||||
versionName = "1.1.0"
|
||||
versionCode = 3
|
||||
versionName = "1.1.1"
|
||||
}
|
||||
|
||||
signingConfigs {
|
||||
|
||||
@@ -37,7 +37,8 @@ compose.desktop {
|
||||
org.jetbrains.compose.desktop.application.dsl.TargetFormat.Deb,
|
||||
)
|
||||
packageName = "InTono"
|
||||
packageVersion = "1.0.0"
|
||||
// In CI la versione arriva dal tag (release.yml); localmente resta il default
|
||||
packageVersion = System.getenv("INTONO_VERSION") ?: "1.0.0"
|
||||
|
||||
macOS {
|
||||
infoPlist {
|
||||
|
||||
Reference in new issue
Block a user