Skip to content

Commit a78d52d

Browse files
committed
added desktop artifacts
1 parent 2052f98 commit a78d52d

File tree

2 files changed

+33
-9
lines changed

2 files changed

+33
-9
lines changed

.github/workflows/desktop.yml

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,19 +12,21 @@ jobs:
1212

1313
steps:
1414
- name: Checkout code
15-
uses: actions/checkout@v2
15+
uses: actions/checkout@v4
1616

1717
- name: Set up JDK
18-
uses: actions/setup-java@v2
18+
uses: actions/setup-java@v3
1919
with:
2020
java-version: '21'
2121
distribution: 'temurin'
2222

23-
- name: Clean and Build
24-
run: ./gradlew clean build
23+
- name: Build native distributions
24+
run: ./gradlew clean package
2525

2626
- name: Upload Artifacts
2727
uses: actions/upload-artifact@v4
2828
with:
29-
name: binaries
30-
path: ./composeApp/build/libs/composeApp-desktop.jar
29+
name: desktop-binaries
30+
path: |
31+
composeApp/build/compose/binaries/main/app/bruce.app/bin/*
32+
if-no-files-found: error

composeApp/build.gradle.kts

Lines changed: 25 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -111,11 +111,33 @@ compose.desktop {
111111
mainClass = "bruce.app.MainKt"
112112

113113
nativeDistributions {
114-
targetFormats(TargetFormat.Dmg, TargetFormat.Msi, TargetFormat.Deb)
114+
// Explicitly request AppImage (Linux), Exe (Windows), and Dmg (macOS)
115+
targetFormats(
116+
TargetFormat.AppImage, // Linux portable executable
117+
TargetFormat.Exe, // Windows standalone .exe
118+
TargetFormat.Dmg // macOS .app bundle inside .dmg
119+
)
120+
115121
packageName = "bruce.app"
116122
packageVersion = "1.0.0"
117-
}
118-
119123

124+
// Linux-specific settings (AppImage)
125+
linux {
126+
appCategory = "Utility"
127+
menuGroup = "bruce.app"
128+
}
129+
130+
// Windows-specific settings (.exe)
131+
windows {
132+
menuGroup = "bruce.app"
133+
upgradeUuid = "your-random-uuid" // Generate via `uuidgen`
134+
}
135+
136+
// macOS-specific settings (.dmg)
137+
macOS {
138+
bundleID = "com.bruce.app"
139+
dockName = "Bruce App"
140+
}
141+
}
120142
}
121143
}

0 commit comments

Comments
 (0)